diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-03 11:51:25 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-03 11:51:25 -0500 |
commit | 8648a8a13b04549362f14a0738947d997ef1abc7 (patch) | |
tree | 702652b49789b13d647c4c93df985f65361a4118 /libs/libltc | |
parent | c428ec14b923928690492cab0428f8fad45f7658 (diff) | |
parent | ae6b0b9f1ab02ab949eaf741b98e69bdab487e92 (diff) |
fix up wscript/build issues in exportvis after merge with master
Diffstat (limited to 'libs/libltc')
-rw-r--r-- | libs/libltc/wscript | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libs/libltc/wscript b/libs/libltc/wscript index c0b2057298..7938cd18fd 100644 --- a/libs/libltc/wscript +++ b/libs/libltc/wscript @@ -29,19 +29,24 @@ def options(opt): autowaf.set_options(opt) def configure(conf): - conf.load('compiler_c') - autowaf.configure(conf) + if conf.is_defined('USE_EXTERNAL_LIBS'): + autowaf.check_pkg(conf, 'ltc', uselib_store='LIBLTC', atleast_version=LIBLTC_LIB_VERSION, mandatory=True) + else: + conf.load('compiler_c') + autowaf.configure(conf) def build(bld): + if bld.is_defined('USE_EXTERNAL_LIBS'): + return bld (export_includes = ['.'], includes = ['.'], - name = 'ltc_includes' + name = 'libltc_includes' ) bld.stlib (source = ['ltc.c', 'timecode.c', 'encoder.c', 'decoder.c'], cflags = [ '-fPIC' ], - target = 'ltc', - use = 'ltc_includes' + target = 'libltc', + use = 'libltc_includes' ) def shutdown(): |