6 # Version of this package (even if built as a child)
10 LIBPBD_VERSION
= "%s.%s.%s" % (MAJOR
, MINOR
, MICRO
)
12 # Library version (UNIX style major, minor, micro)
13 # major increment <=> incompatible changes
14 # minor increment <=> compatible changes (additions)
15 # micro increment <=> no interface changes
16 LIBPBD_LIB_VERSION
= '4.1.0'
18 # Variables for 'waf dist'
20 VERSION
= LIBPBD_VERSION
26 path_prefix
= 'libs/pbd/'
29 autowaf
.set_options(opt
)
32 autowaf
.build_version_files(path_prefix
+'pbd/version.h', path_prefix
+'version.cc',
33 'libpbd', MAJOR
, MINOR
, MICRO
)
34 autowaf
.configure(conf
)
35 conf
.check_tool('compiler_cxx')
36 autowaf
.check_pkg(conf
, 'libxml-2.0', uselib_store
='XML')
37 autowaf
.check_pkg(conf
, 'sigc++-2.0', uselib_store
='SIGCPP', atleast_version
='2.0')
38 if sys
.platform
!= 'darwin':
39 autowaf
.check_pkg(conf
, 'uuid', uselib_store
='UUID')
41 conf
.check(function_name
='getmntent', header_name
='mntent.h', define_name
='HAVE_GETMNTENT')
42 conf
.check(header_name
='execinfo.h', define_name
='HAVE_EXECINFO')
44 conf
.write_config_header('libpbd-config.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')
60 controllable_descriptor.cc
88 stateful_diff_command.cc
100 obj
.export_incdirs
= ['.']
104 obj
.uselib
= 'GLIBMM SIGCPP XML UUID'
105 obj
.vnum
= LIBPBD_LIB_VERSION
106 obj
.install_path
= os
.path
.join(bld
.env
['LIBDIR'], 'ardour3')
107 obj
.cxxflags
= ['-DPACKAGE="libpbd"']
109 if bld
.env
['build_target'] == 'x86_64':
110 obj
.cxxflags
+= [ '-DUSE_X86_64_ASM' ]
112 if bld
.env
['BUILD_TESTS'] and bld
.env
['HAVE_CPPUNIT']:
114 testobj
= bld
.new_task_gen('cxx', 'program')
118 test/scalar_properties.cc
120 testobj
.target
= 'run-tests'
121 testobj
.includes
= obj
.includes
+ ['test', '../pbd']
122 testobj
.uselib
= 'CPPUNIT XML'
123 testobj
.uselib_local
= 'libpbd'