diff options
author | David Robillard <d@drobilla.net> | 2009-02-25 19:36:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-25 19:36:16 +0000 |
commit | 5fe34018143a49d084a8fcdabf7e66e4fac85026 (patch) | |
tree | 1eb1a0cd8f2b194609aff5236a5dc2eb38f4da57 /libs | |
parent | 5b9433f42f3646086d31b69f30ddcd8d8bd9f22f (diff) |
Waf building of taglib and vamp-sdk.
git-svn-id: svn://localhost/ardour2/branches/3.0@4660 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/taglib/wscript | 78 | ||||
-rw-r--r-- | libs/vamp-sdk/wscript | 53 |
2 files changed, 131 insertions, 0 deletions
diff --git a/libs/taglib/wscript b/libs/taglib/wscript new file mode 100644 index 0000000000..f463ff2ae4 --- /dev/null +++ b/libs/taglib/wscript @@ -0,0 +1,78 @@ +#!/usr/bin/env python +import autowaf +import glob + +# Version of this package (even if built as a child) +LIBTAGLIB_VERSION = '0.0.0' + +# Library version (UNIX style major, minor, micro) +# major increment <=> incompatible changes +# minor increment <=> compatible changes (additions) +# micro increment <=> no interface changes +LIBTAGLIB_LIB_VERSION = '0.0.0' + +# Variables for 'waf dist' +APPNAME = 'libtaglib' +VERSION = LIBTAGLIB_VERSION + +# Mandatory variables +srcdir = '.' +blddir = 'build' + +def set_options(opt): + autowaf.set_options(opt) + +def configure(conf): + autowaf.configure(conf) + autowaf.check_tool(conf, 'compiler_cxx') + conf.write_config_header('config.h') + +def build(bld): + # Library + obj = bld.new_task_gen('cxx', 'shlib') + prefix = 'libs/taglib/' + sources = glob.glob(prefix + 'taglib/*.cpp') + sources += glob.glob(prefix + 'libs//taglib/flac/*.cpp') + sources += glob.glob(prefix + 'taglib/mpc/*.cpp') + sources += glob.glob(prefix + 'taglib/mpeg/*.cpp') + sources += glob.glob(prefix + 'taglib/mpeg/id3v1/*.cpp') + sources += glob.glob(prefix + 'taglib/mpeg/id3v2/*.cpp') + sources += glob.glob(prefix + 'taglib/mpeg/id3v2/frames/*.cpp') + sources += glob.glob(prefix + 'taglib/ogg/*.cpp') + sources += glob.glob(prefix + 'taglib/ogg/vorbis/*.cpp') + sources += glob.glob(prefix + 'taglib/ogg/speex/*.cpp') + sources += glob.glob(prefix + 'taglib/ogg/flac/*.cpp') + sources += glob.glob(prefix + 'taglib/trueaudio/*.cpp') + sources += glob.glob(prefix + 'taglib/wavpack/*.cpp') + sources += glob.glob(prefix + 'taglib/ape/*.cpp') + sources += glob.glob(prefix + 'taglib/toolkit/*.cpp') + obj.source = [] + for i in sources: + obj.source += [ i.replace(prefix, '') ] + + include_dirs = ''' + taglib + taglib/toolkit + taglib/flac + taglib/ape + taglib/mpc + taglib/mpeg + taglib/mpeg/id3v1 + taglib/mpeg/id3v2 + taglib/wavpack + taglib/trueaudio + taglib/ogg + taglib/ogg/vorbis + taglib/ogg/speex + taglib/ogg/flac + '''.split() + obj.export_incdirs = include_dirs + obj.includes = include_dirs + obj.name = 'libtaglib' + obj.target = 'taglib' + obj.vnum = LIBTAGLIB_LIB_VERSION + obj.install_path = '' + +def shutdown(): + autowaf.shutdown() + diff --git a/libs/vamp-sdk/wscript b/libs/vamp-sdk/wscript new file mode 100644 index 0000000000..bbbae61308 --- /dev/null +++ b/libs/vamp-sdk/wscript @@ -0,0 +1,53 @@ +#!/usr/bin/env python +import autowaf + +# Version of this package (even if built as a child) +LIBVAMP_VERSION = '0.0.0' + +# Library version (UNIX style major, minor, micro) +# major increment <=> incompatible changes +# minor increment <=> compatible changes (additions) +# micro increment <=> no interface changes +LIBVAMP_LIB_VERSION = '0.0.0' + +# Variables for 'waf dist' +APPNAME = 'libvamp' +VERSION = LIBVAMP_VERSION + +# Mandatory variables +srcdir = '.' +blddir = 'build' + +def set_options(opt): + autowaf.set_options(opt) + +def configure(conf): + autowaf.configure(conf) + autowaf.check_tool(conf, 'compiler_cxx') + autowaf.check_pkg(conf, 'fftw3', uselib_store='FFTW3', mandatory=True) + autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True) + conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3') + +def build(bld): + # Library + obj = bld.new_task_gen('cxx', 'shlib') + obj.source = ''' + vamp-sdk/PluginHostAdapter.cpp + vamp-sdk/hostext/PluginBufferingAdapter.cpp + vamp-sdk/hostext/PluginChannelAdapter.cpp + vamp-sdk/hostext/PluginInputDomainAdapter.cpp + vamp-sdk/hostext/PluginLoader.cpp + vamp-sdk/hostext/PluginWrapper.cpp + vamp-sdk/RealTime.cpp + ''' + obj.export_incdirs = ['.'] + obj.includes = ['.'] + obj.name = 'libvamp' + obj.target = 'vamp' + obj.uselib = 'FFTW3 FFTW3F' + obj.vnum = LIBVAMP_LIB_VERSION + obj.install_path = '' + +def shutdown(): + autowaf.shutdown() + |