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 Import('env') | 5 Import('env') |
6 | 6 |
7 env = env.Clone() | 7 env = env.Clone() |
8 | 8 |
9 if env['PLATFORM'] == 'win32': | 9 if env['PLATFORM'] == 'win32': |
10 | 10 |
11 # NOTE: env.Replace() instead of inhering the normal *.scons settings! | 11 # NOTE: env.Replace() instead of inhering the normal *.scons settings! |
12 env.Replace( | 12 env.Replace( |
13 CPPDEFINES = [ | 13 CPPDEFINES = [ |
14 ('_WIN32_WINNT', '0x0501'), | 14 ('_WIN32_WINNT', '0x0501'), |
15 ('WINVER', '0x0501'), | 15 ('WINVER', '0x0501'), |
16 'WIN32', | 16 'WIN32', |
17 '_UNICODE', | 17 '_UNICODE', |
18 'UNICODE', | 18 'UNICODE', |
19 ], | 19 ], |
20 CPPPATH = [ | 20 CPPPATH = [ |
21 '$CHROME_SRC_DIR', | 21 '$CHROME_SRC_DIR', |
22 '$PLATFORMSDK_VISTA/files/Include', | |
23 '$PLATFORMSDK_VISTA/files/VC/INCLUDE', | |
24 ], | 22 ], |
25 CCFLAGS = [ | 23 CCFLAGS = [ |
26 '/nologo', | 24 '/nologo', |
27 | 25 |
28 '/EHsc', | 26 '/EHsc', |
29 | 27 |
30 '/GS-', # VCCLCompilerTool.BufferSecurityCheck="false" | 28 '/GS-', # VCCLCompilerTool.BufferSecurityCheck="false" |
31 '/GR-', # VCCLCompilerTool.RuntimeTypeInfo="false" | 29 '/GR-', # VCCLCompilerTool.RuntimeTypeInfo="false" |
32 '/W3', # treat warnings as errors | 30 '/W3', # treat warnings as errors |
33 '/Wp64', # VCCLCompilerTool.Detect64BitPortabilityProblems="false" | 31 '/Wp64', # VCCLCompilerTool.Detect64BitPortabilityProblems="false" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 ], | 78 ], |
81 ) | 79 ) |
82 | 80 |
83 input_files = [ | 81 input_files = [ |
84 'service64_resolver.cc', | 82 'service64_resolver.cc', |
85 'target_code.cc', | 83 'target_code.cc', |
86 'wow_helper.cc', | 84 'wow_helper.cc', |
87 ] | 85 ] |
88 | 86 |
89 env.ChromeProgram('wow_helper', input_files) | 87 env.ChromeProgram('wow_helper', input_files) |
OLD | NEW |