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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 'configuration_platform': 'Win32', | 82 'configuration_platform': 'Win32', |
83 'msvs_props': ['release.vsprops'], | 83 'msvs_props': ['release.vsprops'], |
84 }], | 84 }], |
85 ], | 85 ], |
86 }, | 86 }, |
87 }, | 87 }, |
88 }, | 88 }, |
89 'conditions': [ | 89 'conditions': [ |
90 ['OS=="mac"', { | 90 ['OS=="mac"', { |
91 'target_defaults': { | 91 'target_defaults': { |
92 'mac_bundle': 0, | |
92 'xcode_settings': { | 93 'xcode_settings': { |
93 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 94 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
94 'GCC_C_LANGUAGE_STANDARD': 'c99', | 95 'GCC_C_LANGUAGE_STANDARD': 'c99', |
95 'GCC_CW_ASM_SYNTAX': 'NO', | 96 'GCC_CW_ASM_SYNTAX': 'NO', |
96 'GCC_DYNAMIC_NO_PIC': 'YES', | 97 'GCC_DYNAMIC_NO_PIC': 'YES', |
97 'GCC_ENABLE_PASCAL_STRINGS': 'NO', | 98 'GCC_ENABLE_PASCAL_STRINGS': 'NO', |
98 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 99 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
99 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', | 100 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', |
100 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', | 101 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', |
101 'GCC_VERSION': '4.2', | 102 'GCC_VERSION': '4.2', |
102 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', | 103 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', |
103 'MACOSX_DEPLOYMENT_TARGET': '10.5', | 104 'MACOSX_DEPLOYMENT_TARGET': '10.5', |
104 'PREBINDING': 'NO', | 105 'PREBINDING': 'NO', |
105 'SDKROOT': 'macosx10.5', | 106 'SDKROOT': 'macosx10.5', |
106 'USE_HEADERMAP': 'NO', | 107 'USE_HEADERMAP': 'NO', |
107 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], | 108 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], |
108 'conditions': [ | 109 'conditions': [ |
109 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 110 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
110 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], | 111 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], |
111 ], | 112 ], |
112 }, | 113 }, |
113 'target_conditions': [ | 114 'target_conditions': [ |
114 ['_type=="shared_library"', { | 115 ['_type=="shared_library"', { |
115 'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'}, | 116 'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'}, |
116 }], | 117 }], |
117 ['_type!="static_library"', { | 118 ['_type!="static_library"', { |
118 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 119 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
119 }], | 120 }], |
120 ['_type=="application"', { | 121 ['_type=="executable" and _mac_bundle==1', { |
Mark Mentovai
2009/03/19 17:04:53
Let's just do _mac_bundle without the ==1, since i
| |
121 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 122 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
122 }], | 123 }], |
123 ['_type=="application" or _type=="executable"', { | 124 ['_type=="executable"', { |
124 'postbuilds': [ | 125 'postbuilds': [ |
125 { | 126 { |
126 'variables': { | 127 'variables': { |
127 # Define strip_from_xcode in a variable ending in _path so | 128 # Define strip_from_xcode in a variable ending in _path so |
128 # that gyp understands it's a path and performs proper | 129 # that gyp understands it's a path and performs proper |
129 # relativization during dict merging. | 130 # relativization during dict merging. |
130 'strip_from_xcode_path': 'mac/strip_from_xcode', | 131 'strip_from_xcode_path': 'mac/strip_from_xcode', |
131 }, | 132 }, |
132 'postbuild_name': 'Strip If Needed', | 133 'postbuild_name': 'Strip If Needed', |
133 'action': ['<(strip_from_xcode_path)'], | 134 'action': ['<(strip_from_xcode_path)'], |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 # 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 |
228 # Xcode variables depend on it, including variables such as | 229 # Xcode variables depend on it, including variables such as |
229 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 230 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
230 # 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 |
231 # 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 |
232 # 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, |
233 # and therefore SYMROOT, needs to be set at the project level. | 234 # and therefore SYMROOT, needs to be set at the project level. |
234 'SYMROOT': '<(DEPTH)/xcodebuild', | 235 'SYMROOT': '<(DEPTH)/xcodebuild', |
235 }, | 236 }, |
236 } | 237 } |
OLD | NEW |