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