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 if env.get('INCREMENTAL') is None: | |
25 # INCREMENTAL was not specified on the command line or in the | |
26 # external environment; release default is full link. | |
27 env['INCREMENTAL'] = False | |
28 env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL:NO' | |
29 | |
30 env.Replace( | |
31 CHROMIUM_CC_OPT_FLAGS = [ | |
32 '/O2', # VCCLCompilerTool.Optimization="2" | |
33 ], | |
34 CHROMIUM_LINK_OPT_FLAGS = [ | |
35 '/OPT:REF', # VCLinkerTool.OptimizeReferences="2" | |
36 '/OPT:NOICF', # VCLinkerTool.EnableCOMDATFolding="2" | |
37 '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1" | |
38 ], | |
39 ), | |
40 env.Append( | |
41 CCFLAGS = [ | |
42 '/GF', # VCCLCompilerTool.StringPooling="true" | |
43 ], | |
44 LINKFLAGS = [ | |
45 '/INCREMENTAL:NO', # VCLinkerTool.LinkIncremental="1" | |
46 ], | |
47 ) | |
OLD | NEW |