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):
|
2024-10-18 16:33:52 -04:00
|
|
|
pass
|
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 = ''
|
2024-10-18 16:47:25 -04:00
|
|
|
obj.export_includes = ['CoreAudio/PublicUtility']
|
|
|
|
for src in libappleutility_sources:
|
|
|
|
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')
|