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 | |
169 # Set to 1 to enable code coverage. In addition to build changes | 173 # Set to 1 to enable code coverage. In addition to build changes |
170 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 174 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
171 # project file called "coverage". | 175 # project file called "coverage". |
172 # Currently ignored on Windows. | 176 # Currently ignored on Windows. |
173 'coverage%': 0, | 177 'coverage%': 0, |
174 | 178 |
175 # Overridable specification for potential use of alternative | 179 # Overridable specification for potential use of alternative |
176 # JavaScript engines. | 180 # JavaScript engines. |
177 'javascript_engine%': 'v8', | 181 'javascript_engine%': 'v8', |
178 | 182 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
514 'msvs_settings': { | 518 'msvs_settings': { |
515 'VCCLCompilerTool': { | 519 'VCCLCompilerTool': { |
516 'WarnAsError': 'false', | 520 'WarnAsError': 'false', |
517 'Detect64BitPortabilityProblems': 'false', | 521 'Detect64BitPortabilityProblems': 'false', |
518 }, | 522 }, |
519 }, | 523 }, |
520 }], | 524 }], |
521 [ 'OS=="mac"', { | 525 [ 'OS=="mac"', { |
522 'xcode_settings': { | 526 'xcode_settings': { |
523 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', | 527 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', |
524 'WARNING_CFLAGS!': ['-Wall'], | 528 'WARNING_CFLAGS!': ['-Wall', "-Wextra"], |
Mark Mentovai
2010/06/14 19:13:33
The adjacent strings use 'single qutoes' instead o
| |
525 }, | 529 }, |
526 }], | 530 }], |
527 ], | 531 ], |
528 }, { | 532 }, { |
529 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the | 533 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the |
530 # C99 macros on Mac and Linux. | 534 # C99 macros on Mac and Linux. |
531 'defines': [ | 535 'defines': [ |
532 '__STDC_FORMAT_MACROS', | 536 '__STDC_FORMAT_MACROS', |
533 ], | 537 ], |
534 'conditions': [ | 538 'conditions': [ |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1140 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof | 1144 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
1141 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min | 1145 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
1142 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 1146 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
1143 'PREBINDING': 'NO', # No -Wl,-prebind | 1147 'PREBINDING': 'NO', # No -Wl,-prebind |
1144 'USE_HEADERMAP': 'NO', | 1148 'USE_HEADERMAP': 'NO', |
1145 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], | 1149 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], |
1146 'conditions': [ | 1150 'conditions': [ |
1147 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 1151 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
1148 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} | 1152 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} |
1149 ], | 1153 ], |
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 }], | |
1150 ], | 1164 ], |
1151 }, | 1165 }, |
1152 'target_conditions': [ | 1166 'target_conditions': [ |
1153 ['_type!="static_library"', { | 1167 ['_type!="static_library"', { |
1154 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 1168 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
1155 }], | 1169 }], |
1156 ['_mac_bundle', { | 1170 ['_mac_bundle', { |
1157 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 1171 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
1158 }], | 1172 }], |
1159 ['_type=="executable" or _type=="shared_library" or _type=="loadable_m odule"', { | 1173 ['_type=="executable" or _type=="shared_library" or _type=="loadable_m odule"', { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1379 # and therefore SYMROOT, needs to be set at the project level. | 1393 # and therefore SYMROOT, needs to be set at the project level. |
1380 'SYMROOT': '<(DEPTH)/xcodebuild', | 1394 'SYMROOT': '<(DEPTH)/xcodebuild', |
1381 }, | 1395 }, |
1382 } | 1396 } |
1383 | 1397 |
1384 # Local Variables: | 1398 # Local Variables: |
1385 # tab-width:2 | 1399 # tab-width:2 |
1386 # indent-tabs-mode:nil | 1400 # indent-tabs-mode:nil |
1387 # End: | 1401 # End: |
1388 # vim: set expandtab tabstop=2 shiftwidth=2: | 1402 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |