2012-12-14 11:18:47 -05:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from waflib.extras import autowaf as autowaf
|
|
|
|
|
|
|
|
# Version of this package (even if built as a child)
|
|
|
|
MAJOR = '1'
|
|
|
|
MINOR = '1'
|
|
|
|
MICRO = '1'
|
|
|
|
LIBLTC_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
|
|
|
|
|
|
|
|
# Library version (UNIX style major, minor, micro)
|
|
|
|
# major increment <=> incompatible changes
|
|
|
|
# minor increment <=> compatible changes (additions)
|
|
|
|
# micro increment <=> no interface changes
|
|
|
|
LIBLTC_LIB_VERSION = '1.1.1'
|
|
|
|
|
|
|
|
I18N_PACKAGE = 'libltc'
|
|
|
|
|
|
|
|
def options(opt):
|
2022-01-25 11:43:36 -05:00
|
|
|
pass
|
2012-12-14 11:18:47 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2013-10-26 10:58:14 -04:00
|
|
|
if conf.is_defined('USE_EXTERNAL_LIBS'):
|
|
|
|
autowaf.check_pkg(conf, 'ltc', uselib_store='LIBLTC', atleast_version=LIBLTC_LIB_VERSION, mandatory=True)
|
2012-12-14 11:18:47 -05:00
|
|
|
|
|
|
|
def build(bld):
|
2013-10-26 10:58:14 -04:00
|
|
|
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
|
|
|
return
|
2013-12-05 05:57:36 -05:00
|
|
|
bld (export_includes = ['ltc'],
|
2013-12-03 11:51:25 -05:00
|
|
|
name = 'libltc_includes'
|
2013-10-18 11:08:44 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
bld.stlib (source = ['ltc.c', 'timecode.c', 'encoder.c', 'decoder.c'],
|
2018-10-14 22:06:11 -04:00
|
|
|
cflags = [ bld.env['compiler_flags_dict']['pic'] ],
|
2013-12-05 05:57:36 -05:00
|
|
|
includes = ['.'],
|
2013-12-03 11:51:25 -05:00
|
|
|
target = 'libltc',
|
|
|
|
use = 'libltc_includes'
|
2013-10-18 11:08:44 -04:00
|
|
|
)
|