2016-01-30 11:26:14 -05:00
|
|
|
#!/usr/bin/env python
|
2022-04-09 09:17:54 -04:00
|
|
|
import waflib.Utils as Utils
|
2016-01-30 11:26:14 -05:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
def options(opt):
|
2022-01-25 11:43:36 -05:00
|
|
|
pass
|
2016-01-30 11:26:14 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2020-01-20 17:08:11 -05:00
|
|
|
conf.check_cc(
|
2016-01-30 11:26:14 -05:00
|
|
|
header_name='stdio.h readline/readline.h',
|
|
|
|
lib='readline',
|
|
|
|
uselib_store='READLINE',
|
2020-02-19 12:19:01 -05:00
|
|
|
define_name='HAVE_READLINE',
|
2016-01-30 11:26:14 -05:00
|
|
|
mandatory=False)
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
if not bld.is_defined('HAVE_READLINE'):
|
2022-01-25 14:43:15 -05:00
|
|
|
return
|
2016-01-30 11:26:14 -05:00
|
|
|
|
2019-06-04 09:15:21 -04:00
|
|
|
# commandline luasession wrapper script
|
|
|
|
if bld.env['build_target'] != 'mingw':
|
|
|
|
obj = bld(features = 'subst')
|
|
|
|
obj.source = 'ardour-lua.sh.in'
|
2022-10-15 18:59:21 -04:00
|
|
|
obj.target = 'ardour' + bld.env['MAJOR'] + '-lua'
|
2019-06-04 09:15:21 -04:00
|
|
|
obj.chmod = Utils.O755
|
|
|
|
obj.install_path = bld.env['BINDIR']
|
|
|
|
obj.LIBDIR = os.path.normpath(bld.env['DLLDIR'])
|
|
|
|
obj.DATADIR = os.path.normpath(bld.env['DATADIR'])
|
|
|
|
obj.CONFDIR = os.path.normpath(bld.env['CONFDIR'])
|
2016-01-30 11:26:14 -05:00
|
|
|
|
|
|
|
# commandline luasession
|
|
|
|
obj = bld (features = 'cxx c cxxprogram')
|
|
|
|
obj.source = 'luasession.cc'
|
|
|
|
obj.target = 'luasession'
|
|
|
|
obj.includes = ['../libs']
|
2022-07-01 17:50:09 -04:00
|
|
|
obj.use = ['liblua',
|
2016-01-30 11:26:14 -05:00
|
|
|
'libpbd',
|
|
|
|
'libardour',
|
|
|
|
'libardour_cp',
|
2017-09-24 12:03:54 -04:00
|
|
|
'libtemporal',
|
2016-01-30 11:26:14 -05:00
|
|
|
'libmidipp',
|
|
|
|
]
|
|
|
|
obj.defines = [
|
2022-10-15 08:05:36 -04:00
|
|
|
'VERSIONSTRING="' + bld.env['VERSION'] + '"',
|
2016-01-30 11:26:14 -05:00
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
|
|
|
'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
|
|
|
|
'PACKAGE="' + "ARDOURUTILS" + '"',
|
|
|
|
]
|
|
|
|
|
2020-02-13 18:20:45 -05:00
|
|
|
obj.uselib = 'UUID FLAC FONTCONFIG GLIBMM GIOMM GTHREAD OGG CURL DL XML'
|
2016-01-30 11:26:14 -05:00
|
|
|
obj.uselib += ' AUDIOUNITS OSX LO '
|
|
|
|
obj.uselib += ' READLINE '
|
2020-02-13 18:20:45 -05:00
|
|
|
obj.uselib += ' FFTW3F LO TAGLIB LILV RUBBERBAND AUBIO LRDF ARCHIVE VAMPSDK VAMPHOSTSDK'
|
|
|
|
|
|
|
|
if bld.is_defined('HAVE_SUIL'):
|
2023-12-13 00:45:00 -05:00
|
|
|
if bld.is_defined('YTK'):
|
|
|
|
obj.use += [ 'libsuil' ]
|
|
|
|
else:
|
|
|
|
obj.uselib += ' SUIL'
|
2016-01-30 11:26:14 -05:00
|
|
|
|
2023-05-04 15:31:13 -04:00
|
|
|
if bld.is_defined('HAVE_USB'):
|
|
|
|
obj.uselib += ' USB'
|
|
|
|
|
2016-01-30 11:26:14 -05:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
obj.uselib += ' AUDIOUNITS OSX'
|
|
|
|
obj.use += ' libappleutility'
|
|
|
|
|
2021-06-08 20:43:03 -04:00
|
|
|
if bld.env['build_target'] == 'mingw':
|
|
|
|
obj.linkflags = ['-mwindows']
|
2016-01-30 11:26:14 -05:00
|
|
|
|
|
|
|
if bld.is_defined('NEED_INTL'):
|
|
|
|
obj.linkflags = ' -lintl'
|
|
|
|
|
2019-06-04 09:15:21 -04:00
|
|
|
if bld.env['build_target'] == 'mingw':
|
|
|
|
obj.install_path = bld.env['BINDIR']
|
2022-10-15 18:59:21 -04:00
|
|
|
obj.target = 'ardour' + bld.env['MAJOR'] + '-lua'
|
2019-06-04 09:15:21 -04:00
|
|
|
else:
|
|
|
|
obj.install_path = bld.env['DLLDIR']
|