implement methods in TempoMap for walking a given distance along a tempo map and...
[ardour.git] / libs / taglib / wscript
index 12a707ab32fb8d506d522e7b5b1df7402784f9bd..8b15a78ed19b6c32aa0201b18aa7fea0b5943eeb 100644 (file)
@@ -1,6 +1,7 @@
 #!/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'
@@ -19,36 +20,37 @@ VERSION = LIBTAGLIB_VERSION
 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
@@ -70,8 +72,8 @@ def build(bld):
        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()