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