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_java',
377 '../base/base.gyp:base',
378 '../media/media.gyp:media_java',
379 '../net/net.gyp:net',
380 '../ui/android/ui_android.gyp:ui_java',
383 'gesture_event_type_java',
384 'page_transition_types_java',
385 'popup_item_type_java',
387 'speech_recognition_error_java',
388 'top_controls_state_java',
391 'java_in_dir': '../content/public/android/java',
392 'has_java_resources': 1,
393 'R_package': 'org.chromium.content',
394 'R_package_relpath': 'org/chromium/content',
395 'java_strings_grd': 'android_content_strings.grd',
398 ['android_webview_build == 0', {
400 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
401 '../third_party/guava/guava.gyp:guava_javalib',
405 'includes': [ '../build/java.gypi' ],
408 'target_name': 'gesture_event_type_java',
411 'public/android/java/src/org/chromium/content/browser/GestureEventType.template',
414 'package_name': 'org/chromium/content/browser',
415 'template_deps': ['browser/android/gesture_event_type_list.h'],
417 'includes': [ '../build/android/java_cpp_template.gypi' ],
420 'target_name': 'page_transition_types_java',
423 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
426 'package_name': 'org/chromium/content/browser',
427 'template_deps': ['public/common/page_transition_types_list.h'],
429 'includes': [ '../build/android/java_cpp_template.gypi' ],
432 'target_name': 'popup_item_type_java',
435 'public/android/java/src/org/chromium/content/browser/input/PopupItemType.template',
438 'package_name': 'org/chromium/content/browser/input',
439 'template_deps': ['browser/android/popup_item_type_list.h'],
441 'includes': [ '../build/android/java_cpp_template.gypi' ],
444 'target_name': 'result_codes_java',
447 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
450 'package_name': 'org/chromium/content/common',
451 'template_deps': ['public/common/result_codes_list.h'],
453 'includes': [ '../build/android/java_cpp_template.gypi' ],
456 'target_name': 'speech_recognition_error_java',
459 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
462 'package_name': 'org/chromium/content/browser',
463 'template_deps': ['public/common/speech_recognition_error_list.h'],
465 'includes': [ '../build/android/java_cpp_template.gypi' ],
468 'target_name': 'top_controls_state_java',
471 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
474 'package_name': 'org/chromium/content/common',
475 'template_deps': ['public/common/top_controls_state_list.h'],
477 'includes': [ '../build/android/java_cpp_template.gypi' ],
480 'target_name': 'java_set_jni_headers',
483 'jni_gen_package': 'content',
484 'input_java_class': 'java/util/HashSet.class',
486 'includes': [ '../build/jar_file_jni_generator.gypi' ],
489 'target_name': 'motionevent_jni_headers',
492 'jni_gen_package': 'content',
493 'jni_generator_ptr_type': 'long',
494 'input_java_class': 'android/view/MotionEvent.class',
496 'includes': [ '../build/jar_file_jni_generator.gypi' ],
499 'target_name': 'content_jni_headers',
502 'java_set_jni_headers',
503 'motionevent_jni_headers'
505 'includes': [ 'content_jni.gypi' ],
508 }], # OS == "android"