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 Import('env', 'env_res') | |
6 | |
7 env = env.Clone() | |
8 env_res = env_res.Clone() | |
9 | |
10 | |
11 env_res.Append( | |
12 CPPPATH = [ | |
13 "$TARGET_ROOT", | |
14 ".", | |
15 "$CHROME_SRC_DIR", | |
16 ], | |
17 RCFLAGS = [ | |
18 ["/l", "0x409"], | |
19 ], | |
20 ) | |
21 | |
22 | |
23 resources = [ | |
24 env_res.RES('setup.rc'), | |
25 ] | |
26 | |
27 | |
28 env.Prepend( | |
29 CPPPATH = [ | |
30 '../util', | |
31 '$TARGET_ROOT', | |
32 '.', | |
33 '$CHROME_SRC_DIR', | |
34 ], | |
35 LIBS = [ | |
36 'base', | |
37 'bspatch', | |
38 'common', | |
39 env['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed | |
40 'lzma_sdk', | |
41 'util', | |
42 ], | |
43 ) | |
44 | |
45 env.Prepend( | |
46 LINKFLAGS = [ | |
47 '/INCREMENTAL', | |
48 '/DEBUG', | |
49 | |
50 '/DELAYLOAD:"dwmapi.dll"', | |
51 '/DELAYLOAD:"uxtheme.dll"', | |
52 | |
53 '/OPT:NOWIN98', | |
54 '/SUBSYSTEM:WINDOWS', | |
55 '/MACHINE:X86', | |
56 '/FIXED:No', | |
57 | |
58 '/safeseh', | |
59 '/dynamicbase', | |
60 '/ignore:4199', | |
61 '/nxcompat', | |
62 | |
63 '/PDB:${TARGETS[1]}', | |
64 ], | |
65 LIBS = [ | |
66 'msi.lib', | |
67 ], | |
68 ) | |
69 | |
70 input_files = [ | |
71 'install.cc', | |
72 'main.cc', | |
73 'setup.cc', | |
74 'setup_constants.cc', | |
75 'uninstall.cc', | |
76 ] | |
77 | |
78 exe = env.ChromeProgram('setup', resources + input_files) | |
79 i = env.Install('$TARGET_ROOT', exe) | |
80 | |
81 env.Alias('chrome', i) | |
82 | |
83 | |
84 env.ChromeVersionRC('setup_exe_version.rc', | |
85 'setup_exe_version.rc.version', | |
86 PWD = env.Dir('.')) | |
87 | |
OLD | NEW |