| 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 __doc__ = """ | |
| 6 Master configuration for building chrome components. | |
| 7 """ | |
| 8 | |
| 9 Import('env') | |
| 10 | |
| 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 STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME = 1, | |
| 16 ) | |
| 17 | |
| 18 | |
| 19 # TODO(sgk): move the ChromeVersionRC builder into a Tool module | |
| 20 def chrome_version_emitter(target, source, env): | |
| 21 source.append(env.File('$CHROME_SRC_DIR/chrome/VERSION')) | |
| 22 # TODO(sgk): parameterize for chromium-vs.-google_chrome | |
| 23 source.append(env.File('$CHROME_SRC_DIR/chrome/' | |
| 24 + 'app/theme/google_chrome/BRANDING')) | |
| 25 return target, source | |
| 26 | |
| 27 b = Builder(action = '$CHROME_VERSION_RC_COM', | |
| 28 emitter = chrome_version_emitter) | |
| 29 | |
| 30 env['BUILDERS']['ChromeVersionRC'] = b | |
| 31 | |
| 32 env.Replace( | |
| 33 # NOTE: the / after $CHROME_SRC_DIR/chrome/ is required because | |
| 34 # version.bat assumes a path with a trailing slash. | |
| 35 CHROME_VERSION_RC_COM = | |
| 36 '$VERSION_BAT $SOURCE $CHROME_SRC_DIR/chrome/ $PWD $TARGET', | |
| 37 VERSION_BAT = env.File( | |
| 38 '$CHROME_SRC_DIR/chrome/tools/build/win/version.bat'), | |
| 39 PWD = Dir('.'), | |
| 40 ) | |
| 41 | |
| 42 | |
| 43 sconscript_files = env.ChromiumLoadComponentSConscripts( | |
| 44 'SConscript', | |
| 45 | |
| 46 LOAD_NAMES = ['chrome'], | |
| 47 | |
| 48 chrome_sln = 'chrome_sln.scons', | |
| 49 | |
| 50 locales = 'app/locales/locales.scons', | |
| 51 chrome_resources = 'app/chrome_resources.scons', | |
| 52 chrome_strings = 'app/chrome_strings.scons', | |
| 53 theme_dll = 'app/theme/theme_dll.scons', | |
| 54 | |
| 55 browser = 'browser/browser.scons', | |
| 56 debugger = 'browser/debugger/debugger.scons', | |
| 57 | |
| 58 common = 'common/common.scons', | |
| 59 ipc_tests = 'common/ipc_tests.scons', | |
| 60 | |
| 61 #gcapi_dll = 'installer/gcapi/gcapi_dll.scons', | |
| 62 #gcapi_lib = 'installer/gcapi/gcapi_lib.scons', | |
| 63 #gcapi_test = 'installer/gcapi/gcapi_test.scons', | |
| 64 mini_installer = 'installer/mini_installer/mini_installer.scons', | |
| 65 setup = 'installer/setup/setup.scons', | |
| 66 #installer_unittests = 'installer/util/installer_unittests.scons', | |
| 67 util = 'installer/util/util.scons', | |
| 68 installer_unittests = 'installer/util/installer_unittests.scons', | |
| 69 | |
| 70 plugin = 'plugin/plugin.scons', | |
| 71 | |
| 72 renderer = 'renderer/renderer.scons', | |
| 73 | |
| 74 activex_test_controls = | |
| 75 'test/activex_test_control/activex_test_control.scons', | |
| 76 automated_ui_tests = 'test/automated_ui_tests/automated_ui_tests.scons', | |
| 77 automtion = 'test/automation/automation.scons', | |
| 78 test_chrome_plugin = 'test/chrome_plugin/test_chrome_plugin.scons', | |
| 79 interactive_ui_tests = 'test/interactive_ui/interactive_ui_tests.scons', | |
| 80 memory_test = 'test/memory_test/memory_test.scons', | |
| 81 mini_installer_test = 'test/mini_installer_test/mini_installer_test.scons', | |
| 82 page_cycler_tests = 'test/page_cycler/page_cycler_tests.scons', | |
| 83 perf_tests = 'test/perf/perftests.scons', | |
| 84 plugin_tests = 'test/plugin/plugin_tests.scons', | |
| 85 reliability_tests = 'test/reliability/reliability_tests.scons', | |
| 86 security_tests = 'test/security_tests/security_tests.scons', | |
| 87 selenium_tests = 'test/selenium/selenium_tests.scons', | |
| 88 startup_tests = 'test/startup/startup_tests.scons', | |
| 89 tab_switching_test = 'test/tab_switching/tab_switching_test.scons', | |
| 90 ui_tests = 'test/ui/ui_tests.scons', | |
| 91 unit_tests = 'test/unit/unit_tests.scons', | |
| 92 | |
| 93 convert_dict = 'tools/convert_dict/convert_dict.scons', | |
| 94 crash_service = 'tools/crash_service/crash_service.scons', | |
| 95 flush_cache = 'tools/perf/flush_cache/flush_cache.scons', | |
| 96 generate_profile = 'tools/profiles/generate_profile.scons', | |
| 97 image_diff = 'tools/test/image_diff/image_diff.scons', | |
| 98 ) | |
| 99 | |
| 100 SConscript(sconscript_files, exports=['env']) | |
| OLD | NEW |