2 from waflib.extras import autowaf as autowaf
3 from waflib import Options
8 I18N_PACKAGE = 'coreaudio-backend'
15 autowaf.set_options(opt)
18 autowaf.configure(conf)
19 if Options.options.ppc:
20 conf.env['build_arch'] = "ppc"
23 obj = bld(features = 'cxx cxxshlib')
24 obj.source = [ 'coreaudio_backend.cc',
29 obj.name = 'coreaudio_backend'
30 obj.target = 'coreaudio_backend'
31 obj.use = 'libardour libpbd'
32 obj.framework = [ 'CoreAudio', 'AudioToolbox', 'CoreServices' ]
33 if bld.env['build_target'] not in [ 'lion' ] and (not bld.env['build_arch'] == "ppc"):
34 obj.framework += [ 'CoreMidi' ]
36 obj.framework += [ 'CoreMIDI' ]
38 obj.install_path = os.path.join(bld.env['LIBDIR'], 'backends')
39 obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"',
40 'ARDOURBACKEND_DLL_EXPORTS'
43 # use new coreaudio API (the old one was deprecated in 10.6, yet still works)
44 # only use with OSX intel 10.6 or later, but for all OSX/PPC (<= 10.6)
45 if not bld.env['build_target'] in ['panther', 'tiger', 'leopard']:
46 if not (bld.env['build_target'] == 'snowleopard' and bld.env['build_arch'] == "ppc"):
47 obj.defines += ['COREAUDIO_108']