Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Side by Side Diff: content/content.gyp

Issue 8060022: Move Leopard compatible block code to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 {'target_name': 'content_worker', 110 {'target_name': 'content_worker',
111 'type': 'static_library', 111 'type': 'static_library',
112 'includes': [ 112 'includes': [
113 'content_worker.gypi', 113 'content_worker.gypi',
114 ], 114 ],
115 'dependencies': [ 115 'dependencies': [
116 'content_common', 116 'content_common',
117 ], 117 ],
118 }, 118 },
119 ], 119 ],
120 'conditions': [
121 ['OS=="mac"', {
122 'targets': [
123 {
124 'target_name': 'closure_blocks_leopard_compat',
125 'conditions': [
126 ['mac_sdk == "10.5"', {
127 'type': 'shared_library',
128 'product_name': 'closure_blocks_leopard_compat_stub',
129 'variables': {
130 # This target controls stripping directly. See below.
131 'mac_strip': 0,
132 },
133 'sources': [
134 'browser/mac/closure_blocks_leopard_compat.S',
135 ],
136 'xcode_settings': {
137 # These values are taken from libSystem.dylib in the 10.5
138 # SDK. Setting LD_DYLIB_INSTALL_NAME causes anything linked
139 # against this stub library to look for the symbols it
140 # provides in the real libSystem at runtime. When using ld
141 # from Xcode 4 or later (ld64-123.2 and up), giving two
142 # libraries with the same "install name" to the linker will
143 # cause it to print "ld: warning: dylibs with same install
144 # name". This is harmless, and ld will behave as intended
145 # here.
146 #
147 # The real library's compatibility version is used, and the
148 # value of the current version from the SDK is used to make
149 # it appear as though anything linked against this stub was
150 # linked against the real thing.
151 'LD_DYLIB_INSTALL_NAME': '/usr/lib/libSystem.B.dylib',
152 'DYLIB_COMPATIBILITY_VERSION': '1.0.0',
153 'DYLIB_CURRENT_VERSION': '111.1.4',
154
155 # Turn on stripping (yes, even in debug mode), and add the -c
156 # flag. This is what produces a stub library (MH_DYLIB_STUB)
157 # as opposed to a dylib (MH_DYLIB). MH_DYLIB_STUB files
158 # contain symbol tables and everything else needed for
159 # linking, but are stripped of section contents. This is the
160 # same way that the stub libraries in Mac OS X SDKs are
161 # created. dyld will refuse to load a stub library, so this
162 # provides some insurance in case anyone tries to load the
163 # stub at runtime.
164 'DEPLOYMENT_POSTPROCESSING': 'YES',
165 'STRIP_STYLE': 'non-global',
166 'STRIPFLAGS': '-c',
167 },
168 }, { # else: mac_sdk != "10.5"
169 # When using the 10.6 SDK or newer, the necessary definitions
170 # are already present in libSystem.dylib. There is no need to
171 # build a stub dylib to provide these symbols at link time.
172 # This target is still useful to cause those symbols to be
173 # treated as weak imports in dependents, who still must
174 # #include closure_blocks_leopard_compat.h to get weak imports.
175 'type': 'none',
176 }],
177 ],
178 },
179 ],
180 }],
181 ],
120 }, 182 },
121 { # component != static_library 183 { # component != static_library
122 'target_defaults': { 184 'target_defaults': {
123 'defines': [ 185 'defines': [
124 'CONTENT_IMPLEMENTATION', 186 'CONTENT_IMPLEMENTATION',
125 ], 187 ],
126 }, 188 },
127 'targets': [ 189 'targets': [
128 {'target_name': 'content', 190 {'target_name': 'content',
129 'type': 'shared_library', 191 'type': 'shared_library',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 }, 235 },
174 {'target_name': 'content_worker', 236 {'target_name': 'content_worker',
175 'type': 'none', 237 'type': 'none',
176 'dependencies': ['content'], 238 'dependencies': ['content'],
177 }, 239 },
178 ], 240 ],
179 }, 241 },
180 ], 242 ],
181 ], 243 ],
182 } 244 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698