2 from waflib.extras import autowaf as autowaf
5 # Version of this package (even if built as a child)
6 LIBPTFORMAT_VERSION = '0.0.0'
8 # Library version (UNIX style major, minor, micro)
9 # major increment <=> incompatible changes
10 # minor increment <=> compatible changes (additions)
11 # micro increment <=> no interface changes
12 LIBPTFORMAT_LIB_VERSION = '0.0.0'
14 # Variables for 'waf dist'
15 APPNAME = 'libptformat'
16 VERSION = LIBPTFORMAT_VERSION
17 I18N_PACKAGE = 'libptformat'
24 autowaf.set_options(opt)
27 conf.load('compiler_cxx')
28 autowaf.configure(conf)
32 if bld.is_defined ('INTERNAL_SHARED_LIBS'):
33 obj = bld.shlib (features = 'cxx cxxshlib', source = [ 'ptformat.cc' ])
34 obj.defines = [ 'LIBPTFORMAT_DLL_EXPORTS=1' ]
36 obj = bld.stdlib (source = [ 'ptformat.cc' ])
37 obj.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ]
38 obj.cflags = [ bld.env['compiler_flags_dict']['pic'] ]
40 obj.export_includes = ['.']
42 obj.name = 'libptformat'
43 obj.target = 'ptformat'
45 obj.vnum = LIBPTFORMAT_LIB_VERSION
46 obj.install_path = bld.env['LIBDIR']
47 obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]