blob: 78d63b87537af378f5b8e53985b15e63276330e5 [file] [log] [blame]
[email protected]5d6c6962008-11-03 06:27:571# 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__ = """
6Master configuration for building chrome components.
7"""
8
9Import('env')
10
[email protected]1796a622008-11-14 23:29:5511# Arrange for Hammer to add all programs to the 'chrome' Alias.
12env.Append(
13 COMPONENT_PROGRAM_GROUPS = ['chrome'],
14 COMPONENT_TEST_PROGRAM_GROUPS = ['chrome'],
15)
16
[email protected]e16027d2008-11-16 22:24:5517
18# TODO(sgk): move the ChromeVersionRC builder into a Tool module
19def chrome_version_emitter(target, source, env):
20 source.append(env.File('$CHROME_SRC_DIR/chrome/VERSION'))
21 # TODO(sgk): parameterize for chromium-vs.-google_chrome
22 source.append(env.File('$CHROME_SRC_DIR/chrome/app/theme/google_chrome/BRANDING'))
23 return target, source
24
25b = Builder(action = '$CHROME_VERSION_RC_COM',
26 emitter = chrome_version_emitter)
27
28env['BUILDERS']['ChromeVersionRC'] = b
29
30env.Replace(
31 # NOTE: the / after $CHROME_SRC_DIR/chrome/ is required because
32 # version.bat assumes a path with a trailing slash.
33 CHROME_VERSION_RC_COM =
34 '$VERSION_BAT $SOURCE $CHROME_SRC_DIR/chrome/ $PWD $TARGET',
35 VERSION_BAT = env.File(
36 '$CHROME_SRC_DIR/chrome/tools/build/win/version.bat'),
37 PWD = Dir('.'),
38)
39
40
[email protected]11e020f2008-11-21 06:04:0441sconscript_files = env.ChromiumLoadComponentSConscripts(
[email protected]5d6c6962008-11-03 06:27:5742 'SConscript',
43
[email protected]11e020f2008-11-21 06:04:0444 LOAD_NAMES = ['chrome'],
45
46 browser = 'browser/browser.scons',
47 debugger = 'browser/debugger/debugger.scons',
48 common = 'common/common.scons',
49 ipc_tests = 'common/ipc_tests.scons',
50 installer_unittests = 'installer/mini_installer/installer_unittests.scons',
51 mini_installer = 'installer/mini_installer/mini_installer.scons',
52 setup = 'installer/setup/setup.scons',
53 util = 'installer/util/util.scons',
54 plugin = 'plugin/plugin.scons',
55 renderer = 'renderer/renderer.scons',
56 activex_test_controls =
57 'test/activex_test_control/activex_test_control.scons',
58 automated_ui_tests = 'test/automated_ui_tests/automated_ui_tests.scons',
59 automtion = 'test/automation/automation.scons',
60 test_chrome_plugin = 'test/chrome_plugin/test_chrome_plugin.scons',
61 interactive_ui_tests = 'test/interactive_ui/interactive_ui_tests.scons',
62 memory_test = 'test/memory_test/memory_test.scons',
63 mini_installer_test = 'test/mini_installer_test/mini_installer_test.scons',
64 page_cycler_tests = 'test/page_cycler/page_cycler_tests.scons',
65 perf_tests = 'test/perf/perftests.scons',
66 plugin_tests = 'test/plugin/plugin_tests.scons',
67 reliability_tests = 'test/reliability/reliability_tests.scons',
68 security_tests = 'test/security_tests/security_tests.scons',
69 selenium_tests = 'test/selenium/selenium_tests.scons',
70 startup_tests = 'test/startup/startup_tests.scons',
71 tab_switching_test = 'test/tab_switching/tab_switching_test.scons',
72 ui_tests = 'test/ui/ui_tests.scons',
73 unit_tests = 'test/unit/unit_tests.scons',
74 convert_dict = 'tools/convert_dict/convert_dict.scons',
75 crash_service = 'tools/crash_service/crash_service.scons',
76 flush_cache = 'tools/perf/flush_cache/flush_cache.scons',
77 generate_profile = 'tools/profiles/generate_profile.scons',
78 image_diff = 'tools/test/image_diff/image_diff.scons',
79)
[email protected]5d6c6962008-11-03 06:27:5780
[email protected]e16027d2008-11-16 22:24:5581# TODO(port)
[email protected]b353dd62008-11-04 20:22:4682if env['PLATFORM'] != 'win32':
83 remove_files = [
84 'browser/debugger/debugger.scons',
[email protected]e16027d2008-11-16 22:24:5585 'installer/mini_installer/installer_unittests.scons',
86 'installer/mini_installer/mini_installer.scons',
87 'installer/setup/setup.scons',
88 'installer/util/util.scons',
89 'test/activex_test_control/activex_test_control.scons',
[email protected]a6021be62008-11-05 17:28:0490 'test/automated_ui_tests/automated_ui_tests.scons',
[email protected]e16027d2008-11-16 22:24:5591 'test/automation/automation.scons',
[email protected]b353dd62008-11-04 20:22:4692 'test/interactive_ui/interactive_ui_tests.scons',
[email protected]e16027d2008-11-16 22:24:5593 'test/memory_test/memory_test.scons',
94 'test/mini_installer_test/mini_installer_test.scons',
95 'test/page_cycler/page_cycler_tests.scons',
[email protected]e16027d2008-11-16 22:24:5596 'test/plugin/plugin_tests.scons',
97 'test/reliability/reliability_tests.scons',
98 'test/security_tests/security_tests.scons',
99 'test/selenium/selenium_tests.scons',
100 'test/startup/startup_tests.scons',
101 'test/tab_switching/tab_switching_test.scons',
[email protected]a6021be62008-11-05 17:28:04102 'test/ui/ui_tests.scons',
[email protected]36b7dcaa2008-11-21 01:32:55103 'tools/convert_dict/convert_dict.scons',
[email protected]e16027d2008-11-16 22:24:55104 'tools/crash_service/crash_service.scons',
[email protected]36b7dcaa2008-11-21 01:32:55105 'tools/profiles/generate_profile.scons',
[email protected]b353dd62008-11-04 20:22:46106 ]
[email protected]11e020f2008-11-21 06:04:04107 sconscript_files = list(set(sconscript_files) - set(remove_files))
[email protected]b353dd62008-11-04 20:22:46108
[email protected]5d6c6962008-11-03 06:27:57109SConscript(sconscript_files, exports=['env'])