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')
43 conf
.check(header_name
='unistd.h', define_name
='HAVE_UNISTD')
45 conf
.write_config_header('libpbd-config.h')
48 autowaf
.check_header(conf
, 'boost/shared_ptr.hpp')
49 autowaf
.check_header(conf
, 'boost/weak_ptr.hpp')
53 obj
= bld
.new_task_gen('cxx', 'shlib')
61 controllable_descriptor.cc
91 stateful_diff_command.cc
103 obj
.export_incdirs
= ['.']
107 obj
.uselib
= 'GLIBMM SIGCPP XML UUID'
108 obj
.vnum
= LIBPBD_LIB_VERSION
109 obj
.install_path
= os
.path
.join(bld
.env
['LIBDIR'], 'ardour3')
110 obj
.cxxflags
= ['-DPACKAGE="libpbd"']
112 if bld
.env
['build_target'] == 'x86_64':
113 obj
.cxxflags
+= [ '-DUSE_X86_64_ASM' ]
115 if bld
.env
['BUILD_TESTS'] and bld
.env
['HAVE_CPPUNIT']:
117 testobj
= bld
.new_task_gen('cxx', 'program')
121 test/scalar_properties.cc
123 testobj
.target
= 'run-tests'
124 testobj
.includes
= obj
.includes
+ ['test', '../pbd']
125 testobj
.uselib
= 'CPPUNIT XML'
126 testobj
.uselib_local
= 'libpbd'