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',
371 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
372 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
374 'includes': [ '../build/java_aidl.gypi' ],
377 'target_name': 'content_java',
380 '../base/base.gyp:base',
381 '../media/media.gyp:media_java',
382 '../net/net.gyp:net',
383 '../ui/android/ui_android.gyp:ui_java',
386 'content_strings_grd',
387 'gesture_event_type_java',
388 'page_transition_types_java',
389 'popup_item_type_java',
391 'speech_recognition_error_java',
392 'top_controls_state_java',
393 'screen_orientation_values_java',
396 'java_in_dir': '../content/public/android/java',
397 'has_java_resources': 1,
398 'R_package': 'org.chromium.content',
399 'R_package_relpath': 'org/chromium/content',
402 ['android_webview_build == 0', {
404 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
405 '../third_party/guava/guava.gyp:guava_javalib',
409 'includes': [ '../build/java.gypi' ],
412 'target_name': 'content_strings_grd',
415 'grd_file': '../content/public/android/java/strings/android_content_strings.grd',
418 '../build/java_strings_grd.gypi',
422 'target_name': 'gesture_event_type_java',
425 'public/android/java/src/org/chromium/content/browser/GestureEventType.template',
428 'package_name': 'org/chromium/content/browser',
429 'template_deps': ['browser/android/gesture_event_type_list.h'],
431 'includes': [ '../build/android/java_cpp_template.gypi' ],
434 'target_name': 'page_transition_types_java',
437 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
440 'package_name': 'org/chromium/content/browser',
441 'template_deps': ['public/common/page_transition_types_list.h'],
443 'includes': [ '../build/android/java_cpp_template.gypi' ],
446 'target_name': 'popup_item_type_java',
449 'public/android/java/src/org/chromium/content/browser/input/PopupItemType.template',
452 'package_name': 'org/chromium/content/browser/input',
453 'template_deps': ['browser/android/popup_item_type_list.h'],
455 'includes': [ '../build/android/java_cpp_template.gypi' ],
458 'target_name': 'result_codes_java',
461 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
464 'package_name': 'org/chromium/content/common',
465 'template_deps': ['public/common/result_codes_list.h'],
467 'includes': [ '../build/android/java_cpp_template.gypi' ],
470 'target_name': 'speech_recognition_error_java',
473 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
476 'package_name': 'org/chromium/content/browser',
477 'template_deps': ['public/common/speech_recognition_error_list.h'],
479 'includes': [ '../build/android/java_cpp_template.gypi' ],
482 'target_name': 'top_controls_state_java',
485 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
488 'package_name': 'org/chromium/content/common',
489 'template_deps': ['public/common/top_controls_state_list.h'],
491 'includes': [ '../build/android/java_cpp_template.gypi' ],
494 'target_name': 'screen_orientation_values_java',
497 'public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template',
500 'package_name': 'org/chromium/content/common',
501 'template_deps': ['public/common/screen_orientation_values_list.h'],
503 'includes': [ '../build/android/java_cpp_template.gypi' ],
506 'target_name': 'java_set_jni_headers',
509 'jni_gen_package': 'content',
510 'input_java_class': 'java/util/HashSet.class',
512 'includes': [ '../build/jar_file_jni_generator.gypi' ],
515 'target_name': 'motionevent_jni_headers',
518 'jni_gen_package': 'content',
519 'input_java_class': 'android/view/MotionEvent.class',
521 'includes': [ '../build/jar_file_jni_generator.gypi' ],
524 'target_name': 'content_jni_headers',
527 'java_set_jni_headers',
528 'motionevent_jni_headers'
530 'includes': [ 'content_jni.gypi' ],
533 'target_name': 'content_icudata',
536 ['icu_use_data_file_flag==1', {
539 'destination': '<(PRODUCT_DIR)/content_shell/assets',
541 '<(PRODUCT_DIR)/icudtl.dat',
549 }], # OS == "android"