summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct18
1 files changed, 18 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 6919ba1..daaa98d 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -499,6 +499,24 @@ if env["experimental"] :
#else :
#env["JRTPLIB_FLAGS"] = {}
+# libvpx
+if env["experimental"] :
+ libvpx_conf_env = conf_env.Clone()
+ libvpx_flags = {}
+ if env.get("libvpx_libdir", None) :
+ libvpx_flags["LIBPATH"] = [env["libvpx_libdir"]]
+ if env.get("libvpx_includedir", None) :
+ libvpx_flags["CPPATH"] = [env["libvpx_includedir"]]
+ libvpx_conf_env.MergeFlags(libvpx_flags)
+ conf = Configure(libvpx_conf_env)
+
+ if conf.CheckLibWithHeader(env["libvpx_libname"], "vpx/vpx_codec.h", language='C') :
+ env["HAVE_LIBVPX"] = 1
+ env["LIBVPX_FLAGS"] = { "LIBS": [env["libvpx_libname"]] }
+ env["LIBVPX_FLAGS"].update(libvpx_flags)
+ conf.Finish()
+
+
################################################################################
# DocBook setup
################################################################################