2 from waflib.extras import autowaf as autowaf
3 from waflib import TaskGen
7 # Version of this package (even if built as a child)
11 LIBLTC_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
13 # Library version (UNIX style major, minor, micro)
14 # major increment <=> incompatible changes
15 # minor increment <=> compatible changes (additions)
16 # micro increment <=> no interface changes
17 LIBLTC_LIB_VERSION = '1.1.1'
19 # Variables for 'waf dist'
21 VERSION = LIBLTC_VERSION
22 I18N_PACKAGE = 'libltc'
29 autowaf.set_options(opt)
32 if conf.is_defined('USE_EXTERNAL_LIBS'):
33 autowaf.check_pkg(conf, 'ltc', uselib_store='LIBLTC', atleast_version=LIBLTC_LIB_VERSION, mandatory=True)
35 conf.load('compiler_c')
36 autowaf.configure(conf)
39 if bld.is_defined('USE_EXTERNAL_LIBS'):
41 bld (export_includes = ['ltc'],
42 name = 'libltc_includes'
45 bld.stlib (source = ['ltc.c', 'timecode.c', 'encoder.c', 'decoder.c'],
49 use = 'libltc_includes'