summaryrefslogtreecommitdiffstats
path: root/build/SConscript.v8
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-02 18:34:48 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-02 18:34:48 +0000
commit683b7bde3b8f4bdfcc3e777cf35f5bbb29516c35 (patch)
tree81f2fe41da5ffa30e5327aea3073b9fac245b580 /build/SConscript.v8
parent83f06a15f1515567c9bc4ffa5692e003af94982f (diff)
downloadchromium_src-683b7bde3b8f4bdfcc3e777cf35f5bbb29516c35.zip
chromium_src-683b7bde3b8f4bdfcc3e777cf35f5bbb29516c35.tar.gz
chromium_src-683b7bde3b8f4bdfcc3e777cf35f5bbb29516c35.tar.bz2
Revert r2734 (catch up SCons build with webkit). It relied on a
leftover file from previous incremental builds. Review URL: http://codereview.chromium.org/6084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/SConscript.v8')
-rw-r--r--build/SConscript.v873
1 files changed, 31 insertions, 42 deletions
diff --git a/build/SConscript.v8 b/build/SConscript.v8
index b89da2a..ddf5cea 100644
--- a/build/SConscript.v8
+++ b/build/SConscript.v8
@@ -4,61 +4,48 @@
Import('env')
-# Grab the -j flag from the outer environment, if available.
-try:
- cpus = env.GetOption('num_jobs')
- cpu_flag = ' -j%d' % cpus
-except AttributeError:
- cpu_flag = ''
+env = env.Clone()
-env = env.Clone(
- V8_MODE = 'release',
- V8_SRC_DIR = '#/../v8',
- V8_MODE_DIR = '$V8_SRC_DIR/obj/$V8_MODE',
- SCONS='../third_party/scons/scons.py',
- SCONSFLAGS = ('-Q '
- '--warn=no-deprecated '
- '--warn=no-no-parallel-support' + cpu_flag),
-)
-
-# Rather than build v8 with our own commands, we just shell out to v8's
-# own SCons-based build, since their build system is complicated.
+# Rather than build v8 here, we just shell out to v8's own SCons-based
+# build, since their build system is complicated.
# This SConscript just declares dependencies on the outputs of that build.
-mksnapshot_exe = env.File('$V8_MODE_DIR/mksnapshot${PROGSUFFIX}')
-libraries_obj = env.File('$V8_MODE_DIR/libraries${OBJSUFFIX}')
-libraries_empty_obj = env.File('$V8_MODE_DIR/libraries-empty${OBJSUFFIX}')
-snapshot_obj = env.File('$V8_MODE_DIR/snapshot${OBJSUFFIX}')
-snapshot_empty_obj = env.File('$V8_MODE_DIR/snapshot-empty${OBJSUFFIX}')
-v8_bin = env.File('$V8_SRC_DIR/shell${PROGSUFFIX}')
-v8_lib = env.File('$V8_SRC_DIR/${LIBPREFIX}v8${LIBSUFFIX}'),
+mksnapshot_bin = env.File('#/../v8/obj/release/mksnapshot${PROGSUFFIX}')
+v8_bin = env.File('#/../v8/shell${PROGSUFFIX}')
+v8_lib = env.File('#/../v8/${LIBPREFIX}v8${LIBSUFFIX}'),
v8_scons_targets = [
- mksnapshot_exe,
- libraries_obj,
- libraries_empty_obj,
- snapshot_obj,
- snapshot_empty_obj,
- v8_bin,
- v8_lib,
+ mksnapshot_bin,
+ v8_bin,
+ v8_lib,
]
if env['PLATFORM'] == 'win32':
- v8_scons_targets.extend([
- env.File('#/../v8/vc80.pdb')
+ v8_scons_targets.append([
+ env.File('#/../v8/obj/release/snapshot-empty.obj'),
+ env.File('#/../v8/vc80.pdb')
])
+# Grab the -j flag from the outer environment, if available.
+try:
+ cpus = env.GetOption('num_jobs')
+ cpu_flag = ' -j%d' % cpus
+except AttributeError:
+ cpu_flag = ''
+
v8 = env.Command(v8_scons_targets,
[],
- 'cd ../v8 && $PYTHON $SCONS $SCONSFLAGS $V8FLAGS',
- V8FLAGS='mode=$V8_MODE snapshot=off sample=shell')
+ 'cd ../v8 && $PYTHON $SCONS $SCONSFLAGS snapshot=on ' +
+ 'sample=shell',
+ SCONS='../third_party/scons/scons.py',
+ SCONSFLAGS=('-Q '
+ '--warn=no-deprecated '
+ '--warn=no-no-parallel-support' + cpu_flag))
env.AlwaysBuild(v8)
env.Install('$V8_DIR', v8)
-# Tell our SCons invocation to *not* delete v8.lib and the other targets
-# before building them, so the subsidiary v8 SCons call doesn't always
-# rebuild them (thereby causing us to always rebuild their dependents).
-env.Precious(v8)
+i = env.Install('$TARGET_ROOT', mksnapshot_bin)
+env.Alias('webkit', i)
i = env.Install('$LIBS_DIR', v8_lib)
env.Alias('webkit', i)
@@ -72,5 +59,7 @@ if env['PLATFORM'] == 'win32':
i = env.InstallAs('$TARGET_ROOT/v8_shell_sample${PROGSUFFIX}', v8_bin)
env.Alias('chrome', i)
-env.ChromeStaticLibrary('v8_snapshot',
- [libraries_empty_obj, snapshot_obj])
+# Tell our SCons invocation to *not* delete v8.lib and the other targets
+# before building them, so the subsidiary v8 SCons call doesn't always
+# rebuild them (thereby causing us to always rebuild their dependents).
+env.Precious(v8)