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',
153 # Disable LTO due to ELF section name out of range
155 '../build/android/disable_lto.gypi',
160 'export_dependent_settings': [
183 # GN version: //content/common and //content/public/common
184 'target_name': 'content_common',
185 'type': 'static_library',
186 'variables': { 'enable_wexit_time_destructors': 1, },
188 'content_common.gypi',
197 # Disable c4267 warnings until we fix size_t to int truncations.
198 'msvs_disabled_warnings': [ 4267, ],
205 # GN version: //content/child and //content/public/child
206 'target_name': 'content_child',
207 'type': 'static_library',
208 'variables': { 'enable_wexit_time_destructors': 1, },
210 'content_child.gypi',
215 # Disable c4267 warnings until we fix size_t to int truncations.
216 'msvs_disabled_warnings': [ 4267, ],
219 # GN version: //content/gpu
220 'target_name': 'content_gpu',
221 'type': 'static_library',
222 'variables': { 'enable_wexit_time_destructors': 1, },
232 # GN version: //content/plugin and //content/public/plugin
233 'target_name': 'content_plugin',
234 'type': 'static_library',
235 'variables': { 'enable_wexit_time_destructors': 1, },
237 'content_plugin.gypi',
245 # GN version: //content/ppapi_plugin
246 'target_name': 'content_ppapi_plugin',
247 'type': 'static_library',
248 'variables': { 'enable_wexit_time_destructors': 1, },
250 'content_ppapi_plugin.gypi',
252 # Disable c4267 warnings until we fix size_t to int truncations.
253 'msvs_disabled_warnings': [ 4267, ],
256 # GN version: //content/renderer and //content/public/renderer
257 'target_name': 'content_renderer',
258 'type': 'static_library',
259 'variables': { 'enable_wexit_time_destructors': 1, },
261 'content_renderer.gypi',
269 ['chromium_enable_vtune_jit_for_v8==1', {
271 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
277 # GN version: //content/utility and //content/public/utility
278 'target_name': 'content_utility',
279 'type': 'static_library',
280 'variables': { 'enable_wexit_time_destructors': 1, },
282 'content_utility.gypi',
293 { # component != static_library
296 # GN version: //content
297 'target_name': 'content',
298 'type': 'shared_library',
299 'variables': { 'enable_wexit_time_destructors': 1, },
304 ['chromium_enable_vtune_jit_for_v8==1', {
306 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
312 'content_browser.gypi',
313 'content_child.gypi',
314 'content_common.gypi',
316 'content_plugin.gypi',
317 'content_ppapi_plugin.gypi',
318 'content_renderer.gypi',
319 'content_utility.gypi',
324 ['incremental_chrome_dll==1', {
325 'UseLibraryDependencyInputs': "true",
332 # GN version: //content/app:browser
333 'target_name': 'content_app_browser',
335 'dependencies': ['content', 'content_browser'],
338 # GN version: //content/app:child
339 'target_name': 'content_app_child',
341 'dependencies': ['content', 'content_child'],
344 # GN version: //content/app:both
345 'target_name': 'content_app_both',
347 'dependencies': ['content'],
348 'export_dependent_settings': ['content'],
351 # GN version: //content/browser and //content/public/browser
352 'target_name': 'content_browser',
354 'dependencies': ['content'],
355 'export_dependent_settings': ['content'],
358 # GN version: //content/common and //content/public/common
359 'target_name': 'content_common',
361 'dependencies': ['content', 'content_resources'],
362 # Disable c4267 warnings until we fix size_t to int truncations.
363 'msvs_disabled_warnings': [ 4267, ],
364 'export_dependent_settings': ['content'],
367 # GN Version: //content/child
368 'target_name': 'content_child',
370 'dependencies': ['content'],
373 # GN version: //content/gpu
374 'target_name': 'content_gpu',
376 'dependencies': ['content'],
379 # GN version: //content/plugin
380 'target_name': 'content_plugin',
382 'dependencies': ['content'],
385 # GN version: //content/ppapi_plugin
386 'target_name': 'content_ppapi_plugin',
388 'dependencies': ['content'],
389 # Disable c4267 warnings until we fix size_t to int truncations.
390 'msvs_disabled_warnings': [ 4267, ],
393 # GN version: //content/renderer and //content/public/renderer
394 'target_name': 'content_renderer',
396 'dependencies': ['content'],
399 # GN version: //content/utility
400 'target_name': 'content_utility',
402 'dependencies': ['content'],
403 'export_dependent_settings': ['content'],
407 ['OS == "android"', {
410 'target_name': 'common_aidl',
413 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
414 'aidl_import_include': 'public/android/java/src',
417 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
418 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
420 'includes': [ '../build/java_aidl.gypi' ],
423 'target_name': 'content_java',
426 '../base/base.gyp:base',
427 '../device/battery/battery.gyp:device_battery_java',
428 '../media/media.gyp:media_java',
429 '../mojo/mojo_base.gyp:mojo_system_java',
430 '../mojo/public/mojo_public.gyp:mojo_bindings_java',
431 '../net/net.gyp:net',
432 '../ui/android/ui_android.gyp:ui_java',
435 'content_strings_grd',
436 'content_gamepad_mapping',
437 'gesture_event_type_java',
438 'popup_item_type_java',
440 'selection_event_type_java',
441 'speech_recognition_error_java',
442 'top_controls_state_java',
443 'screen_orientation_values_java',
446 'java_in_dir': '../content/public/android/java',
447 'has_java_resources': 1,
448 'R_package': 'org.chromium.content',
449 'R_package_relpath': 'org/chromium/content',
452 ['android_webview_build == 0', {
454 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
458 'includes': [ '../build/java.gypi' ],
461 'target_name': 'content_strings_grd',
462 # The android_webview/Android.mk file depends on this target directly.
463 'android_unmangled_name': 1,
466 'grd_file': '../content/public/android/java/strings/android_content_strings.grd',
469 '../build/java_strings_grd.gypi',
473 'target_name': 'content_gamepad_mapping',
476 'source_file': 'browser/gamepad/gamepad_standard_mappings.h',
478 'includes': [ '../build/android/java_cpp_enum.gypi' ],
481 'target_name': 'gesture_event_type_java',
484 'source_file': 'browser/android/gesture_event_type.h',
486 'includes': [ '../build/android/java_cpp_enum.gypi' ],
489 'target_name': 'popup_item_type_java',
492 'source_file': 'browser/android/content_view_core_impl.cc',
494 'includes': [ '../build/android/java_cpp_enum.gypi' ],
497 'target_name': 'result_codes_java',
500 'source_file': 'public/common/result_codes.h',
502 'includes': [ '../build/android/java_cpp_enum.gypi' ],
505 'target_name': 'selection_event_type_java',
508 'source_file': 'browser/renderer_host/input/selection_event_type.h',
510 'includes': [ '../build/android/java_cpp_enum.gypi' ],
513 'target_name': 'speech_recognition_error_java',
516 'source_file': 'public/common/speech_recognition_error.h',
518 'includes': [ '../build/android/java_cpp_enum.gypi' ],
521 'target_name': 'top_controls_state_java',
524 'source_file': 'public/common/top_controls_state.h',
526 'includes': [ '../build/android/java_cpp_enum.gypi' ],
529 'target_name': 'screen_orientation_values_java',
532 'source_file': 'public/common/screen_orientation_values.h',
534 'includes': [ '../build/android/java_cpp_enum.gypi' ],
537 'target_name': 'java_set_jni_headers',
540 'jni_gen_package': 'content',
541 'input_java_class': 'java/util/HashSet.class',
543 'includes': [ '../build/jar_file_jni_generator.gypi' ],
546 'target_name': 'motionevent_jni_headers',
549 'jni_gen_package': 'content',
550 'input_java_class': 'android/view/MotionEvent.class',
552 'includes': [ '../build/jar_file_jni_generator.gypi' ],
555 'target_name': 'content_jni_headers',
558 'java_set_jni_headers',
559 'motionevent_jni_headers'
561 'includes': [ 'content_jni.gypi' ],
564 'target_name': 'content_icudata',
567 ['icu_use_data_file_flag==1', {
570 'destination': '<(PRODUCT_DIR)/content_shell/assets',
572 '<(PRODUCT_DIR)/icudtl.dat',
580 'target_name': 'content_v8_external_data',
583 ['v8_use_external_startup_data==1', {
586 'destination': '<(PRODUCT_DIR)/content_shell/assets',
588 '<(PRODUCT_DIR)/natives_blob.bin',
589 '<(PRODUCT_DIR)/snapshot_blob.bin',
597 }], # OS == "android"