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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 }], # OS==win | 191 }], # OS==win |
192 ], # conditions for chrome_personalization | 192 ], # conditions for chrome_personalization |
193 }], # chrome_personalization==1 | 193 }], # chrome_personalization==1 |
194 ['use_syncapi_stub==1', { | 194 ['use_syncapi_stub==1', { |
195 'defines': ['COMPILING_SYNCAPI_STUB'], | 195 'defines': ['COMPILING_SYNCAPI_STUB'], |
196 }], # use_syncapi_stub==1 | 196 }], # use_syncapi_stub==1 |
197 ['coverage!=0', { | 197 ['coverage!=0', { |
198 'conditions': [ | 198 'conditions': [ |
199 ['OS=="mac"', { | 199 ['OS=="mac"', { |
200 'xcode_settings': { | 200 'xcode_settings': { |
201 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', | 201 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
202 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', | 202 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
203 }, | 203 }, |
204 # Add -lgcov for executables, not for static_libraries. | 204 # Add -lgcov for executables, not for static_libraries. |
205 # This is a delayed conditional. | 205 # This is a delayed conditional. |
206 'target_conditions': [ | 206 'target_conditions': [ |
207 ['_type=="executable"', { | 207 ['_type=="executable"', { |
208 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, | 208 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, |
209 }], | 209 }], |
210 ], | 210 ], |
211 }], | 211 }], |
212 # Linux gyp (into scons) doesn't like target_conditions? | 212 # Linux gyp (into scons) doesn't like target_conditions? |
(...skipping 25 matching lines...) Expand all Loading... |
238 # VCLinkerTool LinkIncremental values below: | 238 # VCLinkerTool LinkIncremental values below: |
239 # 0 == default | 239 # 0 == default |
240 # 1 == /INCREMENTAL:NO | 240 # 1 == /INCREMENTAL:NO |
241 # 2 == /INCREMENTAL | 241 # 2 == /INCREMENTAL |
242 # Debug links incremental, Release does not. | 242 # Debug links incremental, Release does not. |
243 'Debug': { | 243 'Debug': { |
244 'conditions': [ | 244 'conditions': [ |
245 [ 'OS=="mac"', { | 245 [ 'OS=="mac"', { |
246 'xcode_settings': { | 246 'xcode_settings': { |
247 'COPY_PHASE_STRIP': 'NO', | 247 'COPY_PHASE_STRIP': 'NO', |
248 'GCC_OPTIMIZATION_LEVEL': '0', | 248 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 |
249 } | 249 } |
250 }], | 250 }], |
251 [ 'OS=="win"', { | 251 [ 'OS=="win"', { |
252 'configuration_platform': 'Win32', | 252 'configuration_platform': 'Win32', |
253 'msvs_configuration_attributes': { | 253 'msvs_configuration_attributes': { |
254 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', | 254 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', |
255 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', | 255 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', |
256 'CharacterSet': '1', | 256 'CharacterSet': '1', |
257 }, | 257 }, |
258 'msvs_settings': { | 258 'msvs_settings': { |
(...skipping 13 matching lines...) Expand all Loading... |
272 }], | 272 }], |
273 ], | 273 ], |
274 }, | 274 }, |
275 'Release': { | 275 'Release': { |
276 'defines': [ | 276 'defines': [ |
277 'NDEBUG', | 277 'NDEBUG', |
278 ], | 278 ], |
279 'conditions': [ | 279 'conditions': [ |
280 [ 'OS=="mac"', { | 280 [ 'OS=="mac"', { |
281 'xcode_settings': { | 281 'xcode_settings': { |
282 'DEAD_CODE_STRIPPING': 'YES', | 282 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip |
283 'conditions': [ | 283 'conditions': [ |
284 ['mac_release_optimization != "UNSET"', | 284 ['mac_release_optimization != "UNSET"', |
285 {'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)'}], | 285 {'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)'}], |
286 ], | 286 ], |
287 } | 287 } |
288 }], | 288 }], |
289 [ 'OS=="win" and msvs_use_common_release', { | 289 [ 'OS=="win" and msvs_use_common_release', { |
290 'configuration_platform': 'Win32', | 290 'configuration_platform': 'Win32', |
291 'msvs_props': ['release.vsprops'], | 291 'msvs_props': ['release.vsprops'], |
292 }], | 292 }], |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 # with % in variables that are intended to be set to different | 549 # with % in variables that are intended to be set to different |
550 # values in different targets, like this one. | 550 # values in different targets, like this one. |
551 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. | 551 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
552 # Release defaults to the Xcode optimization default, this var | 552 # Release defaults to the Xcode optimization default, this var |
553 # lets you force the value. | 553 # lets you force the value. |
554 'mac_release_optimization%': 'UNSET' | 554 'mac_release_optimization%': 'UNSET' |
555 }, | 555 }, |
556 'mac_bundle': 0, | 556 'mac_bundle': 0, |
557 'xcode_settings': { | 557 'xcode_settings': { |
558 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 558 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
559 'GCC_C_LANGUAGE_STANDARD': 'c99', | 559 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
560 'GCC_CW_ASM_SYNTAX': 'NO', | 560 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
561 'GCC_DYNAMIC_NO_PIC': 'NO', | 561 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
562 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', | 562 # (Equivalent to -fPIC) |
563 'GCC_ENABLE_CPP_RTTI': 'NO', | 563 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
564 'GCC_ENABLE_PASCAL_STRINGS': 'NO', | 564 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
565 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 565 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
566 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', | 566 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidde
n |
567 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', | 567 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors |
568 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', | 568 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 569 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
| 570 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
569 'GCC_VERSION': '4.2', | 571 'GCC_VERSION': '4.2', |
570 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', | 572 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
571 'MACOSX_DEPLOYMENT_TARGET': '10.5', | 573 'MACOSX_DEPLOYMENT_TARGET': '10.5', # -mmacosx-version-min=10.5 |
572 'PREBINDING': 'NO', | 574 'PREBINDING': 'NO', # No -Wl,-prebind |
573 'SDKROOT': 'macosx10.5', | 575 'SDKROOT': 'macosx10.5', # -isysroot |
574 'USE_HEADERMAP': 'NO', | 576 'USE_HEADERMAP': 'NO', |
575 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], | 577 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], |
576 'conditions': [ | 578 'conditions': [ |
577 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 579 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
578 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], | 580 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], |
579 ], | 581 ], |
580 }, | 582 }, |
581 'target_conditions': [ | 583 'target_conditions': [ |
582 ['_type!="static_library"', { | 584 ['_type!="static_library"', { |
583 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 585 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 # settings in target dicts. SYMROOT is a special case, because many other | 761 # settings in target dicts. SYMROOT is a special case, because many other |
760 # Xcode variables depend on it, including variables such as | 762 # Xcode variables depend on it, including variables such as |
761 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 763 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
762 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 764 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
763 # files to appear (when present) in the UI as actual files and not red | 765 # files to appear (when present) in the UI as actual files and not red |
764 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 766 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
765 # and therefore SYMROOT, needs to be set at the project level. | 767 # and therefore SYMROOT, needs to be set at the project level. |
766 'SYMROOT': '<(DEPTH)/xcodebuild', | 768 'SYMROOT': '<(DEPTH)/xcodebuild', |
767 }, | 769 }, |
768 } | 770 } |
OLD | NEW |