13
0
livetrax/libs/auscan/wscript
Mads Kiilerich d220f477ed wscript: drop unused "mandatory variables" 'top' and 'out' in libs
Variables by these names are only used from the local wscript and when
running "waf configure", which already for other reasons only can run at
the top-level.

These variables are thus not mandatory and not used.
2023-09-17 07:34:55 -06:00

31 lines
1.1 KiB
Python

#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
# needed for code used from libardour
I18N_PACKAGE = 'ardour'
def options(opt):
autowaf.set_options(opt)
def configure(conf):
pass
def build(bld):
if bld.is_defined('AUDIOUNIT_SUPPORT'):
obj = bld (features = 'cxx c cxxprogram')
obj.source = 'au-scanner.cc'
obj.target = 'ardour-au-scanner'
obj.includes = [ '../pbd/', '../ardour/', '..' ]
obj.defines = [
'AU_SCANNER_APP',
'VERSIONSTRING="' + str(bld.env['VERSION']) + '"',
'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"',
'LIBARDOUR="' + bld.env['lwrcase_dirname'] + '"',
'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
]
obj.use = [ 'libpbd', 'libappleutility', 'libtemporal', 'libevoral' ]
obj.uselib = 'GIOMM DL UUID ARCHIVE CURL XML COREAUDIO AUDIOUNITS OSX'
obj.install_path = os.path.join(bld.env['LIBDIR'])
obj.cxxflags = ['-Wno-deprecated-declarations']