2 from waflib.extras import autowaf as autowaf
3 from waflib import Options
10 # Version of this package (even if built as a child)
14 TEMPORAL_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
16 # Library version (UNIX style major, minor, micro)
17 # major increment <=> incompatible changes
18 # minor increment <=> compatible changes (additions)
19 # micro increment <=> no interface changes
20 TEMPORAL_LIB_VERSION = '0.0.0'
22 # Variables for 'waf dist'
24 VERSION = TEMPORAL_VERSION
25 I18N_PACKAGE = 'libtemporal'
27 temporal_sources = [ 'time.cc', 'bbt_time.cc' ]
30 autowaf.set_options(opt)
33 conf.load('compiler_cxx')
34 autowaf.configure(conf)
38 if bld.is_defined ('INTERNAL_SHARED_LIBS'):
39 obj = bld.shlib(features = 'cxx cxxshlib', source=temporal_sources)
40 obj.defines = [ 'LIBTEMPORAL_DLL_EXPORTS=1' ]
42 obj = bld.stlib(features = 'cxx cxxstlib', source=temporal_sources)
43 obj.cxxflags = [ '-fPIC' ]
44 obj.cflags = [ '-fPIC' ]
47 obj.export_includes = ['.']
49 obj.name = 'libtemporal'
50 obj.target = 'temporal'
51 obj.vnum = TEMPORAL_LIB_VERSION
52 obj.install_path = bld.env['LIBDIR']
53 obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]