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',
31 'target_name': 'webkit_version',
35 'action_name': 'generate_webkit_version',
42 '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
46 '-f', '<(lastchange)',
51 'script': '<(DEPTH)/build/util/version.py',
52 'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
53 'template': 'webkit_version.h.in',
57 'direct_dependent_settings': {
59 '<(SHARED_INTERMEDIATE_DIR)',
62 # Dependents may rely on files generated by this target or one of
63 # its own hard dependencies.
68 # In component mode, we build all of content as a single DLL.
69 # However, in the static mode, we need to build content as multiple
70 # targets in order to prevent dependencies from getting introduced
71 # upstream unnecessarily (e.g., content_renderer depends on allocator
72 # and chrome_exe depends on content_common but we don't want
73 # chrome_exe to have to depend on allocator).
74 ['component=="static_library"', {
76 'COMPILE_CONTENT_STATICALLY',
80 'target_name': 'content',
92 'content_ppapi_plugin',
101 'target_name': 'content_app_browser',
102 'type': 'static_library',
103 'variables': { 'enable_wexit_time_destructors': 1, },
111 ['chrome_multiple_dll', {
113 'CHROME_MULTIPLE_DLL_BROWSER',
119 'target_name': 'content_app_child',
120 'type': 'static_library',
121 'variables': { 'enable_wexit_time_destructors': 1, },
129 ['chrome_multiple_dll', {
131 'CHROME_MULTIPLE_DLL_CHILD',
137 'target_name': 'content_app_both',
138 'type': 'static_library',
139 'variables': { 'enable_wexit_time_destructors': 1, },
146 'export_dependent_settings': [
151 'target_name': 'content_browser',
152 'type': 'static_library',
153 'variables': { 'enable_wexit_time_destructors': 1, },
155 'content_browser.gypi',
159 'content_resources.gyp:content_resources',
176 'target_name': 'content_common',
177 'type': 'static_library',
178 'variables': { 'enable_wexit_time_destructors': 1, },
180 'content_common.gypi',
185 'content_resources.gyp:content_resources',
189 # Disable c4267 warnings until we fix size_t to int truncations.
190 'msvs_disabled_warnings': [ 4267, ],
197 'target_name': 'content_child',
198 'type': 'static_library',
199 'variables': { 'enable_wexit_time_destructors': 1, },
201 'content_child.gypi',
204 'content_resources.gyp:content_resources',
206 # Disable c4267 warnings until we fix size_t to int truncations.
207 'msvs_disabled_warnings': [ 4267, ],
210 'target_name': 'content_gpu',
211 'type': 'static_library',
212 'variables': { 'enable_wexit_time_destructors': 1, },
222 'target_name': 'content_plugin',
223 'type': 'static_library',
224 'variables': { 'enable_wexit_time_destructors': 1, },
226 'content_plugin.gypi',
234 'target_name': 'content_ppapi_plugin',
235 'type': 'static_library',
236 'variables': { 'enable_wexit_time_destructors': 1, },
238 'content_ppapi_plugin.gypi',
240 # Disable c4267 warnings until we fix size_t to int truncations.
241 'msvs_disabled_warnings': [ 4267, ],
244 'target_name': 'content_renderer',
245 'type': 'static_library',
246 'variables': { 'enable_wexit_time_destructors': 1, },
248 'content_renderer.gypi',
253 'content_resources.gyp:content_resources',
256 ['chromium_enable_vtune_jit_for_v8==1', {
258 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
264 'target_name': 'content_utility',
265 'type': 'static_library',
266 'variables': { 'enable_wexit_time_destructors': 1, },
268 'content_utility.gypi',
276 'target_name': 'content_worker',
277 'type': 'static_library',
278 'variables': { 'enable_wexit_time_destructors': 1, },
280 'content_worker.gypi',
291 { # component != static_library
294 'target_name': 'content',
295 'type': 'shared_library',
296 'variables': { 'enable_wexit_time_destructors': 1, },
298 'content_resources.gyp:content_resources',
301 ['chromium_enable_vtune_jit_for_v8==1', {
303 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
309 'content_browser.gypi',
310 'content_child.gypi',
311 'content_common.gypi',
313 'content_plugin.gypi',
314 'content_ppapi_plugin.gypi',
315 'content_renderer.gypi',
316 'content_utility.gypi',
317 'content_worker.gypi',
322 ['incremental_chrome_dll==1', {
323 'UseLibraryDependencyInputs': "true",
330 'target_name': 'content_app_browser',
332 'dependencies': ['content', 'content_browser'],
335 'target_name': 'content_app_child',
337 'dependencies': ['content', 'content_child'],
340 'target_name': 'content_app_both',
342 'dependencies': ['content'],
343 'export_dependent_settings': ['content'],
346 'target_name': 'content_browser',
348 'dependencies': ['content'],
349 'export_dependent_settings': ['content'],
352 'target_name': 'content_common',
354 'dependencies': ['content', 'content_resources.gyp:content_resources'],
355 # Disable c4267 warnings until we fix size_t to int truncations.
356 'msvs_disabled_warnings': [ 4267, ],
357 'export_dependent_settings': ['content'],
360 'target_name': 'content_child',
362 'dependencies': ['content'],
365 'target_name': 'content_gpu',
367 'dependencies': ['content'],
370 'target_name': 'content_plugin',
372 'dependencies': ['content'],
375 'target_name': 'content_ppapi_plugin',
377 'dependencies': ['content'],
378 # Disable c4267 warnings until we fix size_t to int truncations.
379 'msvs_disabled_warnings': [ 4267, ],
382 'target_name': 'content_renderer',
384 'dependencies': ['content'],
387 'target_name': 'content_utility',
389 'dependencies': ['content'],
390 'export_dependent_settings': ['content'],
393 'target_name': 'content_worker',
395 'dependencies': ['content'],
399 ['OS == "android"', {
402 'target_name': 'common_aidl',
405 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
408 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
409 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
411 'includes': [ '../build/java_aidl.gypi' ],
414 'target_name': 'content_java',
417 '../base/base.gyp:base',
418 '../media/media.gyp:media_java',
419 '../net/net.gyp:net',
420 '../ui/android/ui_android.gyp:ui_java',
423 'gesture_event_type_java',
424 'page_transition_types_java',
425 'popup_item_type_java',
427 'speech_recognition_error_java',
428 'top_controls_state_java',
429 'screen_orientation_values_java',
432 'java_in_dir': '../content/public/android/java',
433 'has_java_resources': 1,
434 'R_package': 'org.chromium.content',
435 'R_package_relpath': 'org/chromium/content',
436 'java_strings_grd': 'android_content_strings.grd',
439 ['android_webview_build == 0', {
441 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
442 '../third_party/guava/guava.gyp:guava_javalib',
446 'includes': [ '../build/java.gypi' ],
449 'target_name': 'gesture_event_type_java',
452 'public/android/java/src/org/chromium/content/browser/GestureEventType.template',
455 'package_name': 'org/chromium/content/browser',
456 'template_deps': ['browser/android/gesture_event_type_list.h'],
458 'includes': [ '../build/android/java_cpp_template.gypi' ],
461 'target_name': 'page_transition_types_java',
464 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
467 'package_name': 'org/chromium/content/browser',
468 'template_deps': ['public/common/page_transition_types_list.h'],
470 'includes': [ '../build/android/java_cpp_template.gypi' ],
473 'target_name': 'popup_item_type_java',
476 'public/android/java/src/org/chromium/content/browser/input/PopupItemType.template',
479 'package_name': 'org/chromium/content/browser/input',
480 'template_deps': ['browser/android/popup_item_type_list.h'],
482 'includes': [ '../build/android/java_cpp_template.gypi' ],
485 'target_name': 'result_codes_java',
488 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
491 'package_name': 'org/chromium/content/common',
492 'template_deps': ['public/common/result_codes_list.h'],
494 'includes': [ '../build/android/java_cpp_template.gypi' ],
497 'target_name': 'speech_recognition_error_java',
500 'public/android/java/src/org/chromium/content/browser/SpeechRecognitionError.template',
503 'package_name': 'org/chromium/content/browser',
504 'template_deps': ['public/common/speech_recognition_error_list.h'],
506 'includes': [ '../build/android/java_cpp_template.gypi' ],
509 'target_name': 'top_controls_state_java',
512 'public/android/java/src/org/chromium/content/common/TopControlsState.template',
515 'package_name': 'org/chromium/content/common',
516 'template_deps': ['public/common/top_controls_state_list.h'],
518 'includes': [ '../build/android/java_cpp_template.gypi' ],
521 'target_name': 'screen_orientation_values_java',
524 'public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template',
527 'package_name': 'org/chromium/content/common',
528 'template_deps': ['public/common/screen_orientation_values_list.h'],
530 'includes': [ '../build/android/java_cpp_template.gypi' ],
533 'target_name': 'java_set_jni_headers',
536 'jni_gen_package': 'content',
537 'input_java_class': 'java/util/HashSet.class',
539 'includes': [ '../build/jar_file_jni_generator.gypi' ],
542 'target_name': 'motionevent_jni_headers',
545 'jni_gen_package': 'content',
546 'jni_generator_ptr_type': 'long',
547 'input_java_class': 'android/view/MotionEvent.class',
549 'includes': [ '../build/jar_file_jni_generator.gypi' ],
552 'target_name': 'content_jni_headers',
555 'java_set_jni_headers',
556 'motionevent_jni_headers'
558 'includes': [ 'content_jni.gypi' ],
561 'target_name': 'content_icudata',
564 ['icu_use_data_file_flag==1', {
567 'destination': '<(PRODUCT_DIR)/content_shell/assets',
569 '<(PRODUCT_DIR)/icudtl.dat',
577 }], # OS == "android"