2014-02-24 13:49:58 -05:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
hardour_sources = [
|
|
|
|
'load_session.cc',
|
|
|
|
'misc.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
def options(opt):
|
2022-01-25 11:43:36 -05:00
|
|
|
pass
|
2014-02-24 13:49:58 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2022-01-23 16:46:10 -05:00
|
|
|
pass
|
2014-02-24 13:49:58 -05:00
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
# just the normal executable version of the GTK GUI
|
|
|
|
obj = bld (features = 'cxx c cxxprogram')
|
2014-03-01 16:17:58 -05:00
|
|
|
# this program does not do the whole hidden symbols thing
|
|
|
|
obj.cxxflags = [ '-fvisibility=default' ]
|
2014-02-24 13:49:58 -05:00
|
|
|
obj.source = hardour_sources
|
2014-07-13 08:36:11 -04:00
|
|
|
obj.target = 'hardour-' + str (bld.env['VERSION'])
|
2014-02-24 13:49:58 -05:00
|
|
|
obj.includes = ['.']
|
|
|
|
obj.use = [ 'libpbd',
|
|
|
|
'libardour',
|
|
|
|
'libardour_cp',
|
2017-09-24 12:03:54 -04:00
|
|
|
'libtemporal',
|
2014-02-24 13:49:58 -05:00
|
|
|
'libmidipp',
|
|
|
|
]
|
|
|
|
|
|
|
|
obj.defines = [
|
2014-07-13 08:36:11 -04:00
|
|
|
'VERSIONSTRING="' + str(bld.env['VERSION']) + '"',
|
2014-02-24 13:49:58 -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') + '"',
|
|
|
|
]
|
2014-04-28 21:18:02 -04:00
|
|
|
obj.install_path = bld.env['LIBDIR']
|
2020-02-13 18:20:45 -05:00
|
|
|
obj.uselib = 'UUID FLAC FONTCONFIG GLIBMM GIOMM GTHREAD OGG CURL DL XML'
|
|
|
|
obj.uselib += ' AUDIOUNITS OSX'
|
|
|
|
obj.uselib += ' FFTW3F LO TAGLIB LILV RUBBERBAND AUBIO LRDF ARCHIVE VAMPSDK VAMPHOSTSDK'
|
|
|
|
|
|
|
|
if bld.is_defined('HAVE_SUIL'):
|
|
|
|
obj.uselib += ' SUIL'
|
2014-02-24 13:49:58 -05:00
|
|
|
|
2023-05-04 15:31:13 -04:00
|
|
|
if bld.is_defined('HAVE_USB'):
|
|
|
|
obj.uselib += ' USB'
|
|
|
|
|
2014-02-24 13:49:58 -05:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
obj.uselib += ' AUDIOUNITS OSX'
|
|
|
|
obj.use += ' libappleutility'
|
|
|
|
obj.includes += ['../libs']
|
|
|
|
|
|
|
|
if bld.env['build_target'] == 'mingw':
|
2014-02-24 17:32:35 -05:00
|
|
|
if bld.env['DEBUG'] == False:
|
2014-02-24 13:49:58 -05:00
|
|
|
obj.linkflags = ['-mwindows']
|
|
|
|
|
|
|
|
if bld.is_defined('NEED_INTL'):
|
|
|
|
obj.linkflags = ' -lintl'
|