ardour/libs/auscan/wscript
Mads Kiilerich 2973e82a90 wscript: sanitize strings from fetch_*_revision_date early instead of applying str() all over
This can perhaps be simplified further when Python2 support is dropped.
2023-10-15 10:47:16 -06:00

30 lines
1.0 KiB
Python

#!/usr/bin/env python
import os
# needed for code used from libardour
I18N_PACKAGE = 'ardour'
def options(opt):
pass
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="' + bld.env['VERSION'] + '"',
'PACKAGE="' + I18N_PACKAGE + 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']