diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 19:42:26 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 19:42:26 +0000 |
commit | 6a1d7d7ebc60dccc5705e1b80a6a746a17c64ef8 (patch) | |
tree | b10b11c7597d36cdecaf03736485dd3c6b4b91f1 /build | |
parent | fa2e32bada9bb65f8aa595569d2f41c02715bc63 (diff) | |
download | chromium_src-6a1d7d7ebc60dccc5705e1b80a6a746a17c64ef8.zip chromium_src-6a1d7d7ebc60dccc5705e1b80a6a746a17c64ef8.tar.gz chromium_src-6a1d7d7ebc60dccc5705e1b80a6a746a17c64ef8.tar.bz2 |
Have the gyp build use base SCons, not Hammer components, so it can
control the Alias namespace directly and set appropriate default targets.
This currently switches within the various Chrome*() calls.
Review URL: http://codereview.chromium.org/46037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/SConscript.main | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/build/SConscript.main b/build/SConscript.main index 4289b43d..50d4a9e 100644 --- a/build/SConscript.main +++ b/build/SConscript.main @@ -63,14 +63,20 @@ clvars.AddVariables( ) +if ARGUMENTS.get('_GYP'): + tool_list = ['chromium_builders'] +else: + tool_list = ['component_setup', + 'chromium_builders', + 'chromium_load_component', + 'MSVSNew'] + + root_env = Environment( # MSVSNew in the base environment? Yes, the point is we can (and # want to) generate Visual Studio project and solution files from # any platform. - tools = ['component_setup', - 'chromium_builders', - 'chromium_load_component', - 'MSVSNew'], + tools = tool_list, variables = clvars, # Requested list of system (shared) libraries, from the comma separated @@ -190,6 +196,7 @@ components = [] # The keyword arguments in the call below (base, breakpad, etc.) can be # specified in the LOAD= argument to cut down on the build. +Default(None) # Reset default target to empty. if root_env.get('_GYP'): webkit_sconscript = '$WEBKIT_DIR/tools/test_shell/test_shell_main${_GYP}.scons' else: @@ -789,21 +796,20 @@ BuildComponents(environment_list) # ------------------------------------------------------------------------- -Default(None) # Reset default target to empty. - -modes = GetTargetModes().keys() - -if set(modes) - set(['msvs', 'xcode']): - # There's at least one mode being built besides the platform- - # independent 'msvs' or 'xcode' modes. Build the current - # build_component's Alias as default--that is, "base" when we're - # in the base/ subdirectory, "chrome" under chrome/, etc. - Import('build_component') - Default(Alias(build_component)) # Set default target based on where built. - -if 'msvs' in modes: - # We're in --mode=msvs, so add its Alias(es) to the default targets. - Default(Alias('msvs')) +if not root_env.get('_GYP'): + modes = GetTargetModes().keys() + + if set(modes) - set(['msvs', 'xcode']): + # There's at least one mode being built besides the platform- + # independent 'msvs' or 'xcode' modes. Build the current + # build_component's Alias as default--that is, "base" when we're + # in the base/ subdirectory, "chrome" under chrome/, etc. + Import('build_component') + Default(Alias(build_component)) # Set default target based on where built. + + if 'msvs' in modes: + # We're in --mode=msvs, so add its Alias(es) to the default targets. + Default(Alias('msvs')) # ------------------------------------------------------------------------- |