summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-09-16 08:33:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-09-16 08:33:48 (GMT)
commit12f6f31bbe60de989bad2b622f9f15285e44513a (patch)
tree459b17ca27ebc79855cb8edead6c5da3a448f108 /Swiften
parent2c7fb800745172e2d190d15e556fb59f3a930fa1 (diff)
downloadswift-12f6f31bbe60de989bad2b622f9f15285e44513a.zip
swift-12f6f31bbe60de989bad2b622f9f15285e44513a.tar.bz2
Only expose libraries from swiften dependent libraries.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/SConscript13
1 files changed, 11 insertions, 2 deletions
diff --git a/Swiften/SConscript b/Swiften/SConscript
index 5546975..5ee4321 100644
--- a/Swiften/SConscript
+++ b/Swiften/SConscript
@@ -7,6 +7,7 @@ Import("env")
################################################################################
swiften_dep_modules = ["BOOST", "GCONF", "ICU", "LIBIDN", "ZLIB", "OPENSSL", "LIBXML", "EXPAT", "AVAHI", "LIBMINIUPNPC", "LIBNATPMP", "SQLITE", "SQLITE_ASYNC"]
+external_swiften_dep_modules = ["BOOST"]
if env["SCONS_STAGE"] == "flags" :
env["SWIFTEN_DLL"] = ARGUMENTS.get("swiften_dll")
@@ -40,10 +41,18 @@ if env["SCONS_STAGE"] == "flags" :
swiften_env.Append(CPPDEFINES = ["SWIFTEN_STATIC"])
dep_env = env.Clone()
for module in swiften_dep_modules :
+ module_flags = env.get(module + "_FLAGS", {})
if env.get(module + "_BUNDLED", False) :
- swiften_env.UseFlags(env.get(module + "_FLAGS", {}))
+ if module in external_swiften_dep_modules :
+ swiften_env.UseFlags(module_flags)
else :
- dep_env.UseFlags(env.get(module + "_FLAGS", {}))
+ if module in external_swiften_dep_modules :
+ dep_env.UseFlags(module_flags)
+ else :
+ # Expose only libraries
+ dep_env.Append(LIBPATH = module_flags.get("LIBPATH", []))
+ dep_env.Append(LIBS = module_flags.get("LIBS", []))
+ dep_env.Append(FRAMEWORKS = module_flags.get("FRAMEWORKS", []))
dep_env.UseFlags(dep_env["PLATFORM_FLAGS"])
if env.get("HAVE_SCHANNEL", 0) :