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',
32 'target_name': 'webkit_version',
36 'action_name': 'generate_webkit_version',
43 '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
47 '-f', '<(lastchange)',
52 'script': '<(DEPTH)/build/util/version.py',
53 'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
54 'template': 'webkit_version.h.in',
58 'direct_dependent_settings': {
60 '<(SHARED_INTERMEDIATE_DIR)',
63 # Dependents may rely on files generated by this target or one of
64 # its own hard dependencies.
69 # In component mode, we build all of content as a single DLL.
70 # However, in the static mode, we need to build content as multiple
71 # targets in order to prevent dependencies from getting introduced
72 # upstream unnecessarily (e.g., content_renderer depends on allocator
73 # and chrome_exe depends on content_common but we don't want
74 # chrome_exe to have to depend on allocator).
75 ['component=="static_library"', {
77 'COMPILE_CONTENT_STATICALLY',
81 'target_name': 'content',
93 'content_ppapi_plugin',
102 'target_name': 'content_app_browser',
103 'type': 'static_library',
104 'variables': { 'enable_wexit_time_destructors': 1, },
112 ['chrome_multiple_dll', {
114 'CHROME_MULTIPLE_DLL_BROWSER',
120 'target_name': 'content_app_child',
121 'type': 'static_library',
122 'variables': { 'enable_wexit_time_destructors': 1, },
130 ['chrome_multiple_dll', {
132 'CHROME_MULTIPLE_DLL_CHILD',
138 'target_name': 'content_app_both',
139 'type': 'static_library',
140 'variables': { 'enable_wexit_time_destructors': 1, },
147 'export_dependent_settings': [
152 'target_name': 'content_browser',
153 'type': 'static_library',
154 'variables': { 'enable_wexit_time_destructors': 1, },
156 'content_browser.gypi',
160 'content_resources.gyp:content_resources',
177 'target_name': 'content_common',
178 'type': 'static_library',
179 'variables': { 'enable_wexit_time_destructors': 1, },
181 'content_common.gypi',
186 'content_resources.gyp:content_resources',
190 # Disable c4267 warnings until we fix size_t to int truncations.
191 'msvs_disabled_warnings': [ 4267, ],
198 'target_name': 'content_child',
199 'type': 'static_library',
200 'variables': { 'enable_wexit_time_destructors': 1, },
202 'content_child.gypi',
205 'content_resources.gyp:content_resources',
207 # Disable c4267 warnings until we fix size_t to int truncations.
208 'msvs_disabled_warnings': [ 4267, ],
211 'target_name': 'content_gpu',
212 'type': 'static_library',
213 'variables': { 'enable_wexit_time_destructors': 1, },
223 'target_name': 'content_plugin',
224 'type': 'static_library',
225 'variables': { 'enable_wexit_time_destructors': 1, },
227 'content_plugin.gypi',
235 'target_name': 'content_ppapi_plugin',
236 'type': 'static_library',
237 'variables': { 'enable_wexit_time_destructors': 1, },
239 'content_ppapi_plugin.gypi',
241 # Disable c4267 warnings until we fix size_t to int truncations.
242 'msvs_disabled_warnings': [ 4267, ],
245 'target_name': 'content_renderer',
246 'type': 'static_library',
247 'variables': { 'enable_wexit_time_destructors': 1, },
249 'content_renderer.gypi',
254 'content_resources.gyp:content_resources',
257 ['chromium_enable_vtune_jit_for_v8==1', {
259 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
265 'target_name': 'content_utility',
266 'type': 'static_library',
267 'variables': { 'enable_wexit_time_destructors': 1, },
269 'content_utility.gypi',
277 'target_name': 'content_worker',
278 'type': 'static_library',
279 'variables': { 'enable_wexit_time_destructors': 1, },
281 'content_worker.gypi',
292 { # component != static_library
295 'target_name': 'content',
296 'type': 'shared_library',
297 'variables': { 'enable_wexit_time_destructors': 1, },
299 'content_resources.gyp:content_resources',
302 ['chromium_enable_vtune_jit_for_v8==1', {
304 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
310 'content_browser.gypi',
311 'content_child.gypi',
312 'content_common.gypi',
314 'content_plugin.gypi',
315 'content_ppapi_plugin.gypi',
316 'content_renderer.gypi',
317 'content_utility.gypi',
318 'content_worker.gypi',
323 ['incremental_chrome_dll==1', {
324 'UseLibraryDependencyInputs': "true",
331 'target_name': 'content_app_browser',
333 'dependencies': ['content', 'content_browser'],
336 'target_name': 'content_app_child',
338 'dependencies': ['content', 'content_child'],
341 'target_name': 'content_app_both',
343 'dependencies': ['content'],
344 'export_dependent_settings': ['content'],
347 'target_name': 'content_browser',
349 'dependencies': ['content'],
350 'export_dependent_settings': ['content'],
353 'target_name': 'content_common',
355 'dependencies': ['content', 'content_resources.gyp:content_resources'],
356 # Disable c4267 warnings until we fix size_t to int truncations.
357 'msvs_disabled_warnings': [ 4267, ],
358 'export_dependent_settings': ['content'],
361 'target_name': 'content_child',
363 'dependencies': ['content'],
366 'target_name': 'content_gpu',
368 'dependencies': ['content'],
371 'target_name': 'content_plugin',
373 'dependencies': ['content'],
376 'target_name': 'content_ppapi_plugin',
378 'dependencies': ['content'],
379 # Disable c4267 warnings until we fix size_t to int truncations.
380 'msvs_disabled_warnings': [ 4267, ],
383 'target_name': 'content_renderer',
385 'dependencies': ['content'],
388 'target_name': 'content_utility',
390 'dependencies': ['content'],
391 'export_dependent_settings': ['content'],
394 'target_name': 'content_worker',
396 'dependencies': ['content'],
400 ['OS == "android"', {
403 'target_name': 'common_aidl',
406 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
409 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
410 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
412 'includes': [ '../build/java_aidl.gypi' ],
415 'target_name': 'content_java',
418 '../base/base.gyp:base',
419 '../media/media.gyp:media_java',
420 '../net/net.gyp:net',
421 '../ui/android/ui_android.gyp:ui_java',
424 'gesture_event_type_java',
425 'page_transition_types_java',
426 'popup_item_type_java',
428 'speech_recognition_error_java',
429 'top_controls_state_java',
430 'screen_orientation_values_java',
433 'java_in_dir': '../content/public/android/java',
434 'has_java_resources': 1,
435 'R_package': 'org.chromium.content',
436 'R_package_relpath': 'org/chromium/content',
437 'java_strings_grd': 'android_content_strings.grd',
440 ['android_webview_build == 0', {
442 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
443 '../third_party/guava/guava.gyp:guava_javalib',
447 'includes': [ '../build/java.gypi' ],
450 'target_name': 'gesture_event_type_java',
453 'public/android/java/src/org/chromium/content/browser/GestureEventType.template',
456 'package_name': 'org/chromium/content/browser',
457 'template_deps': ['browser/android/gesture_event_type_list.h'],
459 'includes': [ '../build/android/java_cpp_template.gypi' ],
462 'target_name': 'page_transition_types_java',
465 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
468 'package_name': 'org/chromium/content/browser',
469 'template_deps': ['public/common/page_transition_types_list.h'],
471 'includes': [ '../build/android/java_cpp_template.gypi' ],
474 'target_name': 'popup_item_type_java',
477 'public/android/java/src/org/chromium/content/browser/input/PopupItemType.template',
480 'package_name': 'org/chromium/content/browser/input',
481 'template_deps': ['browser/android/popup_item_type_list.h'],
483 'includes': [ '../build/android/java_cpp_template.gypi' ],
486 'target_name': 'result_codes_java',
489 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
492 'package_name': 'org/chromium/content/common',
493 'template_deps': ['public/common/result_codes_list.h'],
495 'includes': [ '../build/android/java_cpp_template.gypi' ],
498 'target_name': 'speech_recognition_error_java',
501 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
504 'package_name': 'org/chromium/content/browser',
505 'template_deps': ['public/common/speech_recognition_error_list.h'],
507 'includes': [ '../build/android/java_cpp_template.gypi' ],
510 'target_name': 'top_controls_state_java',
513 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
516 'package_name': 'org/chromium/content/common',
517 'template_deps': ['public/common/top_controls_state_list.h'],
519 'includes': [ '../build/android/java_cpp_template.gypi' ],
522 'target_name': 'screen_orientation_values_java',
525 'public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template',
528 'package_name': 'org/chromium/content/common',
529 'template_deps': ['public/common/screen_orientation_values_list.h'],
531 'includes': [ '../build/android/java_cpp_template.gypi' ],
534 'target_name': 'java_set_jni_headers',
537 'jni_gen_package': 'content',
538 'input_java_class': 'java/util/HashSet.class',
540 'includes': [ '../build/jar_file_jni_generator.gypi' ],
543 'target_name': 'motionevent_jni_headers',
546 'jni_gen_package': 'content',
547 'jni_generator_ptr_type': 'long',
548 'input_java_class': 'android/view/MotionEvent.class',
550 'includes': [ '../build/jar_file_jni_generator.gypi' ],
553 'target_name': 'content_jni_headers',
556 'java_set_jni_headers',
557 'motionevent_jni_headers'
559 'includes': [ 'content_jni.gypi' ],
562 'target_name': 'content_icudata',
565 ['icu_use_data_file_flag==1', {
568 'destination': '<(PRODUCT_DIR)/content_shell/assets',
570 '<(PRODUCT_DIR)/icudtl.dat',
578 }], # OS == "android"