summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-01-24 15:56:28 +0000
committerJosé Fonseca <[email protected]>2009-01-24 15:56:28 +0000
commit9bf83fb0162b5ce95fc10ca1a38e6b4a62f9690f (patch)
treeca5108585a22f62389effa5684ed9d396d2fd75b /scons
parent436777883241e9b9c02ad7fce55ec7ff7b89ac3d (diff)
scons: Build the progs into seperate dirs as well.
Diffstat (limited to 'scons')
-rw-r--r--scons/generic.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/scons/generic.py b/scons/generic.py
index 7ded9207909..df7ef42402e 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -251,7 +251,7 @@ def generate(env):
# Put build output in a separate dir, which depends on the current
# configuration. See also http://www.scons.org/wiki/AdvancedBuildExample
try:
- env['variant_dir'] = ARGUMENTS['variant_dir']
+ env['build'] = ARGUMENTS['build']
except KeyError:
build_topdir = 'build'
build_subdir = env['platform']
@@ -261,11 +261,10 @@ def generate(env):
build_subdir += "-debug"
if env['profile']:
build_subdir += "-profile"
- env['variant_dir'] = os.path.join(build_topdir, build_subdir)
+ env['build'] = os.path.join(build_topdir, build_subdir)
# Place the .sconsign file in the build dir too, to avoid issues with
# different scons versions building the same source file
- #env.VariantDir(env['variant_dir']
- #env.SConsignFile(os.path.join(env['variant_dir'], '.sconsign'))
+ env.SConsignFile(os.path.join(env['build'], '.sconsign'))
# Summary
print
@@ -274,7 +273,7 @@ def generate(env):
print ' toolchain=%s' % env['toolchain']
print ' debug=%s' % ['no', 'yes'][env['debug']]
print ' profile=%s' % ['no', 'yes'][env['profile']]
- #print ' variant_dir=%s' % env['variant_dir']
+ print ' build=%s' % env['build']
print
# Load tool chain