| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 'SDKROOT': 'macosx10.5', | 286 'SDKROOT': 'macosx10.5', |
| 287 'USE_HEADERMAP': 'NO', | 287 'USE_HEADERMAP': 'NO', |
| 288 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], | 288 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], |
| 289 'conditions': [ | 289 'conditions': [ |
| 290 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 290 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
| 291 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], | 291 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], |
| 292 ], | 292 ], |
| 293 }, | 293 }, |
| 294 'target_conditions': [ | 294 'target_conditions': [ |
| 295 ['_type!="static_library"', { | 295 ['_type!="static_library"', { |
| 296 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first', | 296 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 297 '-Wl,-ObjC']}, | 297 }], |
| 298 ['_mac_bundle', { |
| 299 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
| 298 }], | 300 }], |
| 299 ['_type=="executable"', { | 301 ['_type=="executable"', { |
| 300 'postbuilds': [ | 302 'postbuilds': [ |
| 301 { | 303 { |
| 302 'variables': { | 304 'variables': { |
| 303 # Define strip_from_xcode in a variable ending in _path so | 305 # Define strip_from_xcode in a variable ending in _path so |
| 304 # that gyp understands it's a path and performs proper | 306 # that gyp understands it's a path and performs proper |
| 305 # relativization during dict merging. | 307 # relativization during dict merging. |
| 306 'strip_from_xcode_path': 'mac/strip_from_xcode', | 308 'strip_from_xcode_path': 'mac/strip_from_xcode', |
| 307 }, | 309 }, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 # settings in target dicts. SYMROOT is a special case, because many other | 408 # settings in target dicts. SYMROOT is a special case, because many other |
| 407 # Xcode variables depend on it, including variables such as | 409 # Xcode variables depend on it, including variables such as |
| 408 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 410 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 409 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 411 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 410 # files to appear (when present) in the UI as actual files and not red | 412 # files to appear (when present) in the UI as actual files and not red |
| 411 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 413 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 412 # and therefore SYMROOT, needs to be set at the project level. | 414 # and therefore SYMROOT, needs to be set at the project level. |
| 413 'SYMROOT': '<(DEPTH)/xcodebuild', | 415 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 414 }, | 416 }, |
| 415 } | 417 } |
| OLD | NEW |