OLD | NEW |
---|---|
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 'variables': { | 9 'variables': { |
10 # .gyp files or targets should set chromium_code to 1 if they build | 10 # .gyp files or targets should set chromium_code to 1 if they build |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. | 159 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. |
160 # To ensure these macros are available, #include <AvailabilityMacros.h>. | 160 # To ensure these macros are available, #include <AvailabilityMacros.h>. |
161 # Additional documentation on these macros is available at | 161 # Additional documentation on these macros is available at |
162 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO N3 | 162 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO N3 |
163 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the | 163 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the |
164 # deployment target to 10.5. Other projects, such as O3D, may override | 164 # deployment target to 10.5. Other projects, such as O3D, may override |
165 # these defaults. | 165 # these defaults. |
166 'mac_sdk%': '10.5', | 166 'mac_sdk%': '10.5', |
167 'mac_deployment_target%': '10.5', | 167 'mac_deployment_target%': '10.5', |
168 | 168 |
169 # Turn on -Wextra on chromium code during Mac compile. | |
170 # TODO(mark,tvl): drop this and turn it always on when it works. | |
171 'chromium_mac_wextra%': 0, | |
172 | |
173 # Set to 1 to enable code coverage. In addition to build changes | 169 # Set to 1 to enable code coverage. In addition to build changes |
174 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 170 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
175 # project file called "coverage". | 171 # project file called "coverage". |
176 # Currently ignored on Windows. | 172 # Currently ignored on Windows. |
177 'coverage%': 0, | 173 'coverage%': 0, |
178 | 174 |
179 # Overridable specification for potential use of alternative | 175 # Overridable specification for potential use of alternative |
180 # JavaScript engines. | 176 # JavaScript engines. |
181 'javascript_engine%': 'v8', | 177 'javascript_engine%': 'v8', |
182 | 178 |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1139 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors | 1135 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors |
1140 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 1136 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
1141 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 1137 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
1142 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 1138 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
1143 'GCC_VERSION': '4.2', | 1139 'GCC_VERSION': '4.2', |
1144 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof | 1140 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
1145 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min | 1141 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
1146 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 1142 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
1147 'PREBINDING': 'NO', # No -Wl,-prebind | 1143 'PREBINDING': 'NO', # No -Wl,-prebind |
1148 'USE_HEADERMAP': 'NO', | 1144 'USE_HEADERMAP': 'NO', |
1149 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], | 1145 'WARNING_CFLAGS': [ |
1146 '-Wall', | |
1147 '-Wendif-labels', | |
Evan Martin
2010/06/21 20:34:57
FWIW, according to http://gcc.gnu.org/onlinedocs/c
| |
1148 '-Wextra', | |
1149 # Don't warn about unused function params. Used everywhere. | |
Mark Mentovai
2010/06/21 13:48:23
params -> parameters.
“Used everywhere” means tha
| |
1150 '-Wno-unused-parameter', | |
1151 # Don't warn about the "struct foo f = {0};" initialization | |
1152 # pattern. | |
1153 '-Wno-missing-field-initializers', | |
1154 ], | |
1150 'conditions': [ | 1155 'conditions': [ |
1151 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 1156 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
1152 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} | 1157 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} |
1153 ], | 1158 ], |
1154 ['chromium_mac_wextra', { | |
1155 'WARNING_CFLAGS': [ | |
1156 '-Wextra', | |
1157 # Don't warn about unused function params. Used everywhere. | |
1158 '-Wno-unused-parameter', | |
1159 # Don't warn about the "struct foo f = {0};" initialization | |
1160 # pattern. | |
1161 '-Wno-missing-field-initializers', | |
1162 ] | |
1163 }], | |
1164 ], | 1159 ], |
1165 }, | 1160 }, |
1166 'target_conditions': [ | 1161 'target_conditions': [ |
1167 ['_type!="static_library"', { | 1162 ['_type!="static_library"', { |
1168 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 1163 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
1169 }], | 1164 }], |
1170 ['_mac_bundle', { | 1165 ['_mac_bundle', { |
1171 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 1166 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
1172 }], | 1167 }], |
1173 ['_type=="executable" or _type=="shared_library" or _type=="loadable_m odule"', { | 1168 ['_type=="executable" or _type=="shared_library" or _type=="loadable_m odule"', { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1393 # and therefore SYMROOT, needs to be set at the project level. | 1388 # and therefore SYMROOT, needs to be set at the project level. |
1394 'SYMROOT': '<(DEPTH)/xcodebuild', | 1389 'SYMROOT': '<(DEPTH)/xcodebuild', |
1395 }, | 1390 }, |
1396 } | 1391 } |
1397 | 1392 |
1398 # Local Variables: | 1393 # Local Variables: |
1399 # tab-width:2 | 1394 # tab-width:2 |
1400 # indent-tabs-mode:nil | 1395 # indent-tabs-mode:nil |
1401 # End: | 1396 # End: |
1402 # vim: set expandtab tabstop=2 shiftwidth=2: | 1397 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |