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',
28 ['inside_chromium_build==1', {
35 '../build/win_precompile.gypi',
36 'content_components_navigation_interception.gypi',
40 # In component mode, we build all of content as a single DLL.
41 # However, in the static mode, we need to build content as multiple
42 # targets in order to prevent dependencies from getting introduced
43 # upstream unnecessarily (e.g., content_renderer depends on allocator
44 # and chrome_exe depends on content_common but we don't want
45 # chrome_exe to have to depend on allocator).
46 ['component=="static_library"', {
48 'COMPILE_CONTENT_STATICALLY',
52 'target_name': 'content',
64 'content_ppapi_plugin',
73 'target_name': 'content_app',
74 'type': 'static_library',
75 'variables': { 'enable_wexit_time_destructors': 1, },
84 'target_name': 'content_browser',
85 'type': 'static_library',
86 'variables': { 'enable_wexit_time_destructors': 1, },
88 'content_browser.gypi',
92 'content_resources.gyp:content_resources',
104 'target_name': 'content_common',
105 'type': 'static_library',
106 'variables': { 'enable_wexit_time_destructors': 1, },
108 'content_common.gypi',
113 'content_resources.gyp:content_resources',
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',
153 'target_name': 'content_renderer',
154 'type': 'static_library',
155 'variables': { 'enable_wexit_time_destructors': 1, },
157 'content_renderer.gypi',
161 'content_resources.gyp:content_resources',
165 'target_name': 'content_utility',
166 'type': 'static_library',
167 'variables': { 'enable_wexit_time_destructors': 1, },
169 'content_utility.gypi',
176 'target_name': 'content_worker',
177 'type': 'static_library',
178 'variables': { 'enable_wexit_time_destructors': 1, },
180 'content_worker.gypi',
190 { # component != static_library
193 'target_name': 'content',
194 'type': 'shared_library',
195 'variables': { 'enable_wexit_time_destructors': 1, },
197 'content_resources.gyp:content_resources',
202 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
208 'content_browser.gypi',
209 'content_common.gypi',
211 'content_plugin.gypi',
212 'content_ppapi_plugin.gypi',
213 'content_renderer.gypi',
214 'content_utility.gypi',
215 'content_worker.gypi',
220 ['incremental_chrome_dll==1', {
221 'UseLibraryDependencyInputs': "true",
228 'target_name': 'content_app',
230 'dependencies': ['content', 'content_browser'],
233 'target_name': 'content_browser',
235 'dependencies': ['content'],
238 'target_name': 'content_common',
240 'dependencies': ['content', 'content_resources.gyp:content_resources'],
243 'target_name': 'content_gpu',
245 'dependencies': ['content'],
248 'target_name': 'content_plugin',
250 'dependencies': ['content'],
253 'target_name': 'content_ppapi_plugin',
255 'dependencies': ['content'],
258 'target_name': 'content_renderer',
260 'dependencies': ['content'],
263 'target_name': 'content_utility',
265 'dependencies': ['content'],
268 'target_name': 'content_worker',
270 'dependencies': ['content'],
274 ['OS == "android"', {
277 'target_name': 'common_aidl',
280 'package_name': 'content',
281 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
284 'public/android/java/src/org/chromium/content/common/ISandboxedProcessCallback.aidl',
285 'public/android/java/src/org/chromium/content/common/ISandboxedProcessService.aidl',
287 'includes': [ '../build/java_aidl.gypi' ],
290 'target_name': 'content_java',
293 '../base/base.gyp:base',
294 '../net/net.gyp:net',
295 '../ui/ui.gyp:ui_java',
298 'page_transition_types_java',
301 'package_name': 'content',
302 'java_in_dir': '../content/public/android/java',
303 'has_java_resources': 1,
304 'R_package': 'org.chromium.content',
305 'R_package_relpath': 'org/chromium/content',
306 'java_strings_grd': 'android_content_strings.grd',
309 ['android_build_type == 0', {
311 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
312 '../third_party/guava/guava.gyp:guava_javalib',
316 'includes': [ '../build/java.gypi' ],
319 'target_name': 'page_transition_types_java',
322 'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
325 'package_name': 'org.chromium.content.browser',
326 'template_deps': ['public/common/page_transition_types_list.h'],
328 'includes': [ '../build/android/java_cpp_template.gypi' ],
331 'target_name': 'surface_texture_jni_headers',
334 'jni_gen_dir': 'content',
335 'input_java_class': 'android/graphics/SurfaceTexture.class',
336 'input_jar_file': '<(android_sdk)/android.jar',
338 'includes': [ '../build/jar_file_jni_generator.gypi' ],
341 'target_name': 'surface_jni_headers',
344 'jni_gen_dir': 'content',
345 'input_java_class': 'android/view/Surface.class',
346 'input_jar_file': '<(android_sdk)/android.jar',
348 'includes': [ '../build/jar_file_jni_generator.gypi' ],
351 'target_name': 'java_set_jni_headers',
354 'jni_gen_dir': 'content',
355 'input_java_class': 'java/util/HashSet.class',
356 'input_jar_file': '<(android_sdk)/android.jar',
358 'includes': [ '../build/jar_file_jni_generator.gypi' ],
362 'target_name': 'content_jni_headers',
365 'java_set_jni_headers',
366 'surface_texture_jni_headers',
367 'surface_jni_headers',
369 'direct_dependent_settings': {
371 '<(SHARED_INTERMEDIATE_DIR)/content',
374 'includes': [ 'content_jni.gypi' ],
377 }], # OS == "android"