2008-06-02 17:41:35 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
2008-12-12 09:43:24 -05:00
|
|
|
appleutility_files = [ glob.glob('*.cpp') + glob.glob('*.c') + glob.glob('*.C') ]
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
Import('env install_prefix')
|
2008-09-10 11:03:30 -04:00
|
|
|
appleutility = env.Clone()
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
appleutility.Append(LINKFLAGS='-framework AudioToolbox')
|
|
|
|
appleutility.Append(LINKFLAGS='-framework AudioUnit')
|
|
|
|
appleutility.Append(LINKFLAGS='-framework CoreFoundation')
|
|
|
|
appleutility.Append(LINKFLAGS='-framework CoreServices')
|
|
|
|
|
|
|
|
libappleutility = appleutility.SharedLibrary('appleutility', appleutility_files)
|
|
|
|
if appleutility['COREAUDIO']:
|
|
|
|
Default(libappleutility)
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libappleutility))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'], ['SConscript'] + appleutility_files + glob.glob('*.h') ))
|