Only show user-presets in favorite sidebar
[ardour.git] / libs / temporal / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 from waflib import Options
4 import os
5
6 # Mandatory variables
7 top = '.'
8 out = 'build'
9
10 # Version of this package (even if built as a child)
11 MAJOR = '0'
12 MINOR = '0'
13 MICRO = '0'
14 TEMPORAL_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
15
16 # Library version (UNIX style major, minor, micro)
17 # major increment <=> incompatible changes
18 # minor increment <=> compatible changes (additions)
19 # micro increment <=> no interface changes
20 TEMPORAL_LIB_VERSION = '0.0.0'
21
22 # Variables for 'waf dist'
23 APPNAME = 'temporal'
24 VERSION = TEMPORAL_VERSION
25 I18N_PACKAGE = 'libtemporal'
26
27 temporal_sources = [ 'time.cc', 'bbt_time.cc' ]
28
29 def options(opt):
30     autowaf.set_options(opt)
31
32 def configure(conf):
33     conf.load('compiler_cxx')
34     autowaf.configure(conf)
35
36 def build(bld):
37     # Library
38     if bld.is_defined ('INTERNAL_SHARED_LIBS'):
39         obj = bld.shlib(features = 'cxx cxxshlib', source=temporal_sources)
40         obj.defines      = [ 'LIBTEMPORAL_DLL_EXPORTS=1' ]
41     else:
42         obj = bld.stlib(features = 'cxx cxxstlib', source=temporal_sources)
43         obj.cxxflags = [  bld.env['compiler_flags_dict']['pic'] ]
44         obj.cflags = [ bld.env['compiler_flags_dict']['pic'] ]
45         obj.defines      = [ ]
46
47     obj.export_includes = ['.']
48     obj.includes     = ['.']
49     obj.name         = 'libtemporal'
50     obj.target       = 'temporal'
51     obj.vnum         = TEMPORAL_LIB_VERSION
52     obj.install_path = bld.env['LIBDIR']
53     obj.defines      += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
54
55 def shutdown():
56     autowaf.shutdown()