OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, # Use higher warning level. | 7 'chromium_code': 1, # Use higher warning level. |
8 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/
directxsdk)', | 8 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/
directxsdk)', |
9 }, | 9 }, |
10 'includes': [ | 10 'includes': [ |
11 '../build/win_precompile.gypi', | 11 '../build/win_precompile.gypi', |
| 12 'content_api.gypi', |
12 'content_shell.gypi', | 13 'content_shell.gypi', |
13 'content_tests.gypi', | 14 'content_tests.gypi', |
14 ], | 15 ], |
15 'target_defaults': { | 16 'target_defaults': { |
16 'defines': ['CONTENT_IMPLEMENTATION'], | 17 'defines': ['CONTENT_IMPLEMENTATION'], |
17 }, | 18 }, |
18 'conditions': [ | 19 'conditions': [ |
19 # In component mode, we build all of content as a single DLL. | 20 # In component mode, we build all of content as a single DLL. |
20 # However, in the static mode, we need to build content as multiple | 21 # However, in the static mode, we need to build content as multiple |
21 # targets in order to prevent dependencies from getting introduced | 22 # targets in order to prevent dependencies from getting introduced |
22 # upstream unnecessarily (e.g., content_renderer depends on allocator | 23 # upstream unnecessarily (e.g., content_renderer depends on allocator |
23 # and chrome_exe depends on content_common but we don't want | 24 # and chrome_exe depends on content_common but we don't want |
24 # chrome_exe to have to depend on allocator). | 25 # chrome_exe to have to depend on allocator). |
25 # TODO(dpranke): Uncomment: ['component == "static_library"', { | 26 # TODO(dpranke): Uncomment: ['component == "static_library"', { |
26 ['1 == 1', { | 27 ['1 == 1', { |
27 'targets': [ | 28 'targets': [ |
28 {'target_name': 'content', | 29 {'target_name': 'content', |
29 'type': 'none', | 30 'type': 'none', |
30 'dependencies': [ | 31 'dependencies': [ |
| 32 'content_api', |
31 'content_app', | 33 'content_app', |
32 'content_browser', | 34 'content_browser', |
33 'content_common', | 35 'content_common', |
34 'content_gpu', | 36 'content_gpu', |
35 'content_plugin', | 37 'content_plugin', |
36 'content_ppapi_plugin', | 38 'content_ppapi_plugin', |
37 'content_renderer', | 39 'content_renderer', |
38 'content_utility', | 40 'content_utility', |
39 'content_worker', | 41 'content_worker', |
40 ], | 42 ], |
41 }, | 43 }, |
| 44 {'target_name': 'content_api', |
| 45 'type': 'none', |
| 46 'includes': [ |
| 47 'content_api.gypi', |
| 48 ], |
| 49 }, |
42 {'target_name': 'content_app', | 50 {'target_name': 'content_app', |
43 'type': 'static_library', | 51 'type': 'static_library', |
44 'includes': [ | 52 'includes': [ |
45 'content_app.gypi', | 53 'content_app.gypi', |
46 ], | 54 ], |
47 'dependencies': [ | 55 'dependencies': [ |
48 'content_common', | 56 'content_common', |
49 ], | 57 ], |
50 }, | 58 }, |
51 {'target_name': 'content_browser', | 59 {'target_name': 'content_browser', |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 }], | 187 }], |
180 ], | 188 ], |
181 }, | 189 }, |
182 { # component != static_library | 190 { # component != static_library |
183 'target_defaults': { | 191 'target_defaults': { |
184 }, | 192 }, |
185 'targets': [ | 193 'targets': [ |
186 {'target_name': 'content', | 194 {'target_name': 'content', |
187 'type': 'shared_library', | 195 'type': 'shared_library', |
188 'includes': [ | 196 'includes': [ |
| 197 'content_api.gypi', |
189 'content_app.gypi', | 198 'content_app.gypi', |
190 'content_browser.gypi', | 199 'content_browser.gypi', |
191 'content_common.gypi', | 200 'content_common.gypi', |
192 'content_gpu.gypi', | 201 'content_gpu.gypi', |
193 'content_plugin.gypi', | 202 'content_plugin.gypi', |
194 'content_ppapi_plugin.gypi', | 203 'content_ppapi_plugin.gypi', |
195 'content_renderer.gypi', | 204 'content_renderer.gypi', |
196 'content_utility.gypi', | 205 'content_utility.gypi', |
197 'content_worker.gypi', | 206 'content_worker.gypi', |
198 ], | 207 ], |
199 }, | 208 }, |
| 209 {'target_name': 'content_api', |
| 210 'type': 'none', |
| 211 }, |
200 {'target_name': 'content_app', | 212 {'target_name': 'content_app', |
201 'type': 'none', | 213 'type': 'none', |
202 'dependencies': ['content', 'content_browser'], | 214 'dependencies': ['content', 'content_browser'], |
203 }, | 215 }, |
204 {'target_name': 'content_browser', | 216 {'target_name': 'content_browser', |
205 'type': 'none', | 217 'type': 'none', |
206 'dependencies': ['content'], | 218 'dependencies': ['content'], |
207 }, | 219 }, |
208 {'target_name': 'content_common', | 220 {'target_name': 'content_common', |
209 'type': 'none', | 221 'type': 'none', |
(...skipping 21 matching lines...) Expand all Loading... |
231 }, | 243 }, |
232 {'target_name': 'content_worker', | 244 {'target_name': 'content_worker', |
233 'type': 'none', | 245 'type': 'none', |
234 'dependencies': ['content'], | 246 'dependencies': ['content'], |
235 }, | 247 }, |
236 ], | 248 ], |
237 }, | 249 }, |
238 ], | 250 ], |
239 ], | 251 ], |
240 } | 252 } |
OLD | NEW |