summaryrefslogtreecommitdiffstats
path: root/gears/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'gears/SConscript')
-rw-r--r--gears/SConscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/gears/SConscript b/gears/SConscript
index 26e3603..0811393 100644
--- a/gears/SConscript
+++ b/gears/SConscript
@@ -38,6 +38,7 @@ env = env.Clone(
OPEN_DIR = "gears",
THIRD_PARTY_DIR = "third_party",
PRIVATE_THIRD_PARTY_DIR = "third_party_internal",
+ SYMBIAN_DIR = "symbian_internal",
)
if not os.path.exists(env.Dir('#/$OPEN_DIR').abspath):
@@ -60,6 +61,7 @@ os_browsers_map = {
'linux': ['FF2', 'FF3'],
'osx': ['SF', 'FF2', 'FF3'],
'android': ['NPAPI'],
+ 'symbian': ['NPAPI'],
}
vars = Variables(None, ARGUMENTS)
@@ -696,6 +698,16 @@ env.Append(SHLINKFLAGS = ['$LINKFLAGS'])
if env['OS'] in ['wince', 'win32']:
env.Append(SHLINKFLAGS = ['/DLL'])
+# Custom builder to work around a scons and/or hammer bug. ComponentLibrary
+# tries to install the library to COMPONENT_LIBRARY_DIR, but since we overrode
+# that value, scons gets confused. I'm not sure who is at fault here.
+# See http://code.google.com/p/chromium/issues/detail?id=4177.
+def GearsStaticLibrary(env, *args, **kw):
+ lib = env.ChromeStaticLibrary(*args, **kw)
+ env.Install('$COMPONENT_LIBRARY_DIR', lib[0])
+ return lib
+env.AddMethod(GearsStaticLibrary)
+
# Load all the components
sconscripts = [