diff options
author | Robin Gareus <robin@gareus.org> | 2016-08-23 18:50:54 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-08-23 22:21:03 +0200 |
commit | ac05f050238d4b51c7b6a042e25cee59dc34da80 (patch) | |
tree | 868cbbe114171e9907ecb3f049c86257039fdb74 /libs/fluidsynth/wscript | |
parent | ac8617017ae94bf17cdd5b1f6e38e1434bcb2c54 (diff) |
Import libfluidsynth into the Ardour codebase
Diffstat (limited to 'libs/fluidsynth/wscript')
-rw-r--r-- | libs/fluidsynth/wscript | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/libs/fluidsynth/wscript b/libs/fluidsynth/wscript new file mode 100644 index 0000000000..6451ec829c --- /dev/null +++ b/libs/fluidsynth/wscript @@ -0,0 +1,79 @@ +#!/usr/bin/env python +from waflib.extras import autowaf as autowaf +from waflib import TaskGen +import os +import sys + +# Version of this package (even if built as a child) +MAJOR = '1' +MINOR = '6' +MICRO = '0' +LIBFLUIDSYNTH_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO) + +# Library version (UNIX style major, minor, micro) +# major increment <=> incompatible changes +# minor increment <=> compatible changes (additions) +# micro increment <=> no interface changes +LIBLTC_LIB_VERSION = '1.1.1' + +# Variables for 'waf dist' +APPNAME = 'libltc' +VERSION = LIBFLUIDSYNTH_VERSION +I18N_PACKAGE = 'libfluidsynth' + +# Mandatory variables +top = '.' +out = 'build' + +def options(opt): + autowaf.set_options(opt) + +def configure(conf): + if conf.is_defined('USE_EXTERNAL_LIBS'): + autowaf.check_pkg(conf, 'fluidsynth', uselib_store='LIBFLUIDSYNTH', atleast_version=LIBFLUIDSYNTH_LIB_VERSION, mandatory=True) + else: + conf.load('compiler_c') + autowaf.configure(conf) + +def build(bld): + if bld.is_defined('USE_EXTERNAL_LIBS'): + return + bld (export_includes = ['fluidsynth'], + name = 'libfluidsynth_includes' + ) + bld.stlib (source = [ + 'src/fluid_midi.c', + 'src/fluid_adsr_env.c', + 'src/fluid_chorus.c', + 'src/fluid_iir_filter.c', + 'src/fluid_lfo.c', + 'src/fluid_rev.c', + 'src/fluid_rvoice.c', + 'src/fluid_rvoice_dsp.c', + 'src/fluid_rvoice_event.c', + 'src/fluid_rvoice_mixer.c', + 'src/fluid_defsfont.c', + 'src/fluid_chan.c', + 'src/fluid_event.c', + 'src/fluid_gen.c', + 'src/fluid_mod.c', + 'src/fluid_synth.c', + 'src/fluid_tuning.c', + 'src/fluid_voice.c', + 'src/fluid_conv.c', + 'src/fluid_hash.c', + 'src/fluid_list.c', + 'src/fluid_ringbuffer.c', + 'src/fluid_settings.c', + 'src/fluid_sys.c' + ], + cflags = [ '-fPIC', '-fvisibility=hidden' ], + includes = ['.', 'src/' ], + target = 'libfluidsynth', + use = 'libfluidsynth_includes', + uselib = 'GLIB', + defines = [ 'HAVE_CONFIG_H', 'DEFAULT_SOUNDFONT=""' ] + ) + +def shutdown(): + autowaf.shutdown() |