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 '../build/win_precompile.gypi',
28 'content_common_mojo_bindings.gypi',
29 'content_resources.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': [
78 'content_common_mojo_bindings',
81 'content_ppapi_plugin',
89 # GN version: //content/app:browser
90 'target_name': 'content_app_browser',
91 'type': 'static_library',
92 'variables': { 'enable_wexit_time_destructors': 1, },
99 'export_dependent_settings': [
103 ['chrome_multiple_dll', {
105 'CHROME_MULTIPLE_DLL_BROWSER',
111 # GN version: //content/app:child
112 'target_name': 'content_app_child',
113 'type': 'static_library',
114 'variables': { 'enable_wexit_time_destructors': 1, },
121 'export_dependent_settings': [
125 ['chrome_multiple_dll', {
127 'CHROME_MULTIPLE_DLL_CHILD',
133 # GN version: //content/app:both
134 'target_name': 'content_app_both',
135 'type': 'static_library',
136 'variables': { 'enable_wexit_time_destructors': 1, },
143 'export_dependent_settings': [
148 # GN version: //content/browser and //content/public/browser
149 'target_name': 'content_browser',
150 'type': 'static_library',
151 'variables': { 'enable_wexit_time_destructors': 1, },
153 'content_browser.gypi',
154 # Disable LTO due to ELF section name out of range
156 '../build/android/disable_lto.gypi',
161 'export_dependent_settings': [
178 'content_common_mojo_bindings',
185 # GN version: //content/common and //content/public/common
186 'target_name': 'content_common',
187 'type': 'static_library',
188 'variables': { 'enable_wexit_time_destructors': 1, },
190 'content_common.gypi',
195 'content_common_mojo_bindings',
200 # Disable c4267 warnings until we fix size_t to int truncations.
201 'msvs_disabled_warnings': [ 4267, ],
208 # GN version: //content/child and //content/public/child
209 'target_name': 'content_child',
210 'type': 'static_library',
211 'variables': { 'enable_wexit_time_destructors': 1, },
213 'content_child.gypi',
218 # Disable c4267 warnings until we fix size_t to int truncations.
219 'msvs_disabled_warnings': [ 4267, ],
222 # GN version: //content/gpu
223 'target_name': 'content_gpu',
224 'type': 'static_library',
225 'variables': { 'enable_wexit_time_destructors': 1, },
235 # GN version: //content/plugin and //content/public/plugin
236 'target_name': 'content_plugin',
237 'type': 'static_library',
238 'variables': { 'enable_wexit_time_destructors': 1, },
240 'content_plugin.gypi',
248 # GN version: //content/ppapi_plugin
249 'target_name': 'content_ppapi_plugin',
250 'type': 'static_library',
251 'variables': { 'enable_wexit_time_destructors': 1, },
253 'content_ppapi_plugin.gypi',
255 # Disable c4267 warnings until we fix size_t to int truncations.
256 'msvs_disabled_warnings': [ 4267, ],
259 # GN version: //content/renderer and //content/public/renderer
260 'target_name': 'content_renderer',
261 'type': 'static_library',
262 'variables': { 'enable_wexit_time_destructors': 1, },
264 'content_renderer.gypi',
271 'export_dependent_settings': [
275 ['chromium_enable_vtune_jit_for_v8==1', {
277 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
283 # GN version: //content/utility and //content/public/utility
284 'target_name': 'content_utility',
285 'type': 'static_library',
286 'variables': { 'enable_wexit_time_destructors': 1, },
288 'content_utility.gypi',
299 { # component != static_library
302 # GN version: //content
303 'target_name': 'content',
304 'type': 'shared_library',
305 'variables': { 'enable_wexit_time_destructors': 1, },
310 ['chromium_enable_vtune_jit_for_v8==1', {
312 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
317 'content_common_mojo_bindings',
323 'content_browser.gypi',
324 'content_child.gypi',
325 'content_common.gypi',
327 'content_plugin.gypi',
328 'content_ppapi_plugin.gypi',
329 'content_renderer.gypi',
330 'content_utility.gypi',
335 ['incremental_chrome_dll==1', {
336 'UseLibraryDependencyInputs': "true",
343 # GN version: //content/app:browser
344 'target_name': 'content_app_browser',
346 'dependencies': ['content', 'content_browser'],
349 # GN version: //content/app:child
350 'target_name': 'content_app_child',
352 'dependencies': ['content', 'content_child'],
355 # GN version: //content/app:both
356 'target_name': 'content_app_both',
358 'dependencies': ['content'],
359 'export_dependent_settings': ['content'],
362 # GN version: //content/browser and //content/public/browser
363 'target_name': 'content_browser',
365 'dependencies': ['content'],
366 'export_dependent_settings': ['content'],
369 # GN version: //content/common and //content/public/common
370 'target_name': 'content_common',
372 'dependencies': ['content', 'content_resources'],
373 # Disable c4267 warnings until we fix size_t to int truncations.
374 'msvs_disabled_warnings': [ 4267, ],
375 'export_dependent_settings': ['content'],
378 # GN Version: //content/child
379 'target_name': 'content_child',
381 'dependencies': ['content'],
384 # GN version: //content/gpu
385 'target_name': 'content_gpu',
387 'dependencies': ['content'],
390 # GN version: //content/plugin
391 'target_name': 'content_plugin',
393 'dependencies': ['content'],
396 # GN version: //content/ppapi_plugin
397 'target_name': 'content_ppapi_plugin',
399 'dependencies': ['content'],
400 # Disable c4267 warnings until we fix size_t to int truncations.
401 'msvs_disabled_warnings': [ 4267, ],
404 # GN version: //content/renderer and //content/public/renderer
405 'target_name': 'content_renderer',
407 'dependencies': ['content'],
408 'export_dependent_settings': ['content'],
411 # GN version: //content/utility
412 'target_name': 'content_utility',
414 'dependencies': ['content'],
415 'export_dependent_settings': ['content'],
419 ['OS == "android"', {
422 'target_name': 'common_aidl',
425 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
426 'aidl_import_include': 'public/android/java/src',
429 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
430 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
432 'includes': [ '../build/java_aidl.gypi' ],
435 'target_name': 'content_java',
438 '../base/base.gyp:base',
439 '../device/battery/battery.gyp:device_battery_java',
440 '../media/media.gyp:media_java',
441 '../mojo/mojo_base.gyp:mojo_system_java',
442 '../mojo/public/mojo_public.gyp:mojo_application_bindings',
443 '../mojo/public/mojo_public.gyp:mojo_bindings_java',
444 '../net/net.gyp:net',
445 '../ui/android/ui_android.gyp:ui_java',
448 'content_strings_grd',
449 'content_gamepad_mapping',
450 'gesture_event_type_java',
451 'popup_item_type_java',
453 'selection_event_type_java',
454 'speech_recognition_error_java',
455 'top_controls_state_java',
456 'screen_orientation_values_java',
459 'java_in_dir': '../content/public/android/java',
460 'has_java_resources': 1,
461 'R_package': 'org.chromium.content',
462 'R_package_relpath': 'org/chromium/content',
464 'includes': [ '../build/java.gypi' ],
467 'target_name': 'content_strings_grd',
468 # The android_webview/Android.mk file depends on this target directly.
469 'android_unmangled_name': 1,
472 'grd_file': '../content/public/android/java/strings/android_content_strings.grd',
475 '../build/java_strings_grd.gypi',
479 'target_name': 'content_gamepad_mapping',
482 'source_file': 'browser/gamepad/gamepad_standard_mappings.h',
484 'includes': [ '../build/android/java_cpp_enum.gypi' ],
487 'target_name': 'gesture_event_type_java',
490 'source_file': 'browser/android/gesture_event_type.h',
492 'includes': [ '../build/android/java_cpp_enum.gypi' ],
495 'target_name': 'popup_item_type_java',
498 'source_file': 'browser/android/content_view_core_impl.cc',
500 'includes': [ '../build/android/java_cpp_enum.gypi' ],
503 'target_name': 'result_codes_java',
506 'source_file': 'public/common/result_codes.h',
508 'includes': [ '../build/android/java_cpp_enum.gypi' ],
511 'target_name': 'selection_event_type_java',
514 'source_file': 'browser/renderer_host/input/selection_event_type.h',
516 'includes': [ '../build/android/java_cpp_enum.gypi' ],
519 'target_name': 'speech_recognition_error_java',
522 'source_file': 'public/common/speech_recognition_error.h',
524 'includes': [ '../build/android/java_cpp_enum.gypi' ],
527 'target_name': 'top_controls_state_java',
530 'source_file': 'public/common/top_controls_state.h',
532 'includes': [ '../build/android/java_cpp_enum.gypi' ],
535 'target_name': 'screen_orientation_values_java',
538 'source_file': 'public/common/screen_orientation_values.h',
540 'includes': [ '../build/android/java_cpp_enum.gypi' ],
543 'target_name': 'java_set_jni_headers',
546 'jni_gen_package': 'content',
547 'input_java_class': 'java/util/HashSet.class',
549 'includes': [ '../build/jar_file_jni_generator.gypi' ],
552 'target_name': 'motionevent_jni_headers',
555 'jni_gen_package': 'content',
556 'input_java_class': 'android/view/MotionEvent.class',
558 'includes': [ '../build/jar_file_jni_generator.gypi' ],
561 'target_name': 'content_jni_headers',
564 'java_set_jni_headers',
565 'motionevent_jni_headers'
567 'includes': [ 'content_jni.gypi' ],
570 'target_name': 'content_icudata',
573 ['icu_use_data_file_flag==1', {
576 'destination': '<(PRODUCT_DIR)/content_shell/assets',
578 '<(PRODUCT_DIR)/icudtl.dat',
586 'target_name': 'content_v8_external_data',
589 ['v8_use_external_startup_data==1', {
592 'destination': '<(PRODUCT_DIR)/content_shell/assets',
594 '<(PRODUCT_DIR)/natives_blob.bin',
595 '<(PRODUCT_DIR)/snapshot_blob.bin',
603 }], # OS == "android"