4 # Version of this package (even if built as a child)
5 LIBMIDIPP_VERSION = '0.0.0'
7 # Library version (UNIX style major, minor, micro)
8 # major increment <=> incompatible changes
9 # minor increment <=> compatible changes (additions)
10 # micro increment <=> no interface changes
11 LIBMIDIPP_LIB_VERSION = '4.1.0'
13 # Variables for 'waf dist'
15 VERSION = LIBMIDIPP_VERSION
22 autowaf.set_options(opt)
25 autowaf.configure(conf)
26 autowaf.check_tool(conf, 'compiler_cxx')
27 autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=True)
28 autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True)
29 autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0', mandatory=True)
30 autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML', mandatory=True)
31 autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0', mandatory=True)
33 conf.env.append_value('CXXFLAGS', '-DHAVE_WAFCONFIG_H')
34 conf.write_config_header('wafconfig.h')
37 conf.env['SYSMIDI'] == 'JACK MIDI'
38 conf.env.append_value('CXXFLAGS', '-DWITH_JACK_MIDI')
41 autowaf.check_header(conf, 'boost/shared_ptr.hpp', mandatory=True)
42 autowaf.check_header(conf, 'boost/weak_ptr.hpp', mandatory=True)
46 obj = bld.new_task_gen('cxx', 'shlib')
61 if bld.env['SYSMIDI'] == 'JACK MIDI':
62 obj.source += ' jack_midiport.cc '
63 elif bld.env['SYSMIDI'] == 'Alsa Sequencer':
64 obj.source += ' alsa_sequencer_midiport.cc '
65 elif bld.env['SYSMIDI'] == 'CoreMIDI':
66 obj.source += ' coremidi_midiport.cc '
67 obj.export_incdirs = ['.']
69 obj.name = 'libmidipp'
71 obj.uselib = 'GLIBMM SIGCPP XML JACK'
72 obj.uselib_local = 'libpbd libevoral'
73 obj.vnum = LIBMIDIPP_LIB_VERSION