diff options
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r-- | BuildTools/SCons/SConscript.boot | 3 | ||||
-rw-r--r-- | BuildTools/SCons/SConstruct | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index 58f6adc..c4b5168 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -62,6 +62,9 @@ vars.Add(BoolVariable("set_iterator_debug_level", "Set _ITERATOR_DEBUG_LEVEL=0", vars.Add(PathVariable("jrtplib_includedir", "JRTPLIB headers location", None, PathVariable.PathAccept)) vars.Add(PathVariable("jrtplib_libdir", "JRTPLIB library location", None, PathVariable.PathAccept)) vars.Add("jrtplib_libname", "JRTPLIB library name", "libjrtp" if os.name == "nt" else "jrtp") +vars.Add(PathVariable("libvpx_includedir", "libvpx headers location", None, PathVariable.PathAccept)) +vars.Add(PathVariable("libvpx_libdir", "libvpx library location", None, PathVariable.PathAccept)) +vars.Add("libvpx_libname", "libvpx library name", "libvpx" if os.name == "nt" else "vpx") ################################################################################ # Set up default build & configure environment 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 ################################################################################ |