2021-05-23 20:25:36 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
|
|
|
|
# needed for code used from libardour
|
|
|
|
I18N_PACKAGE = 'ardour'
|
|
|
|
|
|
|
|
def options(opt):
|
2022-01-25 11:43:36 -05:00
|
|
|
pass
|
2021-05-23 20:25:36 -04:00
|
|
|
|
|
|
|
def configure(conf):
|
2022-01-22 16:09:13 -05:00
|
|
|
pass
|
2021-05-23 20:25:36 -04:00
|
|
|
|
|
|
|
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',
|
2022-10-15 08:05:36 -04:00
|
|
|
'VERSIONSTRING="' + bld.env['VERSION'] + '"',
|
2021-05-23 20:25:36 -04:00
|
|
|
'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']
|