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',
55 ['OS != "ios" and chrome_split_dll != 1', {
59 'content_ppapi_plugin',
68 'target_name': 'content_app',
69 'type': 'static_library',
70 'variables': { 'enable_wexit_time_destructors': 1, },
79 'target_name': 'content_browser',
80 'type': 'static_library',
81 'variables': { 'enable_wexit_time_destructors': 1, },
83 'content_browser.gypi',
87 'content_resources.gyp:content_resources',
90 ['OS != "ios" and chrome_split_dll != 1', {
97 ['chrome_split_dll', {
110 'target_name': 'content_common',
111 'type': 'static_library',
112 'variables': { 'enable_wexit_time_destructors': 1, },
114 'content_common.gypi',
119 'content_resources.gyp:content_resources',
123 # Disable c4267 warnings until we fix size_t to int truncations.
124 'msvs_disabled_warnings': [ 4267, ],
127 'target_name': 'content_child',
128 'type': 'static_library',
129 'variables': { 'enable_wexit_time_destructors': 1, },
131 'content_child.gypi',
136 'content_resources.gyp:content_resources',
140 # Disable c4267 warnings until we fix size_t to int truncations.
141 'msvs_disabled_warnings': [ 4267, ],
149 'target_name': 'content_gpu',
150 'type': 'static_library',
151 'variables': { 'enable_wexit_time_destructors': 1, },
160 'target_name': 'content_plugin',
161 'type': 'static_library',
162 'variables': { 'enable_wexit_time_destructors': 1, },
164 'content_plugin.gypi',
172 'target_name': 'content_ppapi_plugin',
173 'type': 'static_library',
174 'variables': { 'enable_wexit_time_destructors': 1, },
176 'content_ppapi_plugin.gypi',
178 # Disable c4267 warnings until we fix size_t to int truncations.
179 'msvs_disabled_warnings': [ 4267, ],
182 'target_name': 'content_renderer',
183 'type': 'static_library',
184 'variables': { 'enable_wexit_time_destructors': 1, },
186 'content_renderer.gypi',
191 'content_resources.gyp:content_resources',
194 ['chromium_enable_vtune_jit_for_v8==1', {
196 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
202 'target_name': 'content_utility',
203 'type': 'static_library',
204 'variables': { 'enable_wexit_time_destructors': 1, },
206 'content_utility.gypi',
213 'target_name': 'content_worker',
214 'type': 'static_library',
215 'variables': { 'enable_wexit_time_destructors': 1, },
217 'content_worker.gypi',
228 { # component != static_library
231 'target_name': 'content',
232 'type': 'shared_library',
233 'variables': { 'enable_wexit_time_destructors': 1, },
235 'content_resources.gyp:content_resources',
240 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
243 ['chromium_enable_vtune_jit_for_v8==1', {
245 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
251 'content_browser.gypi',
252 'content_child.gypi',
253 'content_common.gypi',
255 'content_plugin.gypi',
256 'content_ppapi_plugin.gypi',
257 'content_renderer.gypi',
258 'content_utility.gypi',
259 'content_worker.gypi',
264 ['incremental_chrome_dll==1', {
265 'UseLibraryDependencyInputs': "true",
272 'target_name': 'content_app',
274 'dependencies': ['content', 'content_browser'],
277 'target_name': 'content_browser',
279 'dependencies': ['content'],
282 'target_name': 'content_common',
284 'dependencies': ['content', 'content_resources.gyp:content_resources'],
285 # Disable c4267 warnings until we fix size_t to int truncations.
286 'msvs_disabled_warnings': [ 4267, ],
289 'target_name': 'content_child',
291 'dependencies': ['content'],
294 'target_name': 'content_gpu',
296 'dependencies': ['content'],
299 'target_name': 'content_plugin',
301 'dependencies': ['content'],
304 'target_name': 'content_ppapi_plugin',
306 'dependencies': ['content'],
307 # Disable c4267 warnings until we fix size_t to int truncations.
308 'msvs_disabled_warnings': [ 4267, ],
311 'target_name': 'content_renderer',
313 'dependencies': ['content'],
316 'target_name': 'content_utility',
318 'dependencies': ['content'],
321 'target_name': 'content_worker',
323 'dependencies': ['content'],
327 ['OS == "android"', {
330 'target_name': 'common_aidl',
333 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
336 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
337 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
339 'includes': [ '../build/java_aidl.gypi' ],
342 'target_name': 'content_native_libraries_gen',
345 'public/android/java/templates/NativeLibraries.template',
348 'package_name': 'org/chromium/content/app',
349 'include_path': 'public/android/java/templates',
351 'public/android/java/templates/native_libraries_array.h'
354 'includes': [ '../build/android/java_cpp_template.gypi' ],
357 'target_name': 'content_java',
360 '../base/base.gyp:base',
361 '../media/media.gyp:media_java',
362 '../net/net.gyp:net',
363 '../ui/ui.gyp:ui_java',
366 'page_transition_types_java',
368 'speech_recognition_error_java',
369 'top_controls_state_java',
370 'content_native_libraries_gen',
373 'java_in_dir': '../content/public/android/java',
374 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
375 'has_java_resources': 1,
376 'R_package': 'org.chromium.content',
377 'R_package_relpath': 'org/chromium/content',
378 'java_strings_grd': 'android_content_strings.grd',
381 ['android_webview_build == 0', {
383 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
384 '../third_party/guava/guava.gyp:guava_javalib',
388 'includes': [ '../build/java.gypi' ],
391 'target_name': 'page_transition_types_java',
394 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
397 'package_name': 'org/chromium/content/browser',
398 'template_deps': ['public/common/page_transition_types_list.h'],
400 'includes': [ '../build/android/java_cpp_template.gypi' ],
403 'target_name': 'result_codes_java',
406 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
409 'package_name': 'org/chromium/content/common',
410 'template_deps': ['public/common/result_codes_list.h'],
412 'includes': [ '../build/android/java_cpp_template.gypi' ],
415 'target_name': 'speech_recognition_error_java',
418 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
421 'package_name': 'org/chromium/content/browser',
422 'template_deps': ['public/common/speech_recognition_error_list.h'],
424 'includes': [ '../build/android/java_cpp_template.gypi' ],
427 'target_name': 'top_controls_state_java',
430 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
433 'package_name': 'org/chromium/content/common',
434 'template_deps': ['public/common/top_controls_state_list.h'],
436 'includes': [ '../build/android/java_cpp_template.gypi' ],
439 'target_name': 'java_set_jni_headers',
442 'jni_gen_package': 'content',
443 'input_java_class': 'java/util/HashSet.class',
445 'includes': [ '../build/jar_file_jni_generator.gypi' ],
449 'target_name': 'content_jni_headers',
452 'java_set_jni_headers',
454 'direct_dependent_settings': {
456 '<(SHARED_INTERMEDIATE_DIR)/content',
459 'includes': [ 'content_jni.gypi' ],
462 }], # OS == "android"