#!/usr/bin/env python
import autowaf
import glob
+import os
# Version of this package (even if built as a child)
LIBTAGLIB_VERSION = '0.0.0'
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/taglib/'
+
def set_options(opt):
autowaf.set_options(opt)
def configure(conf):
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
def build(bld):
# Library
obj = bld.new_task_gen('cxx', 'shlib')
- prefix = 'libs/taglib/'
- sources = glob.glob(prefix + 'taglib/*.cpp')
- sources += glob.glob(prefix + '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')
+ sources = glob.glob(path_prefix + 'taglib/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/flac/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/mpc/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/mpeg/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/mpeg/id3v1/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/mpeg/id3v2/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/mpeg/id3v2/frames/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/ogg/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/ogg/vorbis/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/ogg/speex/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/ogg/flac/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/trueaudio/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/wavpack/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/ape/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/toolkit/*.cpp')
obj.source = []
for i in sources:
- obj.source += [ i.replace(prefix, '') ]
-
+ obj.source += [ i.replace(path_prefix, '') ]
+
include_dirs = '''
taglib
taglib/toolkit
obj.name = 'libtaglib'
obj.target = 'taglib'
obj.vnum = LIBTAGLIB_LIB_VERSION
- obj.install_path = ''
-
+ obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
+
def shutdown():
autowaf.shutdown()