OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 __doc__ = """ |
| 6 Default settings for all Chromium release builds. |
| 7 |
| 8 Incorporates "essential" settings. |
| 9 """ |
| 10 |
| 11 Import("env") |
| 12 |
| 13 env.ApplySConscript([ |
| 14 'essential.scons', |
| 15 ]) |
| 16 |
| 17 env.Append( |
| 18 CPPDEFINES = [ |
| 19 'NDEBUG', |
| 20 ], |
| 21 ) |
| 22 |
| 23 if env.Bit('windows'): |
| 24 env.Append( |
| 25 CCFLAGS = [ |
| 26 '/O2', # VCCLCompilerTool.Optimization="2" |
| 27 '/GF', # VCCLCompilerTool.StringPooling="true" |
| 28 ], |
| 29 LINKFLAGS = [ |
| 30 '/INCREMENTAL:NO', # VCLinkerTool.LinkIncremental="1" |
| 31 '/OPT:REF', # VCLinkerTool.OptimizeReferences="2" |
| 32 '/OPT:ICF', # VCLinkerTool.EnableCOMDATFolding="2" |
| 33 '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1" |
| 34 ], |
| 35 ) |
OLD | NEW |