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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# 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.
__doc__ = """
Master configuration for building chrome components.
"""
Import('env')
# Arrange for Hammer to add all programs to the 'chrome' Alias.
env.Append(
COMPONENT_PROGRAM_GROUPS = ['chrome'],
COMPONENT_TEST_PROGRAM_GROUPS = ['chrome'],
)
# TODO(sgk): move the ChromeVersionRC builder into a Tool module
def chrome_version_emitter(target, source, env):
source.append(env.File('$CHROME_SRC_DIR/chrome/VERSION'))
# TODO(sgk): parameterize for chromium-vs.-google_chrome
source.append(env.File('$CHROME_SRC_DIR/chrome/app/theme/google_chrome/BRANDING'))
return target, source
b = Builder(action = '$CHROME_VERSION_RC_COM',
emitter = chrome_version_emitter)
env['BUILDERS']['ChromeVersionRC'] = b
env.Replace(
# NOTE: the / after $CHROME_SRC_DIR/chrome/ is required because
# version.bat assumes a path with a trailing slash.
CHROME_VERSION_RC_COM =
'$VERSION_BAT $SOURCE $CHROME_SRC_DIR/chrome/ $PWD $TARGET',
VERSION_BAT = env.File(
'$CHROME_SRC_DIR/chrome/tools/build/win/version.bat'),
PWD = Dir('.'),
)
sconscript_files = [
'SConscript',
'browser/browser.scons',
'browser/debugger/debugger.scons',
'common/common.scons',
'common/ipc_tests.scons',
'installer/mini_installer/installer_unittests.scons',
'installer/mini_installer/mini_installer.scons',
'installer/setup/setup.scons',
'installer/util/util.scons',
'plugin/plugin.scons',
'renderer/renderer.scons',
'test/activex_test_control/activex_test_control.scons',
'test/automated_ui_tests/automated_ui_tests.scons',
'test/automation/automation.scons',
'test/chrome_plugin/test_chrome_plugin.scons',
'test/interactive_ui/interactive_ui_tests.scons',
'test/memory_test/memory_test.scons',
'test/mini_installer_test/mini_installer_test.scons',
'test/page_cycler/page_cycler_tests.scons',
'test/plugin/plugin_tests.scons',
'test/reliability/reliability_tests.scons',
'test/security_tests/security_tests.scons',
'test/selenium/selenium_tests.scons',
'test/startup/startup_tests.scons',
'test/tab_switching/tab_switching_test.scons',
'test/ui/ui_tests.scons',
'test/unit/unit_tests.scons',
'tools/crash_service/crash_service.scons',
'tools/perf/flush_cache/flush_cache.scons',
'tools/test/image_diff/image_diff.scons',
]
# TODO(port)
if env['PLATFORM'] != 'win32':
remove_files = [
'browser/debugger/debugger.scons',
'installer/mini_installer/installer_unittests.scons',
'installer/mini_installer/mini_installer.scons',
'installer/setup/setup.scons',
'installer/util/util.scons',
'test/activex_test_control/activex_test_control.scons',
'test/automated_ui_tests/automated_ui_tests.scons',
'test/automation/automation.scons',
'test/interactive_ui/interactive_ui_tests.scons',
'test/memory_test/memory_test.scons',
'test/mini_installer_test/mini_installer_test.scons',
'test/page_cycler/page_cycler_tests.scons',
'test/plugin/plugin_tests.scons',
'test/reliability/reliability_tests.scons',
'test/security_tests/security_tests.scons',
'test/selenium/selenium_tests.scons',
'test/startup/startup_tests.scons',
'test/tab_switching/tab_switching_test.scons',
'test/ui/ui_tests.scons',
'tools/crash_service/crash_service.scons',
'tools/perf/flush_cache/flush_cache.scons',
]
for remove in remove_files:
sconscript_files.remove(remove)
SConscript(sconscript_files, exports=['env'])
|