13
0
livetrax/libs/appleutility/wscript
Mads Kiilerich 6b61b03434 wscript: drop traces of shutdown() handling
autowaf has no real shutdown functionality anyway. The automatic
shutdown function that could have been called wouldn't work anyway, as
it takes an argument.

The only reason it doesn't fail is that the top level wscript has no
shutdown handling and doesn't recurse to other scripts, so it is all
dead code.
2023-10-15 10:47:16 -06:00

57 lines
1.8 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):
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)
def build(bld):
obj = bld(features = 'cxx cxxshlib')
obj.uselib = 'AUDIOUNITS OSX'
obj.source = ''
if bld.is_defined('COREAUDIO105'):
obj.export_includes = ['CoreAudio105']
obj.source += ' CoreAudio105/CAAudioFile.cpp'
for src in libappleutility_sources:
obj.source += ' CoreAudio105/' + src
else:
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')
def i18n(bld):
pass