1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'chromium_code': 1, # Use higher warning level.
8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 engine.
9 'directxsdk_exists': '<!pymod_do_main(dir_exists ../third_party/directxsdk)',
12 'defines': ['CONTENT_IMPLEMENTATION'],
14 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed.
15 ['OS=="win" and target_arch=="x64"', {
18 'AdditionalOptions': ['/bigobj'],
27 'content_common_mojo_bindings.gypi',
28 'content_resources.gypi',
29 '../build/win_precompile.gypi',
35 'target_name': 'content_startup_helper_win',
36 'type': 'static_library',
41 '../base/base.gyp:base',
42 '../base/base.gyp:base_i18n',
43 '../sandbox/sandbox.gyp:sandbox',
46 'app/startup_helper_win.cc',
47 'public/app/startup_helper_win.h',
52 # In component mode, we build all of content as a single DLL.
53 # However, in the static mode, we need to build content as multiple
54 # targets in order to prevent dependencies from getting introduced
55 # upstream unnecessarily (e.g., content_renderer depends on allocator
56 # and chrome_exe depends on content_common but we don't want
57 # chrome_exe to have to depend on allocator).
58 ['component=="static_library"', {
60 'COMPILE_CONTENT_STATICALLY',
64 # GN version: //content
65 'target_name': 'content',
71 'export_dependent_settings': [
80 'content_ppapi_plugin',
88 # GN version: //content/app:browser
89 'target_name': 'content_app_browser',
90 'type': 'static_library',
91 'variables': { 'enable_wexit_time_destructors': 1, },
98 'export_dependent_settings': [
102 ['chrome_multiple_dll', {
104 'CHROME_MULTIPLE_DLL_BROWSER',
110 # GN version: //content/app:child
111 'target_name': 'content_app_child',
112 'type': 'static_library',
113 'variables': { 'enable_wexit_time_destructors': 1, },
120 'export_dependent_settings': [
124 ['chrome_multiple_dll', {
126 'CHROME_MULTIPLE_DLL_CHILD',
132 # GN version: //content/app:both
133 'target_name': 'content_app_both',
134 'type': 'static_library',
135 'variables': { 'enable_wexit_time_destructors': 1, },
142 'export_dependent_settings': [
147 # GN version: //content/browser and //content/public/browser
148 'target_name': 'content_browser',
149 'type': 'static_library',
150 'variables': { 'enable_wexit_time_destructors': 1, },
152 'content_browser.gypi',
157 'export_dependent_settings': [
180 # GN version: //content/common and //content/public/common
181 'target_name': 'content_common',
182 'type': 'static_library',
183 'variables': { 'enable_wexit_time_destructors': 1, },
185 'content_common.gypi',
194 # Disable c4267 warnings until we fix size_t to int truncations.
195 'msvs_disabled_warnings': [ 4267, ],
202 # GN version: //content/child and //content/public/child
203 'target_name': 'content_child',
204 'type': 'static_library',
205 'variables': { 'enable_wexit_time_destructors': 1, },
207 'content_child.gypi',
212 # Disable c4267 warnings until we fix size_t to int truncations.
213 'msvs_disabled_warnings': [ 4267, ],
216 # GN version: //content/gpu
217 'target_name': 'content_gpu',
218 'type': 'static_library',
219 'variables': { 'enable_wexit_time_destructors': 1, },
229 # GN version: //content/plugin and //content/public/plugin
230 'target_name': 'content_plugin',
231 'type': 'static_library',
232 'variables': { 'enable_wexit_time_destructors': 1, },
234 'content_plugin.gypi',
242 # GN version: //content/ppapi_plugin
243 'target_name': 'content_ppapi_plugin',
244 'type': 'static_library',
245 'variables': { 'enable_wexit_time_destructors': 1, },
247 'content_ppapi_plugin.gypi',
249 # Disable c4267 warnings until we fix size_t to int truncations.
250 'msvs_disabled_warnings': [ 4267, ],
253 # GN version: //content/renderer and //content/public/renderer
254 'target_name': 'content_renderer',
255 'type': 'static_library',
256 'variables': { 'enable_wexit_time_destructors': 1, },
258 'content_renderer.gypi',
266 ['chromium_enable_vtune_jit_for_v8==1', {
268 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
274 # GN version: //content/utility and //content/public/utility
275 'target_name': 'content_utility',
276 'type': 'static_library',
277 'variables': { 'enable_wexit_time_destructors': 1, },
279 'content_utility.gypi',
290 { # component != static_library
293 # GN version: //content
294 'target_name': 'content',
295 'type': 'shared_library',
296 'variables': { 'enable_wexit_time_destructors': 1, },
301 ['chromium_enable_vtune_jit_for_v8==1', {
303 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
309 'content_browser.gypi',
310 'content_child.gypi',
311 'content_common.gypi',
313 'content_plugin.gypi',
314 'content_ppapi_plugin.gypi',
315 'content_renderer.gypi',
316 'content_utility.gypi',
321 ['incremental_chrome_dll==1', {
322 'UseLibraryDependencyInputs': "true",
329 # GN version: //content/app:browser
330 'target_name': 'content_app_browser',
332 'dependencies': ['content', 'content_browser'],
335 # GN version: //content/app:child
336 'target_name': 'content_app_child',
338 'dependencies': ['content', 'content_child'],
341 # GN version: //content/app:both
342 'target_name': 'content_app_both',
344 'dependencies': ['content'],
345 'export_dependent_settings': ['content'],
348 # GN version: //content/browser and //content/public/browser
349 'target_name': 'content_browser',
351 'dependencies': ['content'],
352 'export_dependent_settings': ['content'],
355 # GN version: //content/common and //content/public/common
356 'target_name': 'content_common',
358 'dependencies': ['content', 'content_resources'],
359 # Disable c4267 warnings until we fix size_t to int truncations.
360 'msvs_disabled_warnings': [ 4267, ],
361 'export_dependent_settings': ['content'],
364 # GN Version: //content/child
365 'target_name': 'content_child',
367 'dependencies': ['content'],
370 # GN version: //content/gpu
371 'target_name': 'content_gpu',
373 'dependencies': ['content'],
376 # GN version: //content/plugin
377 'target_name': 'content_plugin',
379 'dependencies': ['content'],
382 # GN version: //content/ppapi_plugin
383 'target_name': 'content_ppapi_plugin',
385 'dependencies': ['content'],
386 # Disable c4267 warnings until we fix size_t to int truncations.
387 'msvs_disabled_warnings': [ 4267, ],
390 # GN version: //content/renderer and //content/public/renderer
391 'target_name': 'content_renderer',
393 'dependencies': ['content'],
396 # GN version: //content/utility
397 'target_name': 'content_utility',
399 'dependencies': ['content'],
400 'export_dependent_settings': ['content'],
404 ['OS == "android"', {
407 'target_name': 'common_aidl',
410 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
411 'aidl_import_include': 'public/android/java/src',
414 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
415 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
417 'includes': [ '../build/java_aidl.gypi' ],
420 'target_name': 'content_java',
423 '../base/base.gyp:base',
424 '../media/media.gyp:media_java',
425 '../net/net.gyp:net',
426 '../ui/android/ui_android.gyp:ui_java',
429 'content_strings_grd',
430 'content_gamepad_mapping',
431 'gesture_event_type_java',
432 'page_transition_types_java',
433 'popup_item_type_java',
435 'selection_event_type_java',
436 'speech_recognition_error_java',
437 'top_controls_state_java',
438 'screen_orientation_values_java',
441 'java_in_dir': '../content/public/android/java',
442 'has_java_resources': 1,
443 'R_package': 'org.chromium.content',
444 'R_package_relpath': 'org/chromium/content',
447 ['android_webview_build == 0', {
449 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
450 '../third_party/guava/guava.gyp:guava_javalib',
454 'includes': [ '../build/java.gypi' ],
457 'target_name': 'content_strings_grd',
458 # The android_webview/Android.mk file depends on this target directly.
459 'android_unmangled_name': 1,
462 'grd_file': '../content/public/android/java/strings/android_content_strings.grd',
465 '../build/java_strings_grd.gypi',
469 'target_name': 'gesture_event_type_java',
472 'public/android/java/src/org/chromium/content/browser/GestureEventType.template',
475 'package_name': 'org/chromium/content/browser',
476 'template_deps': ['browser/android/gesture_event_type_list.h'],
478 'includes': [ '../build/android/java_cpp_template.gypi' ],
481 'target_name': 'page_transition_types_java',
484 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
487 'package_name': 'org/chromium/content/browser',
488 'template_deps': ['public/common/page_transition_types_list.h'],
490 'includes': [ '../build/android/java_cpp_template.gypi' ],
493 'target_name': 'popup_item_type_java',
496 'public/android/java/src/org/chromium/content/browser/input/PopupItemType.template',
499 'package_name': 'org/chromium/content/browser/input',
500 'template_deps': ['browser/android/popup_item_type_list.h'],
502 'includes': [ '../build/android/java_cpp_template.gypi' ],
505 'target_name': 'result_codes_java',
508 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
511 'package_name': 'org/chromium/content/common',
512 'template_deps': ['public/common/result_codes_list.h'],
514 'includes': [ '../build/android/java_cpp_template.gypi' ],
517 'target_name': 'selection_event_type_java',
520 'public/android/java/src/org/chromium/content/browser/input/SelectionEventType.template',
523 'package_name': 'org/chromium/content/browser/input',
524 'template_deps': ['browser/renderer_host/input/selection_event_type_list.h'],
526 'includes': [ '../build/android/java_cpp_template.gypi' ],
529 'target_name': 'speech_recognition_error_java',
532 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
535 'package_name': 'org/chromium/content/browser',
536 'template_deps': ['public/common/speech_recognition_error_list.h'],
538 'includes': [ '../build/android/java_cpp_template.gypi' ],
541 'target_name': 'top_controls_state_java',
544 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
547 'package_name': 'org/chromium/content/common',
548 'template_deps': ['public/common/top_controls_state_list.h'],
550 'includes': [ '../build/android/java_cpp_template.gypi' ],
553 'target_name': 'screen_orientation_values_java',
556 'public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template',
559 'package_name': 'org/chromium/content/common',
560 'template_deps': ['public/common/screen_orientation_values_list.h'],
562 'includes': [ '../build/android/java_cpp_template.gypi' ],
565 'target_name': 'java_set_jni_headers',
568 'jni_gen_package': 'content',
569 'input_java_class': 'java/util/HashSet.class',
571 'includes': [ '../build/jar_file_jni_generator.gypi' ],
574 'target_name': 'motionevent_jni_headers',
577 'jni_gen_package': 'content',
578 'input_java_class': 'android/view/MotionEvent.class',
580 'includes': [ '../build/jar_file_jni_generator.gypi' ],
583 'target_name': 'content_jni_headers',
586 'java_set_jni_headers',
587 'motionevent_jni_headers'
589 'includes': [ 'content_jni.gypi' ],
592 'target_name': 'content_icudata',
595 ['icu_use_data_file_flag==1', {
598 'destination': '<(PRODUCT_DIR)/content_shell/assets',
600 '<(PRODUCT_DIR)/icudtl.dat',
608 'target_name': 'content_gamepad_mapping',
611 'public/android/java/src/org/chromium/content/browser/input/CanonicalButtonIndex.template',
612 'public/android/java/src/org/chromium/content/browser/input/CanonicalAxisIndex.template',
615 'package_name': 'org/chromium/content/browser/input',
617 'browser/gamepad/canonical_axis_index_list.h',
618 'browser/gamepad/canonical_button_index_list.h',
621 'includes': [ '../build/android/java_cpp_template.gypi' ],
624 }], # OS == "android"