cont’d work on the coreaudio backend & cleanup
[ardour.git] / libs / backends / coreaudio / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import os
4 import sys
5 import re
6
7 I18N_PACKAGE = 'coreaudio-backend'
8
9 # Mandatory variables
10 top = '.'
11 out = 'build'
12
13 def options(opt):
14     autowaf.set_options(opt)
15
16 def configure(conf):
17     autowaf.configure(conf)
18
19 def build(bld):
20     obj = bld(features = 'cxx cxxshlib')
21     obj.source = [ 'coreaudio_backend.cc',
22                    'coreaudio_pcmio.cc',
23                    'coremidi_io.cc'
24                  ]
25     obj.includes = ['.']
26     obj.name     = 'coreaudio_backend'
27     obj.target   = 'coreaudio_backend'
28     obj.use      = 'libardour libpbd'
29     obj.framework = [ 'CoreAudio', 'AudioToolbox', 'CoreServices', 'CoreMidi' ]
30     obj.install_path  = os.path.join(bld.env['LIBDIR'], 'backends')
31     obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"',
32                    'ARDOURBACKEND_DLL_EXPORTS', 'COREAUDIO_108'
33                   ]
34
35     # OSX 10.6 or later
36     obj.defines += ['COREAUDIO_108']