summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/SConscript.main10
-rw-r--r--build/SConscript.v84
2 files changed, 14 insertions, 0 deletions
diff --git a/build/SConscript.main b/build/SConscript.main
index 44dcb20..d6df2c3 100644
--- a/build/SConscript.main
+++ b/build/SConscript.main
@@ -540,6 +540,16 @@ if ARGUMENTS.get('SYMBOLS') == '1':
if ARGUMENTS.get('SHARED') == '1':
linux_env.Replace(COMPONENT_STATIC=False)
+ # The shared library build only works for test_shell and test_shell_tests,
+ # so filter out Chrome.
+ print "Filtering out chrome and media build targets in shared object build."
+ linux_env.FilterOut(
+ BUILD_SCONSCRIPTS = [
+ '$CHROME_DIR/chrome.scons',
+ '$MEDIA_DIR/media.scons',
+ ]
+ )
+
# Build with system-provided NSS and GTK.
if root_env['PLATFORM'] in ['linux', 'linux2', 'posix']:
try:
diff --git a/build/SConscript.v8 b/build/SConscript.v8
index ec0bd83..fc7fa81 100644
--- a/build/SConscript.v8
+++ b/build/SConscript.v8
@@ -15,6 +15,10 @@ mode = 'release'
if env['TARGET_DEBUG']:
mode = 'debug'
+# Don't build V8 as a shared object because the v8 scons file doesn't support
+# it.
+env.Replace(COMPONENT_STATIC=True)
+
env = env.Clone(
V8_MODE = mode,
V8_MODE_DIR = '$V8_DIR/obj/$V8_MODE',