summaryrefslogtreecommitdiff
path: root/deps/v8/src/SConscript
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-07-21 22:20:37 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-07-21 22:20:37 -0700
commitf319e126218dcaafdb0ccf7e968ff839f8327bba (patch)
tree209546d94cdc6c19f69ef92e3ec057301369f416 /deps/v8/src/SConscript
parentef1be160d66b7da8bc2da857b1c33c6f680d86f1 (diff)
downloadnodejs-f319e126218dcaafdb0ccf7e968ff839f8327bba.tar.gz
nodejs-f319e126218dcaafdb0ccf7e968ff839f8327bba.tar.bz2
nodejs-f319e126218dcaafdb0ccf7e968ff839f8327bba.zip
Upgrade V8 to 3.4.14
Diffstat (limited to 'deps/v8/src/SConscript')
-rwxr-xr-xdeps/v8/src/SConscript19
1 files changed, 15 insertions, 4 deletions
diff --git a/deps/v8/src/SConscript b/deps/v8/src/SConscript
index 6b3059aea..b45a5677a 100755
--- a/deps/v8/src/SConscript
+++ b/deps/v8/src/SConscript
@@ -243,7 +243,14 @@ PREPARSER_SOURCES = {
}
-D8_FILES = {
+D8_LIGHT_FILES = {
+ 'all': [
+ 'd8.cc'
+ ]
+}
+
+
+D8_FULL_FILES = {
'all': [
'd8.cc', 'd8-debug.cc'
],
@@ -323,11 +330,15 @@ def ConfigureObjectFiles():
# Build the standard platform-independent source files.
source_files = context.GetRelevantSources(SOURCES)
-
- d8_files = context.GetRelevantSources(D8_FILES)
d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'})
d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.'])
- d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj]
+ if context.options['library'] == 'shared':
+ d8_files = context.GetRelevantSources(D8_LIGHT_FILES)
+ d8_objs = []
+ else:
+ d8_files = context.GetRelevantSources(D8_FULL_FILES)
+ d8_objs = [d8_js_obj]
+ d8_objs.append(context.ConfigureObject(env, [d8_files]))
# Combine the JavaScript library files into a single C++ file and
# compile it.