move ticks per beat from Meter to Timecode::BBT_Time, add new constructor for BBT_Tim...
[ardour.git] / libs / timecode / wscript
1 #!/usr/bin/env python
2 import autowaf
3 import Options
4 import os
5
6 # Version of this package (even if built as a child)
7 TIMECODE_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 # Version history:
14 #   0.0.0 = 0,0,0
15 TIMECODE_LIB_VERSION = '0.0.0'
16
17 # Variables for 'waf dist'
18 APPNAME = 'timecode'
19 VERSION = TIMECODE_VERSION
20
21 # Mandatory variables
22 srcdir = '.'
23 blddir = 'build'
24
25 def set_options(opt):
26         autowaf.set_options(opt)
27
28 def configure(conf):
29         autowaf.configure(conf)
30
31         conf.check_tool('compiler_cxx')
32
33 def build(bld):
34         # Library
35         obj = bld.new_task_gen('cxx', 'shlib')
36         obj.source         = [ 'src/time.cc', 'src/bbt_time.cc' ]
37         obj.export_incdirs = ['.']
38         obj.includes       = ['.', './src']
39         obj.name           = 'libtimecode'
40         obj.target         = 'timecode'
41         obj.vnum           = TIMECODE_LIB_VERSION
42         obj.install_path   = os.path.join(bld.env['LIBDIR'], 'ardour3')
43
44 def shutdown():
45         autowaf.shutdown()
46