2 from waflib.extras import autowaf as autowaf
6 # Version of this package (even if built as a child)
7 LIBTAGLIB_VERSION = '0.0.0'
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'
15 # Variables for 'waf dist'
17 VERSION = LIBTAGLIB_VERSION
24 autowaf.set_options(opt)
27 if conf.is_defined('USE_EXTERNAL_LIBS'):
28 autowaf.check_pkg(conf, 'taglib', uselib_store='TAGLIB', atleast_version="1.4", mandatory=True)
30 conf.load('compiler_cxx')
31 autowaf.configure(conf)
34 if bld.is_defined('USE_EXTERNAL_LIBS'):
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')
72 obj.export_includes = ['.', 'taglib', 'taglib/toolkit']
73 obj.includes = include_dirs
74 obj.name = 'libtaglib'
76 obj.vnum = LIBTAGLIB_LIB_VERSION
77 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')