OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
8 # code, as opposed to external code. This variable is used to control | 8 # code, as opposed to external code. This variable is used to control |
9 # such things as the set of warnings to enable, and whether warnings are | 9 # such things as the set of warnings to enable, and whether warnings are |
10 # treated as errors. | 10 # treated as errors. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 }, | 190 }, |
191 }, | 191 }, |
192 }], | 192 }], |
193 ['OS=="mac"', { | 193 ['OS=="mac"', { |
194 'target_defaults': { | 194 'target_defaults': { |
195 'mac_bundle': 0, | 195 'mac_bundle': 0, |
196 'xcode_settings': { | 196 'xcode_settings': { |
197 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 197 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
198 'GCC_C_LANGUAGE_STANDARD': 'c99', | 198 'GCC_C_LANGUAGE_STANDARD': 'c99', |
199 'GCC_CW_ASM_SYNTAX': 'NO', | 199 'GCC_CW_ASM_SYNTAX': 'NO', |
200 'GCC_DYNAMIC_NO_PIC': 'YES', | |
201 'GCC_ENABLE_PASCAL_STRINGS': 'NO', | 200 'GCC_ENABLE_PASCAL_STRINGS': 'NO', |
202 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 201 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
203 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', | 202 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', |
204 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', | 203 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', |
205 'GCC_VERSION': '4.2', | 204 'GCC_VERSION': '4.2', |
206 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', | 205 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', |
207 'MACOSX_DEPLOYMENT_TARGET': '10.5', | 206 'MACOSX_DEPLOYMENT_TARGET': '10.5', |
208 'PREBINDING': 'NO', | 207 'PREBINDING': 'NO', |
209 'SDKROOT': 'macosx10.5', | 208 'SDKROOT': 'macosx10.5', |
210 'USE_HEADERMAP': 'NO', | 209 'USE_HEADERMAP': 'NO', |
211 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], | 210 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], |
212 'conditions': [ | 211 'conditions': [ |
213 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 212 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
214 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], | 213 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], |
215 ], | 214 ], |
216 }, | 215 }, |
217 'target_conditions': [ | 216 'target_conditions': [ |
218 ['_type=="shared_library" or _type=="loadable_module"', { | |
219 'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'}, | |
220 }], | |
221 ['_type!="static_library"', { | 217 ['_type!="static_library"', { |
222 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 218 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
223 }], | 219 }], |
224 ['_mac_bundle', { | 220 ['_mac_bundle', { |
225 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 221 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
226 }], | 222 }], |
227 ['_type=="executable"', { | 223 ['_type=="executable"', { |
228 'postbuilds': [ | 224 'postbuilds': [ |
229 { | 225 { |
230 'variables': { | 226 'variables': { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 # settings in target dicts. SYMROOT is a special case, because many other | 330 # settings in target dicts. SYMROOT is a special case, because many other |
335 # Xcode variables depend on it, including variables such as | 331 # Xcode variables depend on it, including variables such as |
336 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 332 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
337 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 333 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
338 # files to appear (when present) in the UI as actual files and not red | 334 # files to appear (when present) in the UI as actual files and not red |
339 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 335 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
340 # and therefore SYMROOT, needs to be set at the project level. | 336 # and therefore SYMROOT, needs to be set at the project level. |
341 'SYMROOT': '<(DEPTH)/xcodebuild', | 337 'SYMROOT': '<(DEPTH)/xcodebuild', |
342 }, | 338 }, |
343 } | 339 } |
OLD | NEW |