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)',
10 ['inside_chromium_build==0', {
11 'webkit_src_dir': '../../../..',
13 'webkit_src_dir': '../third_party/WebKit',
18 'defines': ['CONTENT_IMPLEMENTATION'],
20 ['inside_chromium_build==0', {
22 '../webkit/support/setup_third_party.gyp:third_party_headers',
25 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed.
26 ['OS=="win" and target_arch=="x64"', {
29 'AdditionalOptions': ['/bigobj'],
36 ['inside_chromium_build==1', {
43 '../build/win_precompile.gypi',
47 # In component mode, we build all of content as a single DLL.
48 # However, in the static mode, we need to build content as multiple
49 # targets in order to prevent dependencies from getting introduced
50 # upstream unnecessarily (e.g., content_renderer depends on allocator
51 # and chrome_exe depends on content_common but we don't want
52 # chrome_exe to have to depend on allocator).
53 ['component=="static_library"', {
55 'COMPILE_CONTENT_STATICALLY',
59 'target_name': 'content',
71 'content_ppapi_plugin',
80 'target_name': 'content_app',
81 'type': 'static_library',
82 'variables': { 'enable_wexit_time_destructors': 1, },
91 'target_name': 'content_browser',
92 'type': 'static_library',
93 'variables': { 'enable_wexit_time_destructors': 1, },
95 'content_browser.gypi',
99 'content_resources.gyp:content_resources',
111 'target_name': 'content_common',
112 'type': 'static_library',
113 'variables': { 'enable_wexit_time_destructors': 1, },
115 'content_common.gypi',
120 'content_resources.gyp:content_resources',
124 # Disable c4267 warnings until we fix size_t to int truncations.
125 'msvs_disabled_warnings': [ 4267, ],
132 'target_name': 'content_gpu',
133 'type': 'static_library',
134 'variables': { 'enable_wexit_time_destructors': 1, },
143 'target_name': 'content_plugin',
144 'type': 'static_library',
145 'variables': { 'enable_wexit_time_destructors': 1, },
147 'content_plugin.gypi',
154 'target_name': 'content_ppapi_plugin',
155 'type': 'static_library',
156 'variables': { 'enable_wexit_time_destructors': 1, },
158 'content_ppapi_plugin.gypi',
160 # Disable c4267 warnings until we fix size_t to int truncations.
161 'msvs_disabled_warnings': [ 4267, ],
164 'target_name': 'content_renderer',
165 'type': 'static_library',
166 'variables': { 'enable_wexit_time_destructors': 1, },
168 'content_renderer.gypi',
172 'content_resources.gyp:content_resources',
176 'target_name': 'content_utility',
177 'type': 'static_library',
178 'variables': { 'enable_wexit_time_destructors': 1, },
180 'content_utility.gypi',
187 'target_name': 'content_worker',
188 'type': 'static_library',
189 'variables': { 'enable_wexit_time_destructors': 1, },
191 'content_worker.gypi',
201 { # component != static_library
204 'target_name': 'content',
205 'type': 'shared_library',
206 'variables': { 'enable_wexit_time_destructors': 1, },
208 'content_resources.gyp:content_resources',
213 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
219 'content_browser.gypi',
220 'content_common.gypi',
222 'content_plugin.gypi',
223 'content_ppapi_plugin.gypi',
224 'content_renderer.gypi',
225 'content_utility.gypi',
226 'content_worker.gypi',
231 ['incremental_chrome_dll==1', {
232 'UseLibraryDependencyInputs': "true",
239 'target_name': 'content_app',
241 'dependencies': ['content', 'content_browser'],
244 'target_name': 'content_browser',
246 'dependencies': ['content'],
249 'target_name': 'content_common',
251 'dependencies': ['content', 'content_resources.gyp:content_resources'],
252 # Disable c4267 warnings until we fix size_t to int truncations.
253 'msvs_disabled_warnings': [ 4267, ],
256 'target_name': 'content_gpu',
258 'dependencies': ['content'],
261 'target_name': 'content_plugin',
263 'dependencies': ['content'],
266 'target_name': 'content_ppapi_plugin',
268 'dependencies': ['content'],
269 # Disable c4267 warnings until we fix size_t to int truncations.
270 'msvs_disabled_warnings': [ 4267, ],
273 'target_name': 'content_renderer',
275 'dependencies': ['content'],
278 'target_name': 'content_utility',
280 'dependencies': ['content'],
283 'target_name': 'content_worker',
285 'dependencies': ['content'],
289 ['OS == "android"', {
292 'target_name': 'common_aidl',
295 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
298 'public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl',
299 'public/android/java/src/org/chromium/content/common/IChildProcessService.aidl',
301 'includes': [ '../build/java_aidl.gypi' ],
304 'target_name': 'content_native_libraries_gen',
307 'public/android/java/templates/NativeLibraries.template',
310 'package_name': 'org/chromium/content/app',
311 'include_path': 'public/android/java/templates',
313 'public/android/java/templates/native_libraries_array.h'
316 'includes': [ '../build/android/java_cpp_template.gypi' ],
319 'target_name': 'content_java',
322 '../base/base.gyp:base',
323 '../media/media.gyp:media_java',
324 '../net/net.gyp:net',
325 '../ui/ui.gyp:ui_java',
328 'page_transition_types_java',
330 'content_native_libraries_gen',
333 'java_in_dir': '../content/public/android/java',
334 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
335 'has_java_resources': 1,
336 'R_package': 'org.chromium.content',
337 'R_package_relpath': 'org/chromium/content',
338 'java_strings_grd': 'android_content_strings.grd',
341 ['android_webview_build == 0', {
343 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
344 '../third_party/guava/guava.gyp:guava_javalib',
348 'includes': [ '../build/java.gypi' ],
351 'target_name': 'page_transition_types_java',
354 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
357 'package_name': 'org/chromium/content/browser',
358 'template_deps': ['public/common/page_transition_types_list.h'],
360 'includes': [ '../build/android/java_cpp_template.gypi' ],
363 'target_name': 'result_codes_java',
366 'public/android/java/src/org/chromium/content/common/ResultCodes.template',
369 'package_name': 'org/chromium/content/common',
370 'template_deps': ['public/common/result_codes_list.h'],
372 'includes': [ '../build/android/java_cpp_template.gypi' ],
375 'target_name': 'surface_texture_jni_headers',
378 'jni_gen_package': 'content',
379 'input_java_class': 'android/graphics/SurfaceTexture.class',
381 'includes': [ '../build/jar_file_jni_generator.gypi' ],
384 'target_name': 'surface_jni_headers',
387 'jni_gen_package': 'content',
388 'input_java_class': 'android/view/Surface.class',
390 'includes': [ '../build/jar_file_jni_generator.gypi' ],
393 'target_name': 'java_set_jni_headers',
396 'jni_gen_package': 'content',
397 'input_java_class': 'java/util/HashSet.class',
399 'includes': [ '../build/jar_file_jni_generator.gypi' ],
403 'target_name': 'content_jni_headers',
406 'java_set_jni_headers',
407 'surface_texture_jni_headers',
408 'surface_jni_headers',
410 'direct_dependent_settings': {
412 '<(SHARED_INTERMEDIATE_DIR)/content',
415 'includes': [ 'content_jni.gypi' ],
418 }], # OS == "android"