| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], | 111 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], |
| 112 ], | 112 ], |
| 113 }, | 113 }, |
| 114 'target_conditions': [ | 114 'target_conditions': [ |
| 115 ['_type=="shared_library"', { | 115 ['_type=="shared_library"', { |
| 116 'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'}, | 116 'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'}, |
| 117 }], | 117 }], |
| 118 ['_type!="static_library"', { | 118 ['_type!="static_library"', { |
| 119 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 119 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 120 }], | 120 }], |
| 121 ['_type=="executable" and _mac_bundle', { | 121 ['_mac_bundle', { |
| 122 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 122 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
| 123 }], | 123 }], |
| 124 ['_type=="executable"', { | 124 ['_type=="executable"', { |
| 125 'postbuilds': [ | 125 'postbuilds': [ |
| 126 { | 126 { |
| 127 'variables': { | 127 'variables': { |
| 128 # Define strip_from_xcode in a variable ending in _path so | 128 # Define strip_from_xcode in a variable ending in _path so |
| 129 # that gyp understands it's a path and performs proper | 129 # that gyp understands it's a path and performs proper |
| 130 # relativization during dict merging. | 130 # relativization during dict merging. |
| 131 'strip_from_xcode_path': 'mac/strip_from_xcode', | 131 'strip_from_xcode_path': 'mac/strip_from_xcode', |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 # settings in target dicts. SYMROOT is a special case, because many other | 228 # settings in target dicts. SYMROOT is a special case, because many other |
| 229 # Xcode variables depend on it, including variables such as | 229 # Xcode variables depend on it, including variables such as |
| 230 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 230 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 231 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 231 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 232 # files to appear (when present) in the UI as actual files and not red | 232 # files to appear (when present) in the UI as actual files and not red |
| 233 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 233 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 234 # and therefore SYMROOT, needs to be set at the project level. | 234 # and therefore SYMROOT, needs to be set at the project level. |
| 235 'SYMROOT': '<(DEPTH)/xcodebuild', | 235 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 236 }, | 236 }, |
| 237 } | 237 } |
| OLD | NEW |