By moving the call to Load() up in SearchProvider::Start(), we are giving a chance...
[chromium-blink-merge.git] / content / content.gyp
blob31b833561e976139955f8e0b420d71a49d794767
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.
6   'variables': {
7     'chromium_code': 1,  # Use higher warning level.
8     'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/directxsdk)',
9     'conditions': [
10       ['inside_chromium_build==0', {
11         'webkit_src_dir': '../../../..',
12       },{
13         'webkit_src_dir': '../third_party/WebKit',
14       }],
15     ],
16   },
17   'target_defaults': {
18     'defines': ['CONTENT_IMPLEMENTATION'],
19     'conditions': [
20       ['inside_chromium_build==0', {
21         'dependencies': [
22           '../webkit/support/setup_third_party.gyp:third_party_headers',
23         ],
24       }],
25     ],
26   },
27   'conditions': [
28     ['inside_chromium_build==1', {
29       'includes': [
30         'content_tests.gypi',
31       ],
32     }],
33     ['OS != "ios"', {
34       'includes': [
35         '../build/win_precompile.gypi',
36         'content_components_navigation_interception.gypi',
37         'content_shell.gypi',
38       ],
39     }],
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"', {
47       'target_defines': [
48         'COMPILE_CONTENT_STATICALLY',
49       ],
50       'targets': [
51         {
52           'target_name': 'content',
53           'type': 'none',
54           'dependencies': [
55             'content_app',
56             'content_browser',
57             'content_common',
58           ],
59           'conditions': [
60             ['OS != "ios"', {
61               'dependencies': [
62                 'content_gpu',
63                 'content_plugin',
64                 'content_ppapi_plugin',
65                 'content_renderer',
66                 'content_utility',
67                 'content_worker',
68               ],
69             }],
70           ],
71         },
72         {
73           'target_name': 'content_app',
74           'type': 'static_library',
75           'variables': { 'enable_wexit_time_destructors': 1, },
76           'includes': [
77             'content_app.gypi',
78           ],
79           'dependencies': [
80             'content_common',
81           ],
82         },
83         {
84           'target_name': 'content_browser',
85           'type': 'static_library',
86           'variables': { 'enable_wexit_time_destructors': 1, },
87           'includes': [
88             'content_browser.gypi',
89           ],
90           'dependencies': [
91             'content_common',
92             'content_resources.gyp:content_resources',
93           ],
94           'conditions': [
95             ['OS != "ios"', {
96               'dependencies': [
97                 'content_gpu',
98                 'content_renderer',
99               ],
100             }],
101           ],
102         },
103         {
104           'target_name': 'content_common',
105           'type': 'static_library',
106           'variables': { 'enable_wexit_time_destructors': 1, },
107           'includes': [
108             'content_common.gypi',
109           ],
110           'conditions': [
111             ['OS != "ios"', {
112               'dependencies': [
113                 'content_resources.gyp:content_resources',
114               ],
115             }],
116           ],
117         },
118       ],
119       'conditions': [
120         ['OS != "ios"', {
121           'targets': [
122             {
123               'target_name': 'content_gpu',
124               'type': 'static_library',
125               'variables': { 'enable_wexit_time_destructors': 1, },
126               'includes': [
127                 'content_gpu.gypi',
128               ],
129               'dependencies': [
130                 'content_common',
131               ],
132             },
133             {
134               'target_name': 'content_plugin',
135               'type': 'static_library',
136               'variables': { 'enable_wexit_time_destructors': 1, },
137               'includes': [
138                 'content_plugin.gypi',
139               ],
140               'dependencies': [
141                 'content_common',
142               ],
143             },
144             {
145               'target_name': 'content_ppapi_plugin',
146               'type': 'static_library',
147               'variables': { 'enable_wexit_time_destructors': 1, },
148               'includes': [
149                 'content_ppapi_plugin.gypi',
150               ],
151             },
152             {
153               'target_name': 'content_renderer',
154               'type': 'static_library',
155               'variables': { 'enable_wexit_time_destructors': 1, },
156               'includes': [
157                 'content_renderer.gypi',
158               ],
159               'dependencies': [
160                 'content_common',
161                 'content_resources.gyp:content_resources',
162               ],
163             },
164             {
165               'target_name': 'content_utility',
166               'type': 'static_library',
167               'variables': { 'enable_wexit_time_destructors': 1, },
168               'includes': [
169                 'content_utility.gypi',
170               ],
171               'dependencies': [
172                 'content_common',
173               ],
174             },
175             {
176               'target_name': 'content_worker',
177               'type': 'static_library',
178               'variables': { 'enable_wexit_time_destructors': 1, },
179               'includes': [
180                 'content_worker.gypi',
181               ],
182               'dependencies': [
183                 'content_common',
184               ],
185             },
186           ],
187         }],
188       ],
189     },
190     {  # component != static_library
191       'targets': [
192         {
193           'target_name': 'content',
194           'type': 'shared_library',
195           'variables': { 'enable_wexit_time_destructors': 1, },
196           'dependencies': [
197            'content_resources.gyp:content_resources',
198           ],
199           'conditions': [
200             ['OS=="mac"', {
201               'dependencies': [
202                 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override',
203               ],
204             }],
205           ],
206           'includes': [
207             'content_app.gypi',
208             'content_browser.gypi',
209             'content_common.gypi',
210             'content_gpu.gypi',
211             'content_plugin.gypi',
212             'content_ppapi_plugin.gypi',
213             'content_renderer.gypi',
214             'content_utility.gypi',
215             'content_worker.gypi',
216           ],
217           'msvs_settings': {
218             'VCLinkerTool': {
219               'conditions': [
220                 ['incremental_chrome_dll==1', {
221                   'UseLibraryDependencyInputs': "true",
222                 }],
223               ],
224             },
225           },
226         },
227         {
228           'target_name': 'content_app',
229           'type': 'none',
230           'dependencies': ['content', 'content_browser'],
231         },
232         {
233           'target_name': 'content_browser',
234           'type': 'none',
235           'dependencies': ['content'],
236         },
237         {
238           'target_name': 'content_common',
239           'type': 'none',
240           'dependencies': ['content', 'content_resources.gyp:content_resources'],
241         },
242         {
243           'target_name': 'content_gpu',
244           'type': 'none',
245           'dependencies': ['content'],
246         },
247         {
248           'target_name': 'content_plugin',
249           'type': 'none',
250           'dependencies': ['content'],
251         },
252         {
253           'target_name': 'content_ppapi_plugin',
254           'type': 'none',
255           'dependencies': ['content'],
256         },
257         {
258           'target_name': 'content_renderer',
259           'type': 'none',
260           'dependencies': ['content'],
261         },
262         {
263           'target_name': 'content_utility',
264           'type': 'none',
265           'dependencies': ['content'],
266         },
267         {
268           'target_name': 'content_worker',
269           'type': 'none',
270           'dependencies': ['content'],
271         },
272       ],
273     }],
274     ['OS == "android"', {
275       'targets': [
276         {
277           'target_name': 'common_aidl',
278           'type': 'none',
279           'variables': {
280             'package_name': 'content',
281             'aidl_interface_file': 'public/android/java/src/org/chromium/content/common/common.aidl',
282           },
283           'sources': [
284             'public/android/java/src/org/chromium/content/common/ISandboxedProcessCallback.aidl',
285             'public/android/java/src/org/chromium/content/common/ISandboxedProcessService.aidl',
286           ],
287           'includes': [ '../build/java_aidl.gypi' ],
288         },
289         {
290           'target_name': 'content_java',
291           'type': 'none',
292           'dependencies': [
293             '../base/base.gyp:base',
294             '../net/net.gyp:net',
295             '../ui/ui.gyp:ui_java',
296             'common_aidl',
297             'content_common',
298             'page_transition_types_java',
299           ],
300           'variables': {
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',
307           },
308           'conditions': [
309             ['android_build_type == 0', {
310               'dependencies': [
311                 '../third_party/eyesfree/eyesfree.gyp:eyesfree_java',
312                 '../third_party/guava/guava.gyp:guava_javalib',
313               ],
314             }],
315           ],
316           'includes': [ '../build/java.gypi' ],
317         },
318         {
319           'target_name': 'page_transition_types_java',
320           'type': 'none',
321           'sources': [
322             'public/android/java/src/org/chromium/content/browser/PageTransitionTypes.template',
323           ],
324           'variables': {
325             'package_name': 'org.chromium.content.browser',
326             'template_deps': ['public/common/page_transition_types_list.h'],
327           },
328           'includes': [ '../build/android/java_cpp_template.gypi' ],
329         },
330         {
331           'target_name': 'surface_texture_jni_headers',
332           'type': 'none',
333           'variables': {
334             'jni_gen_dir': 'content',
335             'input_java_class': 'android/graphics/SurfaceTexture.class',
336             'input_jar_file': '<(android_sdk)/android.jar',
337           },
338           'includes': [ '../build/jar_file_jni_generator.gypi' ],
339         },
340         {
341           'target_name': 'surface_jni_headers',
342           'type': 'none',
343           'variables': {
344             'jni_gen_dir': 'content',
345             'input_java_class': 'android/view/Surface.class',
346             'input_jar_file': '<(android_sdk)/android.jar',
347           },
348           'includes': [ '../build/jar_file_jni_generator.gypi' ],
349         },
350         {
351           'target_name': 'java_set_jni_headers',
352           'type': 'none',
353           'variables': {
354             'jni_gen_dir': 'content',
355             'input_java_class': 'java/util/HashSet.class',
356             'input_jar_file': '<(android_sdk)/android.jar',
357           },
358           'includes': [ '../build/jar_file_jni_generator.gypi' ],
359         },
361         {
362           'target_name': 'content_jni_headers',
363           'type': 'none',
364           'dependencies': [
365             'java_set_jni_headers',
366             'surface_texture_jni_headers',
367             'surface_jni_headers',
368           ],
369           'direct_dependent_settings': {
370             'include_dirs': [
371               '<(SHARED_INTERMEDIATE_DIR)/content',
372             ],
373           },
374           'includes': [ 'content_jni.gypi' ],
375         },
376       ],
377     }],  # OS == "android"
378   ],