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': '<!(python <(DEPTH)/build/dir_exists.py ../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',
30 # In component mode, we build all of content as a single DLL.
31 # However, in the static mode, we need to build content as multiple
32 # targets in order to prevent dependencies from getting introduced
33 # upstream unnecessarily (e.g., content_renderer depends on allocator
34 # and chrome_exe depends on content_common but we don't want
35 # chrome_exe to have to depend on allocator).
36 ['component=="static_library"', {
38 'COMPILE_CONTENT_STATICALLY',
42 'target_name': 'content',
54 'content_ppapi_plugin',
63 'target_name': 'content_app_browser',
64 'type': 'static_library',
65 'variables': { 'enable_wexit_time_destructors': 1, },
73 ['chrome_multiple_dll', {
75 'CHROME_MULTIPLE_DLL_BROWSER',
81 'target_name': 'content_app_child',
82 'type': 'static_library',
83 'variables': { 'enable_wexit_time_destructors': 1, },
91 ['chrome_multiple_dll', {
93 'CHROME_MULTIPLE_DLL_CHILD',
99 'target_name': 'content_app_both',
100 'type': 'static_library',
101 'variables': { 'enable_wexit_time_destructors': 1, },
110 'target_name': 'content_browser',
111 'type': 'static_library',
112 'variables': { 'enable_wexit_time_destructors': 1, },
114 'content_browser.gypi',
118 'content_resources.gyp:content_resources',
135 'target_name': 'content_common',
136 'type': 'static_library',
137 'variables': { 'enable_wexit_time_destructors': 1, },
139 'content_common.gypi',
144 'content_resources.gyp:content_resources',
148 # Disable c4267 warnings until we fix size_t to int truncations.
149 'msvs_disabled_warnings': [ 4267, ],
156 'target_name': 'content_child',
157 'type': 'static_library',
158 'variables': { 'enable_wexit_time_destructors': 1, },
160 'content_child.gypi',
163 'content_resources.gyp:content_resources',
165 # Disable c4267 warnings until we fix size_t to int truncations.
166 'msvs_disabled_warnings': [ 4267, ],
169 'target_name': 'content_gpu',
170 'type': 'static_library',
171 'variables': { 'enable_wexit_time_destructors': 1, },
181 'target_name': 'content_plugin',
182 'type': 'static_library',
183 'variables': { 'enable_wexit_time_destructors': 1, },
185 'content_plugin.gypi',
193 'target_name': 'content_ppapi_plugin',
194 'type': 'static_library',
195 'variables': { 'enable_wexit_time_destructors': 1, },
197 'content_ppapi_plugin.gypi',
199 # Disable c4267 warnings until we fix size_t to int truncations.
200 'msvs_disabled_warnings': [ 4267, ],
203 'target_name': 'content_renderer',
204 'type': 'static_library',
205 'variables': { 'enable_wexit_time_destructors': 1, },
207 'content_renderer.gypi',
212 'content_resources.gyp:content_resources',
215 ['chromium_enable_vtune_jit_for_v8==1', {
217 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
223 'target_name': 'content_utility',
224 'type': 'static_library',
225 'variables': { 'enable_wexit_time_destructors': 1, },
227 'content_utility.gypi',
235 'target_name': 'content_worker',
236 'type': 'static_library',
237 'variables': { 'enable_wexit_time_destructors': 1, },
239 'content_worker.gypi',
250 { # component != static_library
253 'target_name': 'content',
254 'type': 'shared_library',
255 'variables': { 'enable_wexit_time_destructors': 1, },
257 'content_resources.gyp:content_resources',
262 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
265 ['chromium_enable_vtune_jit_for_v8==1', {
267 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
273 'content_browser.gypi',
274 'content_child.gypi',
275 'content_common.gypi',
277 'content_plugin.gypi',
278 'content_ppapi_plugin.gypi',
279 'content_renderer.gypi',
280 'content_utility.gypi',
281 'content_worker.gypi',
286 ['incremental_chrome_dll==1', {
287 'UseLibraryDependencyInputs': "true",
294 'target_name': 'content_app_browser',
296 'dependencies': ['content', 'content_browser'],
299 'target_name': 'content_app_child',
301 'dependencies': ['content', 'content_child'],
304 'target_name': 'content_app_both',
306 'dependencies': ['content'],
309 'target_name': 'content_browser',
311 'dependencies': ['content'],
314 'target_name': 'content_common',
316 'dependencies': ['content', 'content_resources.gyp:content_resources'],
317 # Disable c4267 warnings until we fix size_t to int truncations.
318 'msvs_disabled_warnings': [ 4267, ],
321 'target_name': 'content_child',
323 'dependencies': ['content'],
326 'target_name': 'content_gpu',
328 'dependencies': ['content'],
331 'target_name': 'content_plugin',
333 'dependencies': ['content'],
336 'target_name': 'content_ppapi_plugin',
338 'dependencies': ['content'],
339 # Disable c4267 warnings until we fix size_t to int truncations.
340 'msvs_disabled_warnings': [ 4267, ],
343 'target_name': 'content_renderer',
345 'dependencies': ['content'],
348 'target_name': 'content_utility',
350 'dependencies': ['content'],
353 'target_name': 'content_worker',
355 'dependencies': ['content'],
359 ['OS == "android"', {
362 'target_name': 'common_aidl',
365 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
368 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
369 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
371 'includes': [ '../build/java_aidl.gypi' ],
374 'target_name': 'content_native_libraries_gen',
377 'public/android/java/templates/NativeLibraries.template',
380 'package_name': 'org/chromium/content/app',
381 'include_path': 'public/android/java/templates',
383 'public/android/java/templates/native_libraries_array.h'
386 'includes': [ '../build/android/java_cpp_template.gypi' ],
389 'target_name': 'content_java',
392 '../base/base.gyp:base',
393 '../media/media.gyp:media_java',
394 '../net/net.gyp:net',
395 '../ui/ui.gyp:ui_java',
398 'page_transition_types_java',
400 'speech_recognition_error_java',
401 'top_controls_state_java',
402 'content_native_libraries_gen',
405 'java_in_dir': '../content/public/android/java',
406 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
407 'has_java_resources': 1,
408 'R_package': 'org.chromium.content',
409 'R_package_relpath': 'org/chromium/content',
410 'java_strings_grd': 'android_content_strings.grd',
413 ['android_webview_build == 0', {
415 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
416 '../third_party/guava/guava.gyp:guava_javalib',
420 'includes': [ '../build/java.gypi' ],
423 'target_name': 'page_transition_types_java',
426 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
429 'package_name': 'org/chromium/content/browser',
430 'template_deps': ['public/common/page_transition_types_list.h'],
432 'includes': [ '../build/android/java_cpp_template.gypi' ],
435 'target_name': 'result_codes_java',
438 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
441 'package_name': 'org/chromium/content/common',
442 'template_deps': ['public/common/result_codes_list.h'],
444 'includes': [ '../build/android/java_cpp_template.gypi' ],
447 'target_name': 'speech_recognition_error_java',
450 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
453 'package_name': 'org/chromium/content/browser',
454 'template_deps': ['public/common/speech_recognition_error_list.h'],
456 'includes': [ '../build/android/java_cpp_template.gypi' ],
459 'target_name': 'top_controls_state_java',
462 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
465 'package_name': 'org/chromium/content/common',
466 'template_deps': ['public/common/top_controls_state_list.h'],
468 'includes': [ '../build/android/java_cpp_template.gypi' ],
471 'target_name': 'java_set_jni_headers',
474 'jni_gen_package': 'content',
475 'input_java_class': 'java/util/HashSet.class',
477 'includes': [ '../build/jar_file_jni_generator.gypi' ],
481 'target_name': 'content_jni_headers',
484 'java_set_jni_headers',
486 'direct_dependent_settings': {
488 '<(SHARED_INTERMEDIATE_DIR)/content',
491 'includes': [ 'content_jni.gypi' ],
494 'target_name': 'content_android_linker',
495 'type': 'shared_library',
497 ['android_webview_build == 0', {
498 # Avoid breaking the webview build because it doesn't have
499 # <(android_ndk_root)/crazy_linker.gyp. Note that it never uses
502 'common/android/linker/linker_jni.cc',
505 '<(android_ndk_root)/crazy_linker.gyp:crazy_linker',
512 }], # OS == "android"