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': [ |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 'type': 'none', | 183 'type': 'none', |
184 'dependencies': ['content'], | 184 'dependencies': ['content'], |
185 }, | 185 }, |
186 {'target_name': 'content_worker', | 186 {'target_name': 'content_worker', |
187 'type': 'none', | 187 'type': 'none', |
188 'dependencies': ['content'], | 188 'dependencies': ['content'], |
189 }, | 189 }, |
190 ], | 190 ], |
191 }, | 191 }, |
192 ], | 192 ], |
193 ['OS=="mac"', { | |
194 'targets': [ | |
195 { | |
196 'target_name': 'closure_blocks_leopard_compat', | |
197 'defines!': ['CONTENT_IMPLEMENTATION'], | |
198 'sources': [ | |
199 'browser/mac/closure_blocks_leopard_compat.h', | |
200 ], | |
201 'conditions': [ | |
202 ['mac_sdk == "10.5"', { | |
203 'type': 'shared_library', | |
204 'product_name': 'closure_blocks_leopard_compat_stub', | |
205 'variables': { | |
206 # This target controls stripping directly. See below. | |
207 'mac_strip': 0, | |
208 }, | |
209 'sources': [ | |
210 'browser/mac/closure_blocks_leopard_compat.S', | |
211 ], | |
212 'xcode_settings': { | |
213 # These values are taken from libSystem.dylib in the 10.5 | |
214 # SDK. Setting LD_DYLIB_INSTALL_NAME causes anything linked | |
215 # against this stub library to look for the symbols it | |
216 # provides in the real libSystem at runtime. When using ld | |
217 # from Xcode 4 or later (ld64-123.2 and up), giving two | |
218 # libraries with the same "install name" to the linker will | |
219 # cause it to print "ld: warning: dylibs with same install | |
220 # name". This is harmless, and ld will behave as intended | |
221 # here. | |
222 # | |
223 # The real library's compatibility version is used, and the | |
224 # value of the current version from the SDK is used to make | |
225 # it appear as though anything linked against this stub was | |
226 # linked against the real thing. | |
227 'LD_DYLIB_INSTALL_NAME': '/usr/lib/libSystem.B.dylib', | |
228 'DYLIB_COMPATIBILITY_VERSION': '1.0.0', | |
229 'DYLIB_CURRENT_VERSION': '111.1.4', | |
230 | |
231 # Turn on stripping (yes, even in debug mode), and add the -c | |
232 # flag. This is what produces a stub library (MH_DYLIB_STUB) | |
233 # as opposed to a dylib (MH_DYLIB). MH_DYLIB_STUB files | |
234 # contain symbol tables and everything else needed for | |
235 # linking, but are stripped of section contents. This is the | |
236 # same way that the stub libraries in Mac OS X SDKs are | |
237 # created. dyld will refuse to load a stub library, so this | |
238 # provides some insurance in case anyone tries to load the | |
239 # stub at runtime. | |
240 'DEPLOYMENT_POSTPROCESSING': 'YES', | |
241 'STRIP_STYLE': 'non-global', | |
242 'STRIPFLAGS': '-c', | |
243 }, | |
244 }, { # else: mac_sdk != "10.5" | |
245 # When using the 10.6 SDK or newer, the necessary definitions | |
246 # are already present in libSystem.dylib. There is no need to | |
247 # build a stub dylib to provide these symbols at link time. | |
248 # This target is still useful to cause those symbols to be | |
249 # treated as weak imports in dependents, who still must | |
250 # #include closure_blocks_leopard_compat.h to get weak imports. | |
251 'type': 'none', | |
252 }], | |
253 ], | |
254 }, | |
255 ], | |
256 }], | |
257 ], | 193 ], |
258 } | 194 } |
OLD | NEW |