6 # Version of this package (even if built as a child)
7 EVORAL_VERSION = '0.0.0'
9 # Library version (UNIX style major, minor, micro)
10 # major increment <=> incompatible changes
11 # minor increment <=> compatible changes (additions)
12 # micro increment <=> no interface changes
15 EVORAL_LIB_VERSION = '0.0.0'
17 # Variables for 'waf dist'
19 VERSION = EVORAL_VERSION
26 autowaf.set_options(opt)
27 opt.add_option('--test', action='store_true', default=False, dest='build_tests',
28 help="Build unit tests")
31 autowaf.configure(conf)
32 conf.check_tool('compiler_cxx')
33 autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False)
34 autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2')
35 autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
36 autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0')
39 autowaf.check_header(conf, 'boost/shared_ptr.hpp')
40 autowaf.check_header(conf, 'boost/weak_ptr.hpp')
42 conf.env['BUILD_TESTS'] = Options.options.build_tests
44 autowaf.print_summary(conf)
45 autowaf.display_header('Evoral Configuration')
46 autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
51 #bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.h')
52 #bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.hpp')
55 #autowaf.build_pc(bld, 'EVORAL', EVORAL_VERSION, 'GLIBMM GTHREAD')
57 libsmf = bld.new_task_gen('cc', 'shlib')
60 src/libsmf/smf_decode.c
63 src/libsmf/smf_tempo.c
65 libsmf.export_incdirs = ['./src/libsmf']
66 libsmf.defines = 'SMF_VERSION="1.2"'
67 libsmf.includes = ['./src']
68 libsmf.name = 'libsmf'
70 libsmf.uselib = 'GLIB'
71 libsmf.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
74 obj = bld.new_task_gen('cxx', 'shlib')
87 obj.export_incdirs = ['.']
88 obj.includes = ['.', './src']
89 obj.name = 'libevoral'
91 obj.uselib = 'GLIBMM GTHREAD SMF'
92 obj.uselib_local = 'libsmf'
93 obj.vnum = EVORAL_LIB_VERSION
94 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
97 if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
98 obj = bld.new_task_gen('cxx', 'program')
100 test/SequenceTest.cpp
104 obj.includes = ['.', './src']
105 obj.uselib_local = 'libevoral'
106 obj.uselib = 'CPPUNIT'
107 obj.target = 'run-tests'
108 obj.install_path = ''