summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-07-07 10:03:26 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 08:53:12 (GMT)
commit96d693d51973bd5b2ed47755c8726dc2076f6c53 (patch)
treec1d1ff8829fe53610f4a495e478f50e10cba2585 /BuildTools/SCons/SConstruct
parent0b7d40d0a8097e28b146fb96fd68638f66c9c82d (diff)
downloadswift-contrib-96d693d51973bd5b2ed47755c8726dc2076f6c53.zip
swift-contrib-96d693d51973bd5b2ed47755c8726dc2076f6c53.tar.bz2
Add system library jrtplib in SCons
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct21
1 files changed, 21 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 2e8d1cb..6919ba1 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -478,6 +478,27 @@ try :
except :
env["HAVE_QT"] = False
+# JRTPLIB
+if env["experimental"] :
+ jrtplib_conf_env = conf_env.Clone()
+ jrtplib_flags = {}
+ if env.get("jrtplib_libdir", None) :
+ jrtplib_flags["LIBPATH"] = [env["jrtplib_libdir"]]
+ if env.get("jrtplib_includedir", None) and env.get("jrtplib_libdir", None) :
+ jrtplib_flags["CPPPATH"] = [env["jrtplib_includedir"], env["jrtplib_libdir"]]
+ jrtplib_conf_env.MergeFlags(jrtplib_flags)
+ conf = Configure(jrtplib_conf_env)
+
+ if conf.CheckLibWithHeader(env["jrtplib_libname"], "rtpsession.h", language='C++') :
+ env["HAVE_JRTPLIB"] = 1
+ env["JRTPLIB_FLAGS"] = { "LIBS": [env["jrtplib_libname"]] }
+ env["JRTPLIB_FLAGS"].update(jrtplib_flags)
+ conf.Finish()
+
+ #env["JRTPLIB_BUNDLED"] = 1
+#else :
+ #env["JRTPLIB_FLAGS"] = {}
+
################################################################################
# DocBook setup
################################################################################