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',
39 # In component mode, we build all of content as a single DLL.
40 # However, in the static mode, we need to build content as multiple
41 # targets in order to prevent dependencies from getting introduced
42 # upstream unnecessarily (e.g., content_renderer depends on allocator
43 # and chrome_exe depends on content_common but we don't want
44 # chrome_exe to have to depend on allocator).
45 ['component=="static_library"', {
47 'COMPILE_CONTENT_STATICALLY',
51 'target_name': 'content',
63 'content_ppapi_plugin',
72 'target_name': 'content_app',
73 'type': 'static_library',
74 'variables': { 'enable_wexit_time_destructors': 1, },
83 'target_name': 'content_browser',
84 'type': 'static_library',
85 'variables': { 'enable_wexit_time_destructors': 1, },
87 'content_browser.gypi',
90 'content_common', 'content_resources.gyp:content_resources',
94 'target_name': 'content_common',
95 'type': 'static_library',
96 'variables': { 'enable_wexit_time_destructors': 1, },
98 'content_common.gypi',
103 'content_resources.gyp:content_resources',
113 'target_name': 'content_gpu',
114 'type': 'static_library',
115 'variables': { 'enable_wexit_time_destructors': 1, },
124 'target_name': 'content_plugin',
125 'type': 'static_library',
126 'variables': { 'enable_wexit_time_destructors': 1, },
128 'content_plugin.gypi',
135 'target_name': 'content_ppapi_plugin',
136 'type': 'static_library',
137 'variables': { 'enable_wexit_time_destructors': 1, },
139 'content_ppapi_plugin.gypi',
143 'target_name': 'content_renderer',
144 'type': 'static_library',
145 'variables': { 'enable_wexit_time_destructors': 1, },
147 'content_renderer.gypi',
151 'content_resources.gyp:content_resources',
155 'target_name': 'content_utility',
156 'type': 'static_library',
157 'variables': { 'enable_wexit_time_destructors': 1, },
159 'content_utility.gypi',
166 'target_name': 'content_worker',
167 'type': 'static_library',
168 'variables': { 'enable_wexit_time_destructors': 1, },
170 'content_worker.gypi',
180 { # component != static_library
183 'target_name': 'content',
184 'type': 'shared_library',
185 'variables': { 'enable_wexit_time_destructors': 1, },
187 'content_resources.gyp:content_resources',
192 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
198 'content_browser.gypi',
199 'content_common.gypi',
201 'content_plugin.gypi',
202 'content_ppapi_plugin.gypi',
203 'content_renderer.gypi',
204 'content_utility.gypi',
205 'content_worker.gypi',
210 ['incremental_chrome_dll==1', {
211 'UseLibraryDependencyInputs': "true",
218 'target_name': 'content_app',
220 'dependencies': ['content', 'content_browser'],
223 'target_name': 'content_browser',
225 'dependencies': ['content'],
228 'target_name': 'content_common',
230 'dependencies': ['content', 'content_resources.gyp:content_resources'],
233 'target_name': 'content_gpu',
235 'dependencies': ['content'],
238 'target_name': 'content_plugin',
240 'dependencies': ['content'],
243 'target_name': 'content_ppapi_plugin',
245 'dependencies': ['content'],
248 'target_name': 'content_renderer',
250 'dependencies': ['content'],
253 'target_name': 'content_utility',
255 'dependencies': ['content'],
258 'target_name': 'content_worker',
260 'dependencies': ['content'],
264 ['OS == "android"', {
267 'target_name': 'common_aidl',
270 'package_name': 'content',
271 'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
274 'public/android/java/src/org/chromium/content/common/ISandboxedProcessCallback.aidl',
275 'public/android/java/src/org/chromium/content/common/ISandboxedProcessService.aidl',
277 'includes': [ '../build/java_aidl.gypi' ],
280 'target_name': 'content_java',
283 '../base/base.gyp:base',
284 '../net/net.gyp:net',
285 '../ui/ui.gyp:ui_java',
290 'package_name': 'content',
291 'java_in_dir': '../content/public/android/java',
293 'includes': [ '../build/java.gypi' ],
296 'target_name': 'surface_texture_jni_headers',
299 'jni_gen_dir': 'content',
300 'input_java_class': 'android/graphics/SurfaceTexture.class',
301 'input_jar_file': '<(android_sdk)/android.jar',
303 'includes': [ '../build/jar_file_jni_generator.gypi' ],
306 'target_name': 'content_jni_headers',
309 'surface_texture_jni_headers',
311 'includes': [ 'content_jni.gypi' ],
314 }], # OS == "android"