OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 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 __doc__ = """ | 5 __doc__ = """ |
6 Default settings for all Chromium release builds. | 6 Default settings for all Chromium release builds. |
7 | 7 |
8 Incorporates "essential" settings. | 8 Incorporates "essential" settings. |
9 """ | 9 """ |
10 | 10 |
11 Import("env") | 11 Import("env") |
12 | 12 |
13 env.ApplySConscript([ | 13 env.ApplySConscript([ |
14 'essential.scons', | 14 'essential.scons', |
15 ]) | 15 ]) |
16 | 16 |
17 env.Append( | 17 env.Append( |
18 CPPDEFINES = [ | 18 CPPDEFINES = [ |
19 'NDEBUG', | 19 'NDEBUG', |
20 ], | 20 ], |
21 ) | 21 ) |
22 | 22 |
23 if env.Bit('windows'): | 23 if env.Bit('windows'): |
| 24 env.Replace( |
| 25 CHROMIUM_CC_OPT_FLAGS = [ |
| 26 '/O2', # VCCLCompilerTool.Optimization="2" |
| 27 ], |
| 28 ), |
24 env.Append( | 29 env.Append( |
25 CCFLAGS = [ | 30 CCFLAGS = [ |
26 '/O2', # VCCLCompilerTool.Optimization="2" | |
27 '/GF', # VCCLCompilerTool.StringPooling="true" | 31 '/GF', # VCCLCompilerTool.StringPooling="true" |
28 ], | 32 ], |
29 LINKFLAGS = [ | 33 LINKFLAGS = [ |
30 '/INCREMENTAL:NO', # VCLinkerTool.LinkIncremental="1" | 34 '/INCREMENTAL:NO', # VCLinkerTool.LinkIncremental="1" |
31 '/OPT:REF', # VCLinkerTool.OptimizeReferences="2" | 35 '/OPT:REF', # VCLinkerTool.OptimizeReferences="2" |
32 '/OPT:ICF', # VCLinkerTool.EnableCOMDATFolding="2" | 36 '/OPT:ICF', # VCLinkerTool.EnableCOMDATFolding="2" |
33 '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1" | 37 '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1" |
34 ], | 38 ], |
35 ) | 39 ) |
OLD | NEW |