Merge branch 'master' into cairocanvas
[ardour.git] / libs / taglib / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import glob
4 import os
5
6 # Version of this package (even if built as a child)
7 LIBTAGLIB_VERSION = '0.0.0'
8
9 # Library version (UNIX style major, minor, micro)
10 # major increment <=> incompatible changes
11 # minor increment <=> compatible changes (additions)
12 # micro increment <=> no interface changes
13 LIBTAGLIB_LIB_VERSION = '0.0.0'
14
15 # Variables for 'waf dist'
16 APPNAME = 'libtaglib'
17 VERSION = LIBTAGLIB_VERSION
18
19 # Mandatory variables
20 top = '.'
21 out = 'build'
22
23 def options(opt):
24     autowaf.set_options(opt)
25
26 def configure(conf):
27     conf.load('compiler_cxx')
28     autowaf.configure(conf)
29
30 def build(bld):
31     # Library
32     obj = bld(features = 'cxx cxxshlib')
33     sources = bld.path.ant_glob('taglib/*.cpp')
34     sources += bld.path.ant_glob('taglib/flac/*.cpp')
35     sources += bld.path.ant_glob('taglib/mpc/*.cpp')
36     sources += bld.path.ant_glob('taglib/mpeg/*.cpp')
37     sources += bld.path.ant_glob('taglib/mpeg/id3v1/*.cpp')
38     sources += bld.path.ant_glob('taglib/mpeg/id3v2/*.cpp')
39     sources += bld.path.ant_glob('taglib/mpeg/id3v2/frames/*.cpp')
40     sources += bld.path.ant_glob('taglib/ogg/*.cpp')
41     sources += bld.path.ant_glob('taglib/ogg/vorbis/*.cpp')
42     sources += bld.path.ant_glob('taglib/ogg/speex/*.cpp')
43     sources += bld.path.ant_glob('taglib/ogg/flac/*.cpp')
44     sources += bld.path.ant_glob('taglib/trueaudio/*.cpp')
45     sources += bld.path.ant_glob('taglib/wavpack/*.cpp')
46     sources += bld.path.ant_glob('taglib/ape/*.cpp')
47     sources += bld.path.ant_glob('taglib/toolkit/*.cpp')
48     obj.source = sources
49
50     include_dirs = '''
51             taglib
52             taglib/toolkit
53             taglib/flac
54             taglib/ape
55             taglib/mpc
56             taglib/mpeg
57             taglib/mpeg/id3v1
58             taglib/mpeg/id3v2
59             taglib/wavpack
60             taglib/trueaudio
61             taglib/ogg
62             taglib/ogg/vorbis
63             taglib/ogg/speex
64             taglib/ogg/flac
65     '''.split()
66     obj.export_includes = ['.', 'taglib', 'taglib/toolkit']
67     obj.includes     = include_dirs
68     obj.name         = 'libtaglib'
69     obj.target       = 'taglib'
70     obj.vnum         = LIBTAGLIB_LIB_VERSION
71     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
72
73 def shutdown():
74     autowaf.shutdown()