diff options
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r-- | BuildTools/SCons/SConstruct | 21 |
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 ################################################################################ |