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 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/directxsdk)',
11 'defines': ['CONTENT_IMPLEMENTATION'],
13 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed.
14 ['OS=="win" and target_arch=="x64"', {
17 'AdditionalOptions': ['/bigobj'],
29 '../build/win_precompile.gypi',
33 # In component mode, we build all of content as a single DLL.
34 # However, in the static mode, we need to build content as multiple
35 # targets in order to prevent dependencies from getting introduced
36 # upstream unnecessarily (e.g., content_renderer depends on allocator
37 # and chrome_exe depends on content_common but we don't want
38 # chrome_exe to have to depend on allocator).
39 ['component=="static_library"', {
41 'COMPILE_CONTENT_STATICALLY',
45 'target_name': 'content',
53 ['OS != "ios" and chrome_split_dll != 1', {
57 'content_ppapi_plugin',
66 'target_name': 'content_app',
67 'type': 'static_library',
68 'variables': { 'enable_wexit_time_destructors': 1, },
77 'target_name': 'content_browser',
78 'type': 'static_library',
79 'variables': { 'enable_wexit_time_destructors': 1, },
81 'content_browser.gypi',
85 'content_resources.gyp:content_resources',
88 ['OS != "ios" and chrome_split_dll != 1', {
94 ['chrome_split_dll', {
102 'target_name': 'content_common',
103 'type': 'static_library',
104 'variables': { 'enable_wexit_time_destructors': 1, },
106 'content_common.gypi',
111 'content_resources.gyp:content_resources',
115 # Disable c4267 warnings until we fix size_t to int truncations.
116 'msvs_disabled_warnings': [ 4267, ],
123 'target_name': 'content_gpu',
124 'type': 'static_library',
125 'variables': { 'enable_wexit_time_destructors': 1, },
134 'target_name': 'content_plugin',
135 'type': 'static_library',
136 'variables': { 'enable_wexit_time_destructors': 1, },
138 'content_plugin.gypi',
145 'target_name': 'content_ppapi_plugin',
146 'type': 'static_library',
147 'variables': { 'enable_wexit_time_destructors': 1, },
149 'content_ppapi_plugin.gypi',
151 # Disable c4267 warnings until we fix size_t to int truncations.
152 'msvs_disabled_warnings': [ 4267, ],
155 'target_name': 'content_renderer',
156 'type': 'static_library',
157 'variables': { 'enable_wexit_time_destructors': 1, },
159 'content_renderer.gypi',
163 'content_resources.gyp:content_resources',
167 'target_name': 'content_utility',
168 'type': 'static_library',
169 'variables': { 'enable_wexit_time_destructors': 1, },
171 'content_utility.gypi',
178 'target_name': 'content_worker',
179 'type': 'static_library',
180 'variables': { 'enable_wexit_time_destructors': 1, },
182 'content_worker.gypi',
192 { # component != static_library
195 'target_name': 'content',
196 'type': 'shared_library',
197 'variables': { 'enable_wexit_time_destructors': 1, },
199 'content_resources.gyp:content_resources',
204 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
210 'content_browser.gypi',
211 'content_common.gypi',
213 'content_plugin.gypi',
214 'content_ppapi_plugin.gypi',
215 'content_renderer.gypi',
216 'content_utility.gypi',
217 'content_worker.gypi',
222 ['incremental_chrome_dll==1', {
223 'UseLibraryDependencyInputs': "true",
230 'target_name': 'content_app',
232 'dependencies': ['content', 'content_browser'],
235 'target_name': 'content_browser',
237 'dependencies': ['content'],
240 'target_name': 'content_common',
242 'dependencies': ['content', 'content_resources.gyp:content_resources'],
243 # Disable c4267 warnings until we fix size_t to int truncations.
244 'msvs_disabled_warnings': [ 4267, ],
247 'target_name': 'content_gpu',
249 'dependencies': ['content'],
252 'target_name': 'content_plugin',
254 'dependencies': ['content'],
257 'target_name': 'content_ppapi_plugin',
259 'dependencies': ['content'],
260 # Disable c4267 warnings until we fix size_t to int truncations.
261 'msvs_disabled_warnings': [ 4267, ],
264 'target_name': 'content_renderer',
266 'dependencies': ['content'],
269 'target_name': 'content_utility',
271 'dependencies': ['content'],
274 'target_name': 'content_worker',
276 'dependencies': ['content'],
280 ['OS == "android"', {
283 'target_name': 'common_aidl',
286 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
289 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
290 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
292 'includes': [ '../build/java_aidl.gypi' ],
295 'target_name': 'content_native_libraries_gen',
298 'public/android/java/templates/NativeLibraries.template',
301 'package_name': 'org/chromium/content/app',
302 'include_path': 'public/android/java/templates',
304 'public/android/java/templates/native_libraries_array.h'
307 'includes': [ '../build/android/java_cpp_template.gypi' ],
310 'target_name': 'content_java',
313 '../base/base.gyp:base',
314 '../media/media.gyp:media_java',
315 '../net/net.gyp:net',
316 '../ui/ui.gyp:ui_java',
319 'page_transition_types_java',
321 'content_native_libraries_gen',
324 'java_in_dir': '../content/public/android/java',
325 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
326 'has_java_resources': 1,
327 'R_package': 'org.chromium.content',
328 'R_package_relpath': 'org/chromium/content',
329 'java_strings_grd': 'android_content_strings.grd',
332 ['android_webview_build == 0', {
334 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
335 '../third_party/guava/guava.gyp:guava_javalib',
339 'includes': [ '../build/java.gypi' ],
342 'target_name': 'page_transition_types_java',
345 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
348 'package_name': 'org/chromium/content/browser',
349 'template_deps': ['public/common/page_transition_types_list.h'],
351 'includes': [ '../build/android/java_cpp_template.gypi' ],
354 'target_name': 'result_codes_java',
357 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
360 'package_name': 'org/chromium/content/common',
361 'template_deps': ['public/common/result_codes_list.h'],
363 'includes': [ '../build/android/java_cpp_template.gypi' ],
366 'target_name': 'java_set_jni_headers',
369 'jni_gen_package': 'content',
370 'input_java_class': 'java/util/HashSet.class',
372 'includes': [ '../build/jar_file_jni_generator.gypi' ],
376 'target_name': 'content_jni_headers',
379 'java_set_jni_headers',
381 'direct_dependent_settings': {
383 '<(SHARED_INTERMEDIATE_DIR)/content',
386 'includes': [ 'content_jni.gypi' ],
389 }], # OS == "android"