2011-09-29 15:17:54 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from waflib.extras import autowaf as autowaf
|
2015-10-17 20:46:58 -04:00
|
|
|
from waflib import Options
|
2009-12-01 21:26:37 -05:00
|
|
|
import os
|
|
|
|
|
|
|
|
libappleutility_sources = [
|
2011-03-16 12:32:56 -04:00
|
|
|
'AUOutputBL.cpp',
|
|
|
|
'AUParamInfo.cpp',
|
|
|
|
'CAAudioChannelLayout.cpp',
|
|
|
|
'CAAudioChannelLayoutObject.cpp',
|
|
|
|
'CAAudioUnit.cpp',
|
|
|
|
'CAAUParameter.cpp',
|
|
|
|
'CABufferList.cpp',
|
|
|
|
'CACFDictionary.cpp',
|
|
|
|
'CACFNumber.cpp',
|
|
|
|
'CACFString.cpp',
|
|
|
|
'CAComponent.cpp',
|
|
|
|
'CAComponentDescription.cpp',
|
|
|
|
'CADebugMacros.cpp',
|
|
|
|
'CAStreamBasicDescription.cpp',
|
|
|
|
'CAXException.cpp'
|
2009-12-01 21:26:37 -05:00
|
|
|
]
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
2022-01-25 11:43:36 -05:00
|
|
|
pass
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2009-12-01 21:26:37 -05:00
|
|
|
def configure(conf):
|
2015-10-18 17:19:52 -04:00
|
|
|
if conf.env['build_target'] in ['panther', 'tiger', 'leopard'] or (Options.options.ppc and conf.env['build_target'] == 'snowleopard'):
|
|
|
|
conf.env.append_value ('CFLAGS', '-DCOREAUDIO105')
|
|
|
|
conf.env.append_value ('CXXFLAGS', '-DCOREAUDIO105')
|
|
|
|
conf.define ('COREAUDIO105', 1)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2009-12-01 21:26:37 -05:00
|
|
|
def build(bld):
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'cxx cxxshlib')
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.uselib = 'AUDIOUNITS OSX'
|
2022-01-25 14:43:15 -05:00
|
|
|
obj.source = ''
|
2015-10-17 20:46:58 -04:00
|
|
|
if bld.is_defined('COREAUDIO105'):
|
|
|
|
obj.export_includes = ['CoreAudio105']
|
2022-01-25 14:43:15 -05:00
|
|
|
obj.source += ' CoreAudio105/CAAudioFile.cpp'
|
2015-10-17 20:46:58 -04:00
|
|
|
for src in libappleutility_sources:
|
2022-01-25 14:43:15 -05:00
|
|
|
obj.source += ' CoreAudio105/' + src
|
2015-10-17 20:46:58 -04:00
|
|
|
else:
|
|
|
|
obj.export_includes = ['CoreAudio/PublicUtility']
|
|
|
|
for src in libappleutility_sources:
|
2022-01-25 14:43:15 -05:00
|
|
|
obj.source += ' CoreAudio/PublicUtility/' + src
|
2015-10-17 20:46:58 -04:00
|
|
|
|
2014-01-17 09:52:13 -05:00
|
|
|
# apple did not write this library with full symbol export control
|
|
|
|
# so we need to override any visibility default.
|
2014-01-17 13:10:41 -05:00
|
|
|
autowaf.ensure_visible_symbols (obj, True)
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.includes = ['.']
|
|
|
|
obj.name = 'libappleutility'
|
|
|
|
obj.target = 'appleutility'
|
|
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'appleutility')
|
2009-12-01 21:26:37 -05:00
|
|
|
|
|
|
|
def i18n(bld):
|
2011-04-22 18:15:21 -04:00
|
|
|
pass
|