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': '<!pymod_do_main(dir_exists ../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 'content_common_mojo_bindings.gypi',
28 'content_resources.gypi',
29 '../build/win_precompile.gypi',
35 'target_name': 'content_startup_helper_win',
36 'type': 'static_library',
41 '../base/base.gyp:base',
42 '../base/base.gyp:base_i18n',
43 '../sandbox/sandbox.gyp:sandbox',
46 'app/startup_helper_win.cc',
47 'public/app/startup_helper_win.h',
52 # In component mode, we build all of content as a single DLL.
53 # However, in the static mode, we need to build content as multiple
54 # targets in order to prevent dependencies from getting introduced
55 # upstream unnecessarily (e.g., content_renderer depends on allocator
56 # and chrome_exe depends on content_common but we don't want
57 # chrome_exe to have to depend on allocator).
58 ['component=="static_library"', {
60 'COMPILE_CONTENT_STATICALLY',
64 # GN version: //content
65 'target_name': 'content',
71 'export_dependent_settings': [
80 'content_ppapi_plugin',
88 # GN version: //content/app:browser
89 'target_name': 'content_app_browser',
90 'type': 'static_library',
91 'variables': { 'enable_wexit_time_destructors': 1, },
98 'export_dependent_settings': [
102 ['chrome_multiple_dll', {
104 'CHROME_MULTIPLE_DLL_BROWSER',
110 # GN version: //content/app:child
111 'target_name': 'content_app_child',
112 'type': 'static_library',
113 'variables': { 'enable_wexit_time_destructors': 1, },
120 'export_dependent_settings': [
124 ['chrome_multiple_dll', {
126 'CHROME_MULTIPLE_DLL_CHILD',
132 # GN version: //content/app:both
133 'target_name': 'content_app_both',
134 'type': 'static_library',
135 'variables': { 'enable_wexit_time_destructors': 1, },
142 'export_dependent_settings': [
147 # GN version: //content/browser and //content/public/browser
148 'target_name': 'content_browser',
149 'type': 'static_library',
150 'variables': { 'enable_wexit_time_destructors': 1, },
152 'content_browser.gypi',
157 'export_dependent_settings': [
180 # GN version: //content/common and //content/public/common
181 'target_name': 'content_common',
182 'type': 'static_library',
183 'variables': { 'enable_wexit_time_destructors': 1, },
185 'content_common.gypi',
194 # Disable c4267 warnings until we fix size_t to int truncations.
195 'msvs_disabled_warnings': [ 4267, ],
202 # GN version: //content/child and //content/public/child
203 'target_name': 'content_child',
204 'type': 'static_library',
205 'variables': { 'enable_wexit_time_destructors': 1, },
207 'content_child.gypi',
212 # Disable c4267 warnings until we fix size_t to int truncations.
213 'msvs_disabled_warnings': [ 4267, ],
216 # GN version: //content/gpu
217 'target_name': 'content_gpu',
218 'type': 'static_library',
219 'variables': { 'enable_wexit_time_destructors': 1, },
229 # GN version: //content/plugin and //content/public/plugin
230 'target_name': 'content_plugin',
231 'type': 'static_library',
232 'variables': { 'enable_wexit_time_destructors': 1, },
234 'content_plugin.gypi',
242 # GN version: //content/ppapi_plugin
243 'target_name': 'content_ppapi_plugin',
244 'type': 'static_library',
245 'variables': { 'enable_wexit_time_destructors': 1, },
247 'content_ppapi_plugin.gypi',
249 # Disable c4267 warnings until we fix size_t to int truncations.
250 'msvs_disabled_warnings': [ 4267, ],
253 # GN version: //content/renderer and //content/public/renderer
254 'target_name': 'content_renderer',
255 'type': 'static_library',
256 'variables': { 'enable_wexit_time_destructors': 1, },
258 'content_renderer.gypi',
266 ['chromium_enable_vtune_jit_for_v8==1', {
268 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
274 # GN version: //content/utility and //content/public/utility
275 'target_name': 'content_utility',
276 'type': 'static_library',
277 'variables': { 'enable_wexit_time_destructors': 1, },
279 'content_utility.gypi',
290 { # component != static_library
293 # GN version: //content
294 'target_name': 'content',
295 'type': 'shared_library',
296 'variables': { 'enable_wexit_time_destructors': 1, },
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',
321 ['incremental_chrome_dll==1', {
322 'UseLibraryDependencyInputs': "true",
329 # GN version: //content/app:browser
330 'target_name': 'content_app_browser',
332 'dependencies': ['content', 'content_browser'],
335 # GN version: //content/app:child
336 'target_name': 'content_app_child',
338 'dependencies': ['content', 'content_child'],
341 # GN version: //content/app:both
342 'target_name': 'content_app_both',
344 'dependencies': ['content'],
345 'export_dependent_settings': ['content'],
348 # GN version: //content/browser and //content/public/browser
349 'target_name': 'content_browser',
351 'dependencies': ['content'],
352 'export_dependent_settings': ['content'],
355 # GN version: //content/common and //content/public/common
356 'target_name': 'content_common',
358 'dependencies': ['content', 'content_resources'],
359 # Disable c4267 warnings until we fix size_t to int truncations.
360 'msvs_disabled_warnings': [ 4267, ],
361 'export_dependent_settings': ['content'],
364 # GN Version: //content/child
365 'target_name': 'content_child',
367 'dependencies': ['content'],
370 # GN version: //content/gpu
371 'target_name': 'content_gpu',
373 'dependencies': ['content'],
376 # GN version: //content/plugin
377 'target_name': 'content_plugin',
379 'dependencies': ['content'],
382 # GN version: //content/ppapi_plugin
383 'target_name': 'content_ppapi_plugin',
385 'dependencies': ['content'],
386 # Disable c4267 warnings until we fix size_t to int truncations.
387 'msvs_disabled_warnings': [ 4267, ],
390 # GN version: //content/renderer and //content/public/renderer
391 'target_name': 'content_renderer',
393 'dependencies': ['content'],
396 # GN version: //content/utility
397 'target_name': 'content_utility',
399 'dependencies': ['content'],
400 'export_dependent_settings': ['content'],
404 ['OS == "android"', {
407 'target_name': 'common_aidl',
410 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
411 'aidl_import_include': 'public/android/java/src',
414 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
415 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
417 'includes': [ '../build/java_aidl.gypi' ],
420 'target_name': 'content_java',
423 '../base/base.gyp:base',
424 '../media/media.gyp:media_java',
425 '../mojo/mojo_base.gyp:mojo_system_java',
426 '../mojo/public/mojo_public.gyp:mojo_bindings_java',
427 '../net/net.gyp:net',
428 '../ui/android/ui_android.gyp:ui_java',
431 'content_strings_grd',
432 'content_gamepad_mapping',
433 'gesture_event_type_java',
434 'popup_item_type_java',
436 'selection_event_type_java',
437 'speech_recognition_error_java',
438 'top_controls_state_java',
439 'screen_orientation_values_java',
442 'java_in_dir': '../content/public/android/java',
443 'has_java_resources': 1,
444 'R_package': 'org.chromium.content',
445 'R_package_relpath': 'org/chromium/content',
448 ['android_webview_build == 0', {
450 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
454 'includes': [ '../build/java.gypi' ],
457 'target_name': 'content_strings_grd',
458 # The android_webview/Android.mk file depends on this target directly.
459 'android_unmangled_name': 1,
462 'grd_file': '../content/public/android/java/strings/android_content_strings.grd',
465 '../build/java_strings_grd.gypi',
469 'target_name': 'content_gamepad_mapping',
472 'source_file': 'browser/gamepad/gamepad_standard_mappings.h',
474 'includes': [ '../build/android/java_cpp_enum.gypi' ],
477 'target_name': 'gesture_event_type_java',
480 'source_file': 'browser/android/gesture_event_type.h',
482 'includes': [ '../build/android/java_cpp_enum.gypi' ],
485 'target_name': 'popup_item_type_java',
488 'source_file': 'browser/android/content_view_core_impl.cc',
490 'includes': [ '../build/android/java_cpp_enum.gypi' ],
493 'target_name': 'result_codes_java',
496 'source_file': 'public/common/result_codes.h',
498 'includes': [ '../build/android/java_cpp_enum.gypi' ],
501 'target_name': 'selection_event_type_java',
504 'source_file': 'browser/renderer_host/input/selection_event_type.h',
506 'includes': [ '../build/android/java_cpp_enum.gypi' ],
509 'target_name': 'speech_recognition_error_java',
512 'source_file': 'public/common/speech_recognition_error.h',
514 'includes': [ '../build/android/java_cpp_enum.gypi' ],
517 'target_name': 'top_controls_state_java',
520 'source_file': 'public/common/top_controls_state.h',
522 'includes': [ '../build/android/java_cpp_enum.gypi' ],
525 'target_name': 'screen_orientation_values_java',
528 'source_file': 'public/common/screen_orientation_values.h',
530 'includes': [ '../build/android/java_cpp_enum.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 'input_java_class': 'android/view/MotionEvent.class',
548 'includes': [ '../build/jar_file_jni_generator.gypi' ],
551 'target_name': 'content_jni_headers',
554 'java_set_jni_headers',
555 'motionevent_jni_headers'
557 'includes': [ 'content_jni.gypi' ],
560 'target_name': 'content_icudata',
563 ['icu_use_data_file_flag==1', {
566 'destination': '<(PRODUCT_DIR)/content_shell/assets',
568 '<(PRODUCT_DIR)/icudtl.dat',
576 }], # OS == "android"