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'],
30 '../build/win_precompile.gypi',
34 # In component mode, we build all of content as a single DLL.
35 # However, in the static mode, we need to build content as multiple
36 # targets in order to prevent dependencies from getting introduced
37 # upstream unnecessarily (e.g., content_renderer depends on allocator
38 # and chrome_exe depends on content_common but we don't want
39 # chrome_exe to have to depend on allocator).
40 ['component=="static_library"', {
42 'COMPILE_CONTENT_STATICALLY',
46 'target_name': 'content',
58 'content_ppapi_plugin',
67 'target_name': 'content_app_browser',
68 'type': 'static_library',
69 'variables': { 'enable_wexit_time_destructors': 1, },
77 ['chrome_multiple_dll', {
79 'CHROME_MULTIPLE_DLL_BROWSER',
85 'target_name': 'content_app_child',
86 'type': 'static_library',
87 'variables': { 'enable_wexit_time_destructors': 1, },
95 ['chrome_multiple_dll', {
97 'CHROME_MULTIPLE_DLL_CHILD',
103 'target_name': 'content_app_both',
104 'type': 'static_library',
105 'variables': { 'enable_wexit_time_destructors': 1, },
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',
125 ['OS != "ios" and chrome_multiple_dll != 1', {
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',
266 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
269 ['chromium_enable_vtune_jit_for_v8==1', {
271 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
277 'content_browser.gypi',
278 'content_child.gypi',
279 'content_common.gypi',
281 'content_plugin.gypi',
282 'content_ppapi_plugin.gypi',
283 'content_renderer.gypi',
284 'content_utility.gypi',
285 'content_worker.gypi',
290 ['incremental_chrome_dll==1', {
291 'UseLibraryDependencyInputs': "true",
298 'target_name': 'content_app_browser',
300 'dependencies': ['content', 'content_browser'],
303 'target_name': 'content_app_child',
305 'dependencies': ['content', 'content_child'],
308 'target_name': 'content_app_both',
310 'dependencies': ['content'],
313 'target_name': 'content_browser',
315 'dependencies': ['content'],
318 'target_name': 'content_common',
320 'dependencies': ['content', 'content_resources.gyp:content_resources'],
321 # Disable c4267 warnings until we fix size_t to int truncations.
322 'msvs_disabled_warnings': [ 4267, ],
325 'target_name': 'content_child',
327 'dependencies': ['content'],
330 'target_name': 'content_gpu',
332 'dependencies': ['content'],
335 'target_name': 'content_plugin',
337 'dependencies': ['content'],
340 'target_name': 'content_ppapi_plugin',
342 'dependencies': ['content'],
343 # Disable c4267 warnings until we fix size_t to int truncations.
344 'msvs_disabled_warnings': [ 4267, ],
347 'target_name': 'content_renderer',
349 'dependencies': ['content'],
352 'target_name': 'content_utility',
354 'dependencies': ['content'],
357 'target_name': 'content_worker',
359 'dependencies': ['content'],
363 ['OS == "android"', {
366 'target_name': 'common_aidl',
369 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
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_native_libraries_gen',
381 'public/android/java/templates/NativeLibraries.template',
384 'package_name': 'org/chromium/content/app',
385 'include_path': 'public/android/java/templates',
387 'public/android/java/templates/native_libraries_array.h'
390 'includes': [ '../build/android/java_cpp_template.gypi' ],
393 'target_name': 'content_java',
396 '../base/base.gyp:base',
397 '../media/media.gyp:media_java',
398 '../net/net.gyp:net',
399 '../ui/ui.gyp:ui_java',
402 'page_transition_types_java',
404 'speech_recognition_error_java',
405 'top_controls_state_java',
406 'content_native_libraries_gen',
409 'java_in_dir': '../content/public/android/java',
410 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
411 'has_java_resources': 1,
412 'R_package': 'org.chromium.content',
413 'R_package_relpath': 'org/chromium/content',
414 'java_strings_grd': 'android_content_strings.grd',
417 ['android_webview_build == 0', {
419 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
420 '../third_party/guava/guava.gyp:guava_javalib',
424 'includes': [ '../build/java.gypi' ],
427 'target_name': 'page_transition_types_java',
430 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
433 'package_name': 'org/chromium/content/browser',
434 'template_deps': ['public/common/page_transition_types_list.h'],
436 'includes': [ '../build/android/java_cpp_template.gypi' ],
439 'target_name': 'result_codes_java',
442 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
445 'package_name': 'org/chromium/content/common',
446 'template_deps': ['public/common/result_codes_list.h'],
448 'includes': [ '../build/android/java_cpp_template.gypi' ],
451 'target_name': 'speech_recognition_error_java',
454 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
457 'package_name': 'org/chromium/content/browser',
458 'template_deps': ['public/common/speech_recognition_error_list.h'],
460 'includes': [ '../build/android/java_cpp_template.gypi' ],
463 'target_name': 'top_controls_state_java',
466 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
469 'package_name': 'org/chromium/content/common',
470 'template_deps': ['public/common/top_controls_state_list.h'],
472 'includes': [ '../build/android/java_cpp_template.gypi' ],
475 'target_name': 'java_set_jni_headers',
478 'jni_gen_package': 'content',
479 'input_java_class': 'java/util/HashSet.class',
481 'includes': [ '../build/jar_file_jni_generator.gypi' ],
485 'target_name': 'content_jni_headers',
488 'java_set_jni_headers',
490 'direct_dependent_settings': {
492 '<(SHARED_INTERMEDIATE_DIR)/content',
495 'includes': [ 'content_jni.gypi' ],
498 }], # OS == "android"