6 # Version of this package (even if built as a child)
10 LIBMIDIPP_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 LIBMIDIPP_LIB_VERSION
= '4.1.0'
18 # Variables for 'waf dist'
20 VERSION
= LIBMIDIPP_VERSION
26 path_prefix
= 'libs/midi++2/'
29 autowaf
.set_options(opt
)
32 autowaf
.build_version_files(path_prefix
+'midi++/version.h', path_prefix
+'version.cc',
33 'midipp', MAJOR
, MINOR
, MICRO
)
34 autowaf
.configure(conf
)
35 conf
.check_tool('compiler_cxx')
36 autowaf
.check_pkg(conf
, 'jack', uselib_store
='JACK', atleast_version
='0.118.2')
37 autowaf
.check_pkg(conf
, 'libxml-2.0', uselib_store
='XML')
38 autowaf
.check_pkg(conf
, 'sigc++-2.0', uselib_store
='SIGCPP', atleast_version
='2.0')
41 autowaf
.check_header(conf
, 'boost/shared_ptr.hpp')
42 autowaf
.check_header(conf
, 'boost/weak_ptr.hpp')
46 obj
= bld
.new_task_gen('cxx', 'shlib')
58 # everybody loves JACK
59 obj
.cxxflags
= [ '-DWITH_JACK_MIDI' ]
60 obj
.export_incdirs
= ['.']
61 obj
.includes
= ['.', '../surfaces/control_protocol']
62 obj
.name
= 'libmidipp'
64 obj
.uselib
= 'GLIBMM SIGCPP XML JACK OSX'
65 obj
.uselib_local
= 'libpbd libevoral libtimecode'
66 obj
.vnum
= LIBMIDIPP_LIB_VERSION
67 obj
.install_path
= os
.path
.join(bld
.env
['LIBDIR'], 'ardour3')