OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 __doc__ = """ | 5 __doc__ = """ |
6 Master configuration for building chrome components. | 6 Master configuration for building chrome components. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 # Arrange for Hammer to add all programs to the 'chrome' Alias. | 11 # Arrange for Hammer to add all programs to the 'chrome' Alias. |
12 env.Append( | 12 env.Append( |
13 COMPONENT_PROGRAM_GROUPS = ['chrome'], | 13 COMPONENT_PROGRAM_GROUPS = ['chrome'], |
14 COMPONENT_TEST_PROGRAM_GROUPS = ['chrome'], | 14 COMPONENT_TEST_PROGRAM_GROUPS = ['chrome'], |
| 15 STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME = 1, |
15 ) | 16 ) |
16 | 17 |
17 | 18 |
18 # TODO(sgk): move the ChromeVersionRC builder into a Tool module | 19 # TODO(sgk): move the ChromeVersionRC builder into a Tool module |
19 def chrome_version_emitter(target, source, env): | 20 def chrome_version_emitter(target, source, env): |
20 source.append(env.File('$CHROME_SRC_DIR/chrome/VERSION')) | 21 source.append(env.File('$CHROME_SRC_DIR/chrome/VERSION')) |
21 # TODO(sgk): parameterize for chromium-vs.-google_chrome | 22 # TODO(sgk): parameterize for chromium-vs.-google_chrome |
22 source.append(env.File('$CHROME_SRC_DIR/chrome/app/theme/google_chrome/BRAND
ING')) | 23 source.append(env.File('$CHROME_SRC_DIR/chrome/' |
| 24 + 'app/theme/google_chrome/BRANDING')) |
23 return target, source | 25 return target, source |
24 | 26 |
25 b = Builder(action = '$CHROME_VERSION_RC_COM', | 27 b = Builder(action = '$CHROME_VERSION_RC_COM', |
26 emitter = chrome_version_emitter) | 28 emitter = chrome_version_emitter) |
27 | 29 |
28 env['BUILDERS']['ChromeVersionRC'] = b | 30 env['BUILDERS']['ChromeVersionRC'] = b |
29 | 31 |
30 env.Replace( | 32 env.Replace( |
31 # NOTE: the / after $CHROME_SRC_DIR/chrome/ is required because | 33 # NOTE: the / after $CHROME_SRC_DIR/chrome/ is required because |
32 # version.bat assumes a path with a trailing slash. | 34 # version.bat assumes a path with a trailing slash. |
33 CHROME_VERSION_RC_COM = | 35 CHROME_VERSION_RC_COM = |
34 '$VERSION_BAT $SOURCE $CHROME_SRC_DIR/chrome/ $PWD $TARGET', | 36 '$VERSION_BAT $SOURCE $CHROME_SRC_DIR/chrome/ $PWD $TARGET', |
35 VERSION_BAT = env.File( | 37 VERSION_BAT = env.File( |
36 '$CHROME_SRC_DIR/chrome/tools/build/win/version.bat'), | 38 '$CHROME_SRC_DIR/chrome/tools/build/win/version.bat'), |
37 PWD = Dir('.'), | 39 PWD = Dir('.'), |
38 ) | 40 ) |
39 | 41 |
40 | 42 |
41 sconscript_files = env.ChromiumLoadComponentSConscripts( | 43 sconscript_files = env.ChromiumLoadComponentSConscripts( |
42 'SConscript', | 44 'SConscript', |
43 | 45 |
44 LOAD_NAMES = ['chrome'], | 46 LOAD_NAMES = ['chrome'], |
45 | 47 |
46 chrome_sln = 'chrome_sln.scons', | 48 chrome_sln = 'chrome_sln.scons', |
47 locales = 'app/locales/locales.scons', | 49 locales = 'app/locales/locales.scons', |
48 browser = 'browser/browser.scons', | 50 browser = 'browser/browser.scons', |
49 debugger = 'browser/debugger/debugger.scons', | 51 debugger = 'browser/debugger/debugger.scons', |
50 common = 'common/common.scons', | 52 common = 'common/common.scons', |
51 ipc_tests = 'common/ipc_tests.scons', | 53 ipc_tests = 'common/ipc_tests.scons', |
| 54 #gcapi_dll = 'installer/gcapi/gcapi_dll.scons', |
| 55 #gcapi_lib = 'installer/gcapi/gcapi_lib.scons', |
| 56 #gcapi_test = 'installer/gcapi/gcapi_test.scons', |
52 mini_installer = 'installer/mini_installer/mini_installer.scons', | 57 mini_installer = 'installer/mini_installer/mini_installer.scons', |
53 setup = 'installer/setup/setup.scons', | 58 setup = 'installer/setup/setup.scons', |
| 59 #installer_unittests = 'installer/util/installer_unittests.scons', |
54 util = 'installer/util/util.scons', | 60 util = 'installer/util/util.scons', |
55 installer_unittests = 'installer/util/installer_unittests.scons', | 61 installer_unittests = 'installer/util/installer_unittests.scons', |
56 plugin = 'plugin/plugin.scons', | 62 plugin = 'plugin/plugin.scons', |
57 renderer = 'renderer/renderer.scons', | 63 renderer = 'renderer/renderer.scons', |
58 activex_test_controls = | 64 activex_test_controls = |
59 'test/activex_test_control/activex_test_control.scons', | 65 'test/activex_test_control/activex_test_control.scons', |
60 automated_ui_tests = 'test/automated_ui_tests/automated_ui_tests.scons', | 66 automated_ui_tests = 'test/automated_ui_tests/automated_ui_tests.scons', |
61 automtion = 'test/automation/automation.scons', | 67 automtion = 'test/automation/automation.scons', |
62 test_chrome_plugin = 'test/chrome_plugin/test_chrome_plugin.scons', | 68 test_chrome_plugin = 'test/chrome_plugin/test_chrome_plugin.scons', |
63 interactive_ui_tests = 'test/interactive_ui/interactive_ui_tests.scons', | 69 interactive_ui_tests = 'test/interactive_ui/interactive_ui_tests.scons', |
(...skipping 10 matching lines...) Expand all Loading... |
74 ui_tests = 'test/ui/ui_tests.scons', | 80 ui_tests = 'test/ui/ui_tests.scons', |
75 unit_tests = 'test/unit/unit_tests.scons', | 81 unit_tests = 'test/unit/unit_tests.scons', |
76 convert_dict = 'tools/convert_dict/convert_dict.scons', | 82 convert_dict = 'tools/convert_dict/convert_dict.scons', |
77 crash_service = 'tools/crash_service/crash_service.scons', | 83 crash_service = 'tools/crash_service/crash_service.scons', |
78 flush_cache = 'tools/perf/flush_cache/flush_cache.scons', | 84 flush_cache = 'tools/perf/flush_cache/flush_cache.scons', |
79 generate_profile = 'tools/profiles/generate_profile.scons', | 85 generate_profile = 'tools/profiles/generate_profile.scons', |
80 image_diff = 'tools/test/image_diff/image_diff.scons', | 86 image_diff = 'tools/test/image_diff/image_diff.scons', |
81 ) | 87 ) |
82 | 88 |
83 SConscript(sconscript_files, exports=['env']) | 89 SConscript(sconscript_files, exports=['env']) |
OLD | NEW |