2010-12-13 15:46:07 -05:00
|
|
|
#!/usr/bin/env python
|
2011-09-29 15:17:54 -04:00
|
|
|
from waflib.extras import autowaf as autowaf
|
2011-09-29 15:58:05 -04:00
|
|
|
from waflib import Options
|
2010-12-13 15:46:07 -05:00
|
|
|
import os
|
|
|
|
|
|
|
|
# Mandatory variables
|
2011-09-29 15:17:54 -04:00
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
2010-12-13 15:46:07 -05:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.set_options(opt)
|
2010-12-13 15:46:07 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2011-09-29 15:58:05 -04:00
|
|
|
conf.load('compiler_cxx')
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.configure(conf)
|
2010-12-13 15:46:07 -05:00
|
|
|
|
|
|
|
def build(bld):
|
2014-01-12 11:33:58 -05:00
|
|
|
bld.shlib (
|
2013-10-18 11:08:53 -04:00
|
|
|
source = [ 'src/time.cc', 'src/bbt_time.cc' ],
|
2014-06-03 09:39:34 -04:00
|
|
|
name = 'libtimecode',
|
|
|
|
target = 'timecode',
|
2014-01-12 11:33:58 -05:00
|
|
|
includes = ['.'],
|
|
|
|
export_includes = ['.'],
|
2015-01-08 10:57:46 -05:00
|
|
|
defines = [ 'LIBTIMECODE_DLL_EXPORTS' ],
|
|
|
|
install_path = bld.env['LIBDIR']
|
2013-10-18 11:08:53 -04:00
|
|
|
)
|
2010-12-13 15:46:07 -05:00
|
|
|
|
|
|
|
def shutdown():
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.shutdown()
|