a0916ef368
https://waf.io/book/ says By default, the project name and version are set to noname and 1.0. To change them, it is necessary to provide two additional variables in the top-level project file - and waf code inspection confirms that waf itself only will use the top level APPNAME. Also, the 'waf dist' comment doesn't seem relevant - especially after this change - and is removed too. (Note: libs/evoral/wscript and libs/temporal/wscript still use APPNAME for other purposes.)
45 lines
1.2 KiB
Python
45 lines
1.2 KiB
Python
#!/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'
|
|
|
|
# Mandatory variables
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def options(opt):
|
|
autowaf.set_options(opt)
|
|
|
|
def configure(conf):
|
|
if conf.is_defined('USE_EXTERNAL_LIBS'):
|
|
autowaf.check_pkg(conf, 'ltc', uselib_store='LIBLTC', atleast_version=LIBLTC_LIB_VERSION, mandatory=True)
|
|
|
|
def build(bld):
|
|
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
|
return
|
|
bld (export_includes = ['ltc'],
|
|
name = 'libltc_includes'
|
|
)
|
|
|
|
bld.stlib (source = ['ltc.c', 'timecode.c', 'encoder.c', 'decoder.c'],
|
|
cflags = [ bld.env['compiler_flags_dict']['pic'] ],
|
|
includes = ['.'],
|
|
target = 'libltc',
|
|
use = 'libltc_includes'
|
|
)
|
|
|
|
def shutdown():
|
|
autowaf.shutdown()
|