| [email protected] | 5d6c696 | 2008-11-03 06:27:57 | [diff] [blame] | 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 | __doc__ = """ |
| 6 | Master configuration for building chrome components. |
| 7 | """ |
| 8 | |
| 9 | Import('env') |
| 10 | |
| [email protected] | 1796a62 | 2008-11-14 23:29:55 | [diff] [blame] | 11 | # Arrange for Hammer to add all programs to the 'chrome' Alias. |
| 12 | env.Append( |
| 13 | COMPONENT_PROGRAM_GROUPS = ['chrome'], |
| 14 | COMPONENT_TEST_PROGRAM_GROUPS = ['chrome'], |
| 15 | ) |
| 16 | |
| [email protected] | e16027d | 2008-11-16 22:24:55 | [diff] [blame] | 17 | |
| 18 | # TODO(sgk): move the ChromeVersionRC builder into a Tool module |
| 19 | def 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 | |
| 25 | b = Builder(action = '$CHROME_VERSION_RC_COM', |
| 26 | emitter = chrome_version_emitter) |
| 27 | |
| 28 | env['BUILDERS']['ChromeVersionRC'] = b |
| 29 | |
| 30 | env.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] | 11e020f | 2008-11-21 06:04:04 | [diff] [blame] | 41 | sconscript_files = env.ChromiumLoadComponentSConscripts( |
| [email protected] | 5d6c696 | 2008-11-03 06:27:57 | [diff] [blame] | 42 | 'SConscript', |
| 43 | |
| [email protected] | 11e020f | 2008-11-21 06:04:04 | [diff] [blame] | 44 | 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] | 5d6c696 | 2008-11-03 06:27:57 | [diff] [blame] | 80 | |
| [email protected] | e16027d | 2008-11-16 22:24:55 | [diff] [blame] | 81 | # TODO(port) |
| [email protected] | b353dd6 | 2008-11-04 20:22:46 | [diff] [blame] | 82 | if env['PLATFORM'] != 'win32': |
| 83 | remove_files = [ |
| 84 | 'browser/debugger/debugger.scons', |
| [email protected] | e16027d | 2008-11-16 22:24:55 | [diff] [blame] | 85 | '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] | a6021be6 | 2008-11-05 17:28:04 | [diff] [blame] | 90 | 'test/automated_ui_tests/automated_ui_tests.scons', |
| [email protected] | e16027d | 2008-11-16 22:24:55 | [diff] [blame] | 91 | 'test/automation/automation.scons', |
| [email protected] | b353dd6 | 2008-11-04 20:22:46 | [diff] [blame] | 92 | 'test/interactive_ui/interactive_ui_tests.scons', |
| [email protected] | e16027d | 2008-11-16 22:24:55 | [diff] [blame] | 93 | '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] | e16027d | 2008-11-16 22:24:55 | [diff] [blame] | 96 | '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] | a6021be6 | 2008-11-05 17:28:04 | [diff] [blame] | 102 | 'test/ui/ui_tests.scons', |
| [email protected] | 36b7dcaa | 2008-11-21 01:32:55 | [diff] [blame] | 103 | 'tools/convert_dict/convert_dict.scons', |
| [email protected] | e16027d | 2008-11-16 22:24:55 | [diff] [blame] | 104 | 'tools/crash_service/crash_service.scons', |
| [email protected] | 36b7dcaa | 2008-11-21 01:32:55 | [diff] [blame] | 105 | 'tools/profiles/generate_profile.scons', |
| [email protected] | b353dd6 | 2008-11-04 20:22:46 | [diff] [blame] | 106 | ] |
| [email protected] | 11e020f | 2008-11-21 06:04:04 | [diff] [blame] | 107 | sconscript_files = list(set(sconscript_files) - set(remove_files)) |
| [email protected] | b353dd6 | 2008-11-04 20:22:46 | [diff] [blame] | 108 | |
| [email protected] | 5d6c696 | 2008-11-03 06:27:57 | [diff] [blame] | 109 | SConscript(sconscript_files, exports=['env']) |