add 0.5 second sleep after closing JACK connection so that next startup/connect is...
[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     if conf.is_defined('USE_EXTERNAL_LIBS'):
28         autowaf.check_pkg(conf, 'taglib', uselib_store='TAGLIB', atleast_version="1.4", mandatory=True)
29     else:
30         conf.load('compiler_cxx')
31         autowaf.configure(conf)
32
33 def build(bld):
34     if bld.is_defined('USE_EXTERNAL_LIBS'):
35         return
36
37     # Library
38     obj = bld(features = 'cxx cxxshlib')
39     sources = bld.path.ant_glob('taglib/*.cpp')
40     sources += bld.path.ant_glob('taglib/flac/*.cpp')
41     sources += bld.path.ant_glob('taglib/mpc/*.cpp')
42     sources += bld.path.ant_glob('taglib/mpeg/*.cpp')
43     sources += bld.path.ant_glob('taglib/mpeg/id3v1/*.cpp')
44     sources += bld.path.ant_glob('taglib/mpeg/id3v2/*.cpp')
45     sources += bld.path.ant_glob('taglib/mpeg/id3v2/frames/*.cpp')
46     sources += bld.path.ant_glob('taglib/ogg/*.cpp')
47     sources += bld.path.ant_glob('taglib/ogg/vorbis/*.cpp')
48     sources += bld.path.ant_glob('taglib/ogg/speex/*.cpp')
49     sources += bld.path.ant_glob('taglib/ogg/flac/*.cpp')
50     sources += bld.path.ant_glob('taglib/trueaudio/*.cpp')
51     sources += bld.path.ant_glob('taglib/wavpack/*.cpp')
52     sources += bld.path.ant_glob('taglib/ape/*.cpp')
53     sources += bld.path.ant_glob('taglib/toolkit/*.cpp')
54     obj.source = sources
55
56     include_dirs = '''
57             taglib
58             taglib/toolkit
59             taglib/flac
60             taglib/ape
61             taglib/mpc
62             taglib/mpeg
63             taglib/mpeg/id3v1
64             taglib/mpeg/id3v2
65             taglib/wavpack
66             taglib/trueaudio
67             taglib/ogg
68             taglib/ogg/vorbis
69             taglib/ogg/speex
70             taglib/ogg/flac
71     '''.split()
72     obj.export_includes = ['.', 'taglib', 'taglib/toolkit']
73     obj.includes     = include_dirs
74     obj.name         = 'libtaglib'
75     obj.target       = 'taglib'
76     obj.vnum         = LIBTAGLIB_LIB_VERSION
77     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
78
79 def shutdown():
80     autowaf.shutdown()