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):
|
2013-10-18 11:08:53 -04:00
|
|
|
bld (export_includes = ['.'],
|
|
|
|
includes = ['.'],
|
2013-12-03 11:51:25 -05:00
|
|
|
name = 'libtimecode_includes'
|
2013-10-18 11:08:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
bld.stlib (cxxflags = [ '-fPIC' ],
|
|
|
|
source = [ 'src/time.cc', 'src/bbt_time.cc' ],
|
2013-12-03 11:51:25 -05:00
|
|
|
target = 'libtimecode',
|
|
|
|
use = 'libtimecode_includes'
|
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()
|