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_shell.gypi', | 12 'content_shell.gypi', |
13 'content_tests.gypi', | 13 'content_tests.gypi', |
14 ], | 14 ], |
15 'target_defaults': { | 15 'target_defaults': { |
16 'defines': ['CONTENT_IMPLEMENTATION'], | 16 'defines': ['CONTENT_IMPLEMENTATION'], |
17 }, | 17 }, |
18 'conditions': [ | 18 'conditions': [ |
19 # In component mode, we build all of content as a single DLL. | 19 # 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 | 20 # However, in the static mode, we need to build content as multiple |
21 # targets in order to prevent dependencies from getting introduced | 21 # targets in order to prevent dependencies from getting introduced |
22 # upstream unnecessarily (e.g., content_renderer depends on allocator | 22 # upstream unnecessarily (e.g., content_renderer depends on allocator |
23 # and chrome_exe depends on content_common but we don't want | 23 # and chrome_exe depends on content_common but we don't want |
24 # chrome_exe to have to depend on allocator). | 24 # chrome_exe to have to depend on allocator). |
25 # TODO(dpranke): Uncomment: ['component == "static_library"', { | 25 # |
26 ['1 == 1', { | 26 # TODO(dpranke): Remove the mac conditional once the circular |
| 27 # dependencies in WebKit.gyp are fixed. |
| 28 # See https://bugs.webkit.org/show_bug.cgi?id=68463 |
| 29 ['OS=="mac" or component=="static_library" or incremental_chrome_dll==1', { |
| 30 'target_defines': [ |
| 31 'COMPILE_CONTENT_STATICALLY', |
| 32 ], |
27 'targets': [ | 33 'targets': [ |
28 {'target_name': 'content', | 34 {'target_name': 'content', |
29 'type': 'none', | 35 'type': 'none', |
30 'dependencies': [ | 36 'dependencies': [ |
31 'content_app', | 37 'content_app', |
32 'content_browser', | 38 'content_browser', |
33 'content_common', | 39 'content_common', |
34 'content_gpu', | 40 'content_gpu', |
35 'content_plugin', | 41 'content_plugin', |
36 'content_ppapi_plugin', | 42 'content_ppapi_plugin', |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 # #include closure_blocks_leopard_compat.h to get weak imports. | 191 # #include closure_blocks_leopard_compat.h to get weak imports. |
186 'type': 'none', | 192 'type': 'none', |
187 }], | 193 }], |
188 ], | 194 ], |
189 }, | 195 }, |
190 ], | 196 ], |
191 }], | 197 }], |
192 ], | 198 ], |
193 }, | 199 }, |
194 { # component != static_library | 200 { # component != static_library |
195 'target_defaults': { | |
196 }, | |
197 'targets': [ | 201 'targets': [ |
198 {'target_name': 'content', | 202 {'target_name': 'content', |
199 'type': 'shared_library', | 203 'type': 'shared_library', |
200 'variables': { 'enable_wexit_time_destructors': 1, }, | 204 'variables': { 'enable_wexit_time_destructors': 1, }, |
201 'includes': [ | 205 'includes': [ |
202 'content_app.gypi', | 206 'content_app.gypi', |
203 'content_browser.gypi', | 207 'content_browser.gypi', |
204 'content_common.gypi', | 208 'content_common.gypi', |
205 'content_gpu.gypi', | 209 'content_gpu.gypi', |
206 'content_plugin.gypi', | 210 'content_plugin.gypi', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 }, | 248 }, |
245 {'target_name': 'content_worker', | 249 {'target_name': 'content_worker', |
246 'type': 'none', | 250 'type': 'none', |
247 'dependencies': ['content'], | 251 'dependencies': ['content'], |
248 }, | 252 }, |
249 ], | 253 ], |
250 }, | 254 }, |
251 ], | 255 ], |
252 ], | 256 ], |
253 } | 257 } |
OLD | NEW |