4 # Version of this package (even if built as a child)
8 LIBPBD_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
10 # Library version (UNIX style major, minor, micro)
11 # major increment <=> incompatible changes
12 # minor increment <=> compatible changes (additions)
13 # micro increment <=> no interface changes
14 LIBPBD_LIB_VERSION = '4.1.0'
16 # Variables for 'waf dist'
18 VERSION = LIBPBD_VERSION
24 path_prefix = 'libs/pbd/'
27 autowaf.set_options(opt)
30 autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc',
31 'libpbd', MAJOR, MINOR, MICRO)
32 autowaf.configure(conf)
33 autowaf.check_tool(conf, 'compiler_cxx')
34 autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
35 autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
36 autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
38 conf.check(function_name='getmntent', header_name='mntent.h', define_name='HAVE_GETMNTENT')
40 # This must be defined for libpbd only, it breaks ardour
41 conf.check(header_name='execinfo.h', define_name='PBD_HAVE_EXECINFO')
43 conf.env.append_value('CXXFLAGS', '-DHAVE_WAFCONFIG_H')
44 conf.write_config_header('wafconfig.h')
47 autowaf.check_header(conf, 'boost/shared_ptr.hpp')
48 autowaf.check_header(conf, 'boost/weak_ptr.hpp')
52 obj = bld.new_task_gen('cxx', 'shlib')
86 obj.export_incdirs = ['.']
90 obj.uselib = 'GLIBMM SIGCPP XML UUID'
91 obj.vnum = LIBPBD_LIB_VERSION
93 obj.cxxflags = '-DPACKAGE=\\\"libpbd\\\"'
94 if bld.env['PBD_HAVE_EXECINFO']:
95 obj.cxxflags += ' -DHAVE_EXECINFO '