13
0
livetrax/libs/appleutility/wscript
Mads Kiilerich 3228a61e62 wscript: the i18n worker functions do not define the i18n waf commands
Rename the worker functions to make it clear that their name in this
case isn't magic. These functions "are not" the waf commands. It is the
custom build context class definitions that define the i18n commands ...
which will invoke these top level worker functions which in turn invoke
the others recursively.

The bare printing of the build environment in the top level i18n command
seems to be old debug code that safely can be removed.
2024-10-20 19:52:14 -06:00

45 lines
1.3 KiB
Python

#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
from waflib import Options
import os
libappleutility_sources = [
'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'
]
def options(opt):
pass
def configure(conf):
pass
def build(bld):
obj = bld(features = 'cxx cxxshlib')
obj.uselib = 'AUDIOUNITS OSX'
obj.source = ''
obj.export_includes = ['CoreAudio/PublicUtility']
for src in libappleutility_sources:
obj.source += ' CoreAudio/PublicUtility/' + src
# apple did not write this library with full symbol export control
# so we need to override any visibility default.
autowaf.ensure_visible_symbols (obj, True)
obj.includes = ['.']
obj.name = 'libappleutility'
obj.target = 'appleutility'
obj.install_path = os.path.join(bld.env['LIBDIR'], 'appleutility')