2 from waflib.extras import autowaf as autowaf
3 from waflib import TaskGen
7 # Version of this package (even if built as a child)
11 LIBFLUIDSYNTH_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
13 # Library version (UNIX style major, minor, micro)
14 # major increment <=> incompatible changes
15 # minor increment <=> compatible changes (additions)
16 # micro increment <=> no interface changes
17 LIBLTC_LIB_VERSION = '1.1.1'
19 # Variables for 'waf dist'
21 VERSION = LIBFLUIDSYNTH_VERSION
22 I18N_PACKAGE = 'libfluidsynth'
29 autowaf.set_options(opt)
32 if conf.is_defined('USE_EXTERNAL_LIBS'):
33 autowaf.check_pkg(conf, 'fluidsynth', uselib_store='LIBFLUIDSYNTH', atleast_version=1.1.6, mandatory=True)
35 conf.load('compiler_c')
36 autowaf.configure(conf)
39 if bld.is_defined('USE_EXTERNAL_LIBS'):
41 bld (export_includes = ['fluidsynth'],
42 name = 'libfluidsynth_includes'
46 'src/fluid_adsr_env.c',
48 'src/fluid_iir_filter.c',
52 'src/fluid_rvoice_dsp.c',
53 'src/fluid_rvoice_event.c',
54 'src/fluid_rvoice_mixer.c',
55 'src/fluid_defsfont.c',
66 'src/fluid_ringbuffer.c',
67 'src/fluid_settings.c',
70 cflags = [ '-fPIC', '-fvisibility=hidden' ],
71 includes = ['.', 'src/' ],
72 target = 'libfluidsynth',
73 use = 'libfluidsynth_includes',
75 defines = [ 'HAVE_CONFIG_H', 'DEFAULT_SOUNDFONT=""' ]