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', {
96 ['chrome_split_dll', {
109 'target_name': 'content_common',
110 'type': 'static_library',
111 'variables': { 'enable_wexit_time_destructors': 1, },
113 'content_common.gypi',
118 'content_resources.gyp:content_resources',
122 # Disable c4267 warnings until we fix size_t to int truncations.
123 'msvs_disabled_warnings': [ 4267, ],
126 'target_name': 'content_child',
127 'type': 'static_library',
128 'variables': { 'enable_wexit_time_destructors': 1, },
130 'content_child.gypi',
135 'content_resources.gyp:content_resources',
139 # Disable c4267 warnings until we fix size_t to int truncations.
140 'msvs_disabled_warnings': [ 4267, ],
148 'target_name': 'content_gpu',
149 'type': 'static_library',
150 'variables': { 'enable_wexit_time_destructors': 1, },
159 'target_name': 'content_plugin',
160 'type': 'static_library',
161 'variables': { 'enable_wexit_time_destructors': 1, },
163 'content_plugin.gypi',
171 'target_name': 'content_ppapi_plugin',
172 'type': 'static_library',
173 'variables': { 'enable_wexit_time_destructors': 1, },
175 'content_ppapi_plugin.gypi',
177 # Disable c4267 warnings until we fix size_t to int truncations.
178 'msvs_disabled_warnings': [ 4267, ],
181 'target_name': 'content_renderer',
182 'type': 'static_library',
183 'variables': { 'enable_wexit_time_destructors': 1, },
185 'content_renderer.gypi',
190 'content_resources.gyp:content_resources',
193 ['chromium_enable_vtune_jit_for_v8==1', {
195 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
201 'target_name': 'content_utility',
202 'type': 'static_library',
203 'variables': { 'enable_wexit_time_destructors': 1, },
205 'content_utility.gypi',
212 'target_name': 'content_worker',
213 'type': 'static_library',
214 'variables': { 'enable_wexit_time_destructors': 1, },
216 'content_worker.gypi',
227 { # component != static_library
230 'target_name': 'content',
231 'type': 'shared_library',
232 'variables': { 'enable_wexit_time_destructors': 1, },
234 'content_resources.gyp:content_resources',
239 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
242 ['chromium_enable_vtune_jit_for_v8==1', {
244 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
250 'content_browser.gypi',
251 'content_child.gypi',
252 'content_common.gypi',
254 'content_plugin.gypi',
255 'content_ppapi_plugin.gypi',
256 'content_renderer.gypi',
257 'content_utility.gypi',
258 'content_worker.gypi',
263 ['incremental_chrome_dll==1', {
264 'UseLibraryDependencyInputs': "true",
271 'target_name': 'content_app',
273 'dependencies': ['content', 'content_browser'],
276 'target_name': 'content_browser',
278 'dependencies': ['content'],
281 'target_name': 'content_common',
283 'dependencies': ['content', 'content_resources.gyp:content_resources'],
284 # Disable c4267 warnings until we fix size_t to int truncations.
285 'msvs_disabled_warnings': [ 4267, ],
288 'target_name': 'content_child',
290 'dependencies': ['content'],
293 'target_name': 'content_gpu',
295 'dependencies': ['content'],
298 'target_name': 'content_plugin',
300 'dependencies': ['content'],
303 'target_name': 'content_ppapi_plugin',
305 'dependencies': ['content'],
306 # Disable c4267 warnings until we fix size_t to int truncations.
307 'msvs_disabled_warnings': [ 4267, ],
310 'target_name': 'content_renderer',
312 'dependencies': ['content'],
315 'target_name': 'content_utility',
317 'dependencies': ['content'],
320 'target_name': 'content_worker',
322 'dependencies': ['content'],
326 ['OS == "android"', {
329 'target_name': 'common_aidl',
332 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
335 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
336 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
338 'includes': [ '../build/java_aidl.gypi' ],
341 'target_name': 'content_native_libraries_gen',
344 'public/android/java/templates/NativeLibraries.template',
347 'package_name': 'org/chromium/content/app',
348 'include_path': 'public/android/java/templates',
350 'public/android/java/templates/native_libraries_array.h'
353 'includes': [ '../build/android/java_cpp_template.gypi' ],
356 'target_name': 'content_java',
359 '../base/base.gyp:base',
360 '../media/media.gyp:media_java',
361 '../net/net.gyp:net',
362 '../ui/ui.gyp:ui_java',
365 'page_transition_types_java',
367 'speech_recognition_error_java',
368 'top_controls_state_java',
369 'content_native_libraries_gen',
372 'java_in_dir': '../content/public/android/java',
373 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
374 'has_java_resources': 1,
375 'R_package': 'org.chromium.content',
376 'R_package_relpath': 'org/chromium/content',
377 'java_strings_grd': 'android_content_strings.grd',
380 ['android_webview_build == 0', {
382 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
383 '../third_party/guava/guava.gyp:guava_javalib',
387 'includes': [ '../build/java.gypi' ],
390 'target_name': 'page_transition_types_java',
393 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
396 'package_name': 'org/chromium/content/browser',
397 'template_deps': ['public/common/page_transition_types_list.h'],
399 'includes': [ '../build/android/java_cpp_template.gypi' ],
402 'target_name': 'result_codes_java',
405 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
408 'package_name': 'org/chromium/content/common',
409 'template_deps': ['public/common/result_codes_list.h'],
411 'includes': [ '../build/android/java_cpp_template.gypi' ],
414 'target_name': 'speech_recognition_error_java',
417 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
420 'package_name': 'org/chromium/content/browser',
421 'template_deps': ['public/common/speech_recognition_error_list.h'],
423 'includes': [ '../build/android/java_cpp_template.gypi' ],
426 'target_name': 'top_controls_state_java',
429 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
432 'package_name': 'org/chromium/content/common',
433 'template_deps': ['public/common/top_controls_state_list.h'],
435 'includes': [ '../build/android/java_cpp_template.gypi' ],
438 'target_name': 'java_set_jni_headers',
441 'jni_gen_package': 'content',
442 'input_java_class': 'java/util/HashSet.class',
444 'includes': [ '../build/jar_file_jni_generator.gypi' ],
448 'target_name': 'content_jni_headers',
451 'java_set_jni_headers',
453 'direct_dependent_settings': {
455 '<(SHARED_INTERMEDIATE_DIR)/content',
458 'includes': [ 'content_jni.gypi' ],
461 }], # OS == "android"