diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 06:04:04 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 06:04:04 +0000 |
commit | 11e020fcd65c415dc46d10ae9dbe6ba63600ee4c (patch) | |
tree | cddd284203c70dc51f60da67b71b73ce7ec4aff8 /chrome/chrome.scons | |
parent | 140d59c7cfa01e2d6a644091c29dcad9010c0e66 (diff) | |
download | chromium_src-11e020fcd65c415dc46d10ae9dbe6ba63600ee4c.zip chromium_src-11e020fcd65c415dc46d10ae9dbe6ba63600ee4c.tar.gz chromium_src-11e020fcd65c415dc46d10ae9dbe6ba63600ee4c.tar.bz2 |
Fix use of LOAD= with WantSystemLib() (we could blow up if a variable
hadn't been added to the config) and extend use of LOAD= into submodules:
* Add a ChromeLoadSConscriptModules() method that encapsulates the
conditional logic, and makes things more readable by specifying
component names as keyword arguments, not hard-coding the logic
as a series of if-tests.
* Put the ChromeLoadSConscriptModules() logic in a Tool module in
site_scons/site_tools, so it doesn't clutter up
build/SConscript.main directly.
* Move env.WantSystemLib() calls into the individual *.scons files,
so we call them each time (or not, based one LOAD=) and the config
itself just returns if the system library is requested and we
don't need to build anything locally.
* Move the settings where a library name changes based on whether or
not the system lib is being used into the using_*.scons files,
so they're available to clients independently of whether or not the
component's *.scons configuration is loaded.
* While here: rename the affected third_party SConscript files:
third_party/libjpeg/SConscript => third_party/libjpeg/libjpeg.scons
third_party/libxml/SConscript => third_party/libxml/libxml.scons
third_party/libxslt/SConscript => third_party/libxslt/libxslt.scons
* While here: move the Chrome{Program,SharedLibrary}() etc. builder
definitions from build/SConscript.main to a new too
Ad the ChromeLoadSConscriptModules() logic in a Tool module,
to remove more clutter from build/SConscript.main.
Review URL: http://codereview.chromium.org/11430
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.scons')
-rw-r--r-- | chrome/chrome.scons | 74 |
1 files changed, 38 insertions, 36 deletions
diff --git a/chrome/chrome.scons b/chrome/chrome.scons index d990e37..a012047 100644 --- a/chrome/chrome.scons +++ b/chrome/chrome.scons @@ -38,42 +38,45 @@ env.Replace( ) -sconscript_files = [ +sconscript_files = env.ChromiumLoadComponentSConscripts( '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/perf/perftests.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/convert_dict/convert_dict.scons', - 'tools/crash_service/crash_service.scons', - 'tools/perf/flush_cache/flush_cache.scons', - 'tools/profiles/generate_profile.scons', - 'tools/test/image_diff/image_diff.scons', -] + LOAD_NAMES = ['chrome'], + + browser = 'browser/browser.scons', + debugger = 'browser/debugger/debugger.scons', + common = 'common/common.scons', + ipc_tests = 'common/ipc_tests.scons', + installer_unittests = 'installer/mini_installer/installer_unittests.scons', + mini_installer = 'installer/mini_installer/mini_installer.scons', + setup = 'installer/setup/setup.scons', + util = 'installer/util/util.scons', + plugin = 'plugin/plugin.scons', + renderer = 'renderer/renderer.scons', + activex_test_controls = + 'test/activex_test_control/activex_test_control.scons', + automated_ui_tests = 'test/automated_ui_tests/automated_ui_tests.scons', + automtion = 'test/automation/automation.scons', + test_chrome_plugin = 'test/chrome_plugin/test_chrome_plugin.scons', + interactive_ui_tests = 'test/interactive_ui/interactive_ui_tests.scons', + memory_test = 'test/memory_test/memory_test.scons', + mini_installer_test = 'test/mini_installer_test/mini_installer_test.scons', + page_cycler_tests = 'test/page_cycler/page_cycler_tests.scons', + perf_tests = 'test/perf/perftests.scons', + plugin_tests = 'test/plugin/plugin_tests.scons', + reliability_tests = 'test/reliability/reliability_tests.scons', + security_tests = 'test/security_tests/security_tests.scons', + selenium_tests = 'test/selenium/selenium_tests.scons', + startup_tests = 'test/startup/startup_tests.scons', + tab_switching_test = 'test/tab_switching/tab_switching_test.scons', + ui_tests = 'test/ui/ui_tests.scons', + unit_tests = 'test/unit/unit_tests.scons', + convert_dict = 'tools/convert_dict/convert_dict.scons', + crash_service = 'tools/crash_service/crash_service.scons', + flush_cache = 'tools/perf/flush_cache/flush_cache.scons', + generate_profile = 'tools/profiles/generate_profile.scons', + image_diff = 'tools/test/image_diff/image_diff.scons', +) # TODO(port) if env['PLATFORM'] != 'win32': @@ -103,7 +106,6 @@ if env['PLATFORM'] != 'win32': 'tools/perf/flush_cache/flush_cache.scons', 'tools/profiles/generate_profile.scons', ] - for remove in remove_files: - sconscript_files.remove(remove) + sconscript_files = list(set(sconscript_files) - set(remove_files)) SConscript(sconscript_files, exports=['env']) |