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 '../build/win_precompile.gypi',
31 # In component mode, we build all of content as a single DLL.
32 # However, in the static mode, we need to build content as multiple
33 # targets in order to prevent dependencies from getting introduced
34 # upstream unnecessarily (e.g., content_renderer depends on allocator
35 # and chrome_exe depends on content_common but we don't want
36 # chrome_exe to have to depend on allocator).
37 ['component=="static_library"', {
39 'COMPILE_CONTENT_STATICALLY',
43 'target_name': 'content',
55 'content_ppapi_plugin',
64 'target_name': 'content_app_browser',
65 'type': 'static_library',
66 'variables': { 'enable_wexit_time_destructors': 1, },
74 ['chrome_multiple_dll', {
76 'CHROME_MULTIPLE_DLL_BROWSER',
82 'target_name': 'content_app_child',
83 'type': 'static_library',
84 'variables': { 'enable_wexit_time_destructors': 1, },
92 ['chrome_multiple_dll', {
94 'CHROME_MULTIPLE_DLL_CHILD',
100 'target_name': 'content_app_both',
101 'type': 'static_library',
102 'variables': { 'enable_wexit_time_destructors': 1, },
109 'export_dependent_settings': [
114 'target_name': 'content_browser',
115 'type': 'static_library',
116 'variables': { 'enable_wexit_time_destructors': 1, },
118 'content_browser.gypi',
122 'content_resources.gyp:content_resources',
139 'target_name': 'content_common',
140 'type': 'static_library',
141 'variables': { 'enable_wexit_time_destructors': 1, },
143 'content_common.gypi',
148 'content_resources.gyp:content_resources',
152 # Disable c4267 warnings until we fix size_t to int truncations.
153 'msvs_disabled_warnings': [ 4267, ],
160 'target_name': 'content_child',
161 'type': 'static_library',
162 'variables': { 'enable_wexit_time_destructors': 1, },
164 'content_child.gypi',
167 'content_resources.gyp:content_resources',
169 # Disable c4267 warnings until we fix size_t to int truncations.
170 'msvs_disabled_warnings': [ 4267, ],
173 'target_name': 'content_gpu',
174 'type': 'static_library',
175 'variables': { 'enable_wexit_time_destructors': 1, },
185 'target_name': 'content_plugin',
186 'type': 'static_library',
187 'variables': { 'enable_wexit_time_destructors': 1, },
189 'content_plugin.gypi',
197 'target_name': 'content_ppapi_plugin',
198 'type': 'static_library',
199 'variables': { 'enable_wexit_time_destructors': 1, },
201 'content_ppapi_plugin.gypi',
203 # Disable c4267 warnings until we fix size_t to int truncations.
204 'msvs_disabled_warnings': [ 4267, ],
207 'target_name': 'content_renderer',
208 'type': 'static_library',
209 'variables': { 'enable_wexit_time_destructors': 1, },
211 'content_renderer.gypi',
216 'content_resources.gyp:content_resources',
219 ['chromium_enable_vtune_jit_for_v8==1', {
221 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
227 'target_name': 'content_utility',
228 'type': 'static_library',
229 'variables': { 'enable_wexit_time_destructors': 1, },
231 'content_utility.gypi',
239 'target_name': 'content_worker',
240 'type': 'static_library',
241 'variables': { 'enable_wexit_time_destructors': 1, },
243 'content_worker.gypi',
254 { # component != static_library
257 'target_name': 'content',
258 'type': 'shared_library',
259 'variables': { 'enable_wexit_time_destructors': 1, },
261 'content_resources.gyp:content_resources',
264 ['chromium_enable_vtune_jit_for_v8==1', {
266 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
272 'content_browser.gypi',
273 'content_child.gypi',
274 'content_common.gypi',
276 'content_plugin.gypi',
277 'content_ppapi_plugin.gypi',
278 'content_renderer.gypi',
279 'content_utility.gypi',
280 'content_worker.gypi',
285 ['incremental_chrome_dll==1', {
286 'UseLibraryDependencyInputs': "true",
293 'target_name': 'content_app_browser',
295 'dependencies': ['content', 'content_browser'],
298 'target_name': 'content_app_child',
300 'dependencies': ['content', 'content_child'],
303 'target_name': 'content_app_both',
305 'dependencies': ['content'],
306 'export_dependent_settings': ['content'],
309 'target_name': 'content_browser',
311 'dependencies': ['content'],
312 'export_dependent_settings': ['content'],
315 'target_name': 'content_common',
317 'dependencies': ['content', 'content_resources.gyp:content_resources'],
318 # Disable c4267 warnings until we fix size_t to int truncations.
319 'msvs_disabled_warnings': [ 4267, ],
320 'export_dependent_settings': ['content'],
323 'target_name': 'content_child',
325 'dependencies': ['content'],
328 'target_name': 'content_gpu',
330 'dependencies': ['content'],
333 'target_name': 'content_plugin',
335 'dependencies': ['content'],
338 'target_name': 'content_ppapi_plugin',
340 'dependencies': ['content'],
341 # Disable c4267 warnings until we fix size_t to int truncations.
342 'msvs_disabled_warnings': [ 4267, ],
345 'target_name': 'content_renderer',
347 'dependencies': ['content'],
350 'target_name': 'content_utility',
352 'dependencies': ['content'],
353 'export_dependent_settings': ['content'],
356 'target_name': 'content_worker',
358 'dependencies': ['content'],
362 ['OS == "android"', {
365 'target_name': 'common_aidl',
368 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
369 'aidl_import_include': 'public/android/java/src',
372 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
373 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
375 'includes': [ '../build/java_aidl.gypi' ],
378 'target_name': 'content_java',
381 '../base/base.gyp:base',
382 '../media/media.gyp:media_java',
383 '../net/net.gyp:net',
384 '../ui/android/ui_android.gyp:ui_java',
387 'content_strings_grd',
388 'content_gamepad_mapping',
389 'gesture_event_type_java',
390 'page_transition_types_java',
391 'popup_item_type_java',
393 'speech_recognition_error_java',
394 'top_controls_state_java',
395 'screen_orientation_values_java',
398 'java_in_dir': '../content/public/android/java',
399 'has_java_resources': 1,
400 'R_package': 'org.chromium.content',
401 'R_package_relpath': 'org/chromium/content',
404 ['android_webview_build == 0', {
406 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
407 '../third_party/guava/guava.gyp:guava_javalib',
411 'includes': [ '../build/java.gypi' ],
414 'target_name': 'content_strings_grd',
415 # The android_webview/Android.mk file depends on this target directly.
416 'android_unmangled_name': 1,
419 'grd_file': '../content/public/android/java/strings/android_content_strings.grd',
422 '../build/java_strings_grd.gypi',
426 'target_name': 'gesture_event_type_java',
429 'public/android/java/src/org/chromium/content/browser/GestureEventType.template',
432 'package_name': 'org/chromium/content/browser',
433 'template_deps': ['browser/android/gesture_event_type_list.h'],
435 'includes': [ '../build/android/java_cpp_template.gypi' ],
438 'target_name': 'page_transition_types_java',
441 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
444 'package_name': 'org/chromium/content/browser',
445 'template_deps': ['public/common/page_transition_types_list.h'],
447 'includes': [ '../build/android/java_cpp_template.gypi' ],
450 'target_name': 'popup_item_type_java',
453 'public/android/java/src/org/chromium/content/browser/input/PopupItemType.template',
456 'package_name': 'org/chromium/content/browser/input',
457 'template_deps': ['browser/android/popup_item_type_list.h'],
459 'includes': [ '../build/android/java_cpp_template.gypi' ],
462 'target_name': 'result_codes_java',
465 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
468 'package_name': 'org/chromium/content/common',
469 'template_deps': ['public/common/result_codes_list.h'],
471 'includes': [ '../build/android/java_cpp_template.gypi' ],
474 'target_name': 'speech_recognition_error_java',
477 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
480 'package_name': 'org/chromium/content/browser',
481 'template_deps': ['public/common/speech_recognition_error_list.h'],
483 'includes': [ '../build/android/java_cpp_template.gypi' ],
486 'target_name': 'top_controls_state_java',
489 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
492 'package_name': 'org/chromium/content/common',
493 'template_deps': ['public/common/top_controls_state_list.h'],
495 'includes': [ '../build/android/java_cpp_template.gypi' ],
498 'target_name': 'screen_orientation_values_java',
501 'public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template',
504 'package_name': 'org/chromium/content/common',
505 'template_deps': ['public/common/screen_orientation_values_list.h'],
507 'includes': [ '../build/android/java_cpp_template.gypi' ],
510 'target_name': 'java_set_jni_headers',
513 'jni_gen_package': 'content',
514 'input_java_class': 'java/util/HashSet.class',
516 'includes': [ '../build/jar_file_jni_generator.gypi' ],
519 'target_name': 'motionevent_jni_headers',
522 'jni_gen_package': 'content',
523 'input_java_class': 'android/view/MotionEvent.class',
525 'includes': [ '../build/jar_file_jni_generator.gypi' ],
528 'target_name': 'content_jni_headers',
531 'java_set_jni_headers',
532 'motionevent_jni_headers'
534 'includes': [ 'content_jni.gypi' ],
537 'target_name': 'content_icudata',
540 ['icu_use_data_file_flag==1', {
543 'destination': '<(PRODUCT_DIR)/content_shell/assets',
545 '<(PRODUCT_DIR)/icudtl.dat',
553 'target_name': 'content_gamepad_mapping',
556 'public/android/java/src/org/chromium/content/browser/input/CanonicalButtonIndex.template',
557 'public/android/java/src/org/chromium/content/browser/input/CanonicalAxisIndex.template',
560 'package_name': 'org/chromium/content/browser/input',
562 'browser/gamepad/canonical_axis_index_list.h',
563 'browser/gamepad/canonical_button_index_list.h',
566 'includes': [ '../build/android/java_cpp_template.gypi' ],
569 }], # OS == "android"