mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
more changes to wscript files to catch up with waf 1.6 and fix OS X issues
git-svn-id: svn://localhost/ardour2/branches/3.0@10176 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
050d3ab45e
commit
a6d7098797
10 changed files with 40 additions and 35 deletions
|
|
@ -336,7 +336,7 @@ def build_color_scheme(path, prefix):
|
||||||
def build(bld):
|
def build(bld):
|
||||||
# GTK front-end; if we're using VST we build this as a shared library,
|
# GTK front-end; if we're using VST we build this as a shared library,
|
||||||
# otherwise it's a normal executabale
|
# otherwise it's a normal executabale
|
||||||
if bld.env['VST_SUPPORT']:
|
if bld.is_defined('VST_SUPPORT'):
|
||||||
obj = bld(features = 'cxx c cxxshlib')
|
obj = bld(features = 'cxx c cxxshlib')
|
||||||
else:
|
else:
|
||||||
obj = bld(features = 'cxx c cxxprogram')
|
obj = bld(features = 'cxx c cxxprogram')
|
||||||
|
|
@ -345,7 +345,7 @@ def build(bld):
|
||||||
obj.source = gtk2_ardour_sources
|
obj.source = gtk2_ardour_sources
|
||||||
obj.name = 'gtk2_ardour'
|
obj.name = 'gtk2_ardour'
|
||||||
obj.linkflags = []
|
obj.linkflags = []
|
||||||
if bld.env['VST_SUPPORT']:
|
if bld.is_defined('VST_SUPPORT'):
|
||||||
obj.target = 'gtk2_ardour'
|
obj.target = 'gtk2_ardour'
|
||||||
obj.includes += ['../libs/fst']
|
obj.includes += ['../libs/fst']
|
||||||
else:
|
else:
|
||||||
|
|
@ -377,28 +377,28 @@ def build(bld):
|
||||||
obj.source += [ 'lv2_plugin_ui.cc' ]
|
obj.source += [ 'lv2_plugin_ui.cc' ]
|
||||||
obj.uselib += ' SLV2 '
|
obj.uselib += ' SLV2 '
|
||||||
|
|
||||||
if bld.env['FREESOUND']:
|
if bld.is_defined('FREESOUND'):
|
||||||
obj.source += [ 'sfdb_freesound_mootcher.cc' ]
|
obj.source += [ 'sfdb_freesound_mootcher.cc' ]
|
||||||
|
|
||||||
if bld.env['VST_SUPPORT']:
|
if bld.is_defined('VST_SUPPORT'):
|
||||||
obj.source += [ 'vst_pluginui.cc' ]
|
obj.source += [ 'vst_pluginui.cc' ]
|
||||||
obj.defines += [ 'VST_SUPPORT' ]
|
obj.defines += [ 'VST_SUPPORT' ]
|
||||||
bld.env.append ('LINKFLAGS', '-lX11')
|
bld.env.append ('LINKFLAGS', '-lX11')
|
||||||
|
|
||||||
if bld.env['LXVST_SUPPORT']:
|
if bld.is_defined('LXVST_SUPPORT'):
|
||||||
obj.source += [ 'lxvst_pluginui.cc' ]
|
obj.source += [ 'lxvst_pluginui.cc' ]
|
||||||
obj.defines += [ 'LXVST_SUPPORT' ]
|
obj.defines += [ 'LXVST_SUPPORT' ]
|
||||||
obj.linkflags += [ '-lX11' ]
|
obj.linkflags += [ '-lX11' ]
|
||||||
|
|
||||||
if bld.env['PHONE_HOME']:
|
if bld.is_defined('PHONE_HOME'):
|
||||||
obj.defines += [ 'PHONE_HOME' ]
|
obj.defines += [ 'PHONE_HOME' ]
|
||||||
|
|
||||||
if bld.env['COREAUDIO']:
|
if bld.is_defined('COREAUDIO'):
|
||||||
TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
|
TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
|
||||||
obj.source += [ 'cocoacarbon.mm', 'au_pluginui.mm' ]
|
obj.source += [ 'cocoacarbon.mm', 'au_pluginui.mm' ]
|
||||||
obj.use += ' libappleutility '
|
obj.use += ' libappleutility '
|
||||||
|
|
||||||
if bld.env['VST_SUPPORT']:
|
if bld.is_defined('VST_SUPPORT'):
|
||||||
# If we require VST support we build a stub main() and the FST library
|
# If we require VST support we build a stub main() and the FST library
|
||||||
# here using winegcc, and link it to the GTK front-end library
|
# here using winegcc, and link it to the GTK front-end library
|
||||||
obj = bld(features = 'cxx c cxxprogram wine')
|
obj = bld(features = 'cxx c cxxprogram wine')
|
||||||
|
|
@ -455,7 +455,7 @@ def build(bld):
|
||||||
base_font = ""
|
base_font = ""
|
||||||
|
|
||||||
# Set up font sizes
|
# Set up font sizes
|
||||||
if bld.env['IS_OSX']: # OS X fonts
|
if bld.is_defined('GTKOSX'): # OS X fonts
|
||||||
basefont = "Lucida Grande"
|
basefont = "Lucida Grande"
|
||||||
font_sizes = {
|
font_sizes = {
|
||||||
'TINY' : '7',
|
'TINY' : '7',
|
||||||
|
|
@ -567,7 +567,7 @@ def build(bld):
|
||||||
|
|
||||||
# Menus
|
# Menus
|
||||||
menus_argv = []
|
menus_argv = []
|
||||||
if bld.env['GTKOSX']:
|
if bld.is_defined('GTKOSX'):
|
||||||
menus_argv = [ '-E', '-P', '-DGTKOSX' ]
|
menus_argv = [ '-E', '-P', '-DGTKOSX' ]
|
||||||
else:
|
else:
|
||||||
menus_argv = [ '-E', '-P' ]
|
menus_argv = [ '-E', '-P' ]
|
||||||
|
|
@ -612,7 +612,7 @@ def build(bld):
|
||||||
bld.install_files('${SYSCONFDIR}/ardour3/export', bld.path.ant_glob('export/*.format'))
|
bld.install_files('${SYSCONFDIR}/ardour3/export', bld.path.ant_glob('export/*.format'))
|
||||||
|
|
||||||
# i18n
|
# i18n
|
||||||
if bld.env['ENABLE_NLS']:
|
if bld.is_defined('ENABLE_NLS'):
|
||||||
mo_files = bld.path.ant_glob ('po/*.mo')
|
mo_files = bld.path.ant_glob ('po/*.mo')
|
||||||
for mo in mo_files:
|
for mo in mo_files:
|
||||||
lang = os.path.basename (mo).replace ('.mo', '')
|
lang = os.path.basename (mo).replace ('.mo', '')
|
||||||
|
|
|
||||||
|
|
@ -391,22 +391,22 @@ def build(bld):
|
||||||
'uri_map.cc', 'rdff.c' ]
|
'uri_map.cc', 'rdff.c' ]
|
||||||
obj.uselib += ['SLV2','RASQAL']
|
obj.uselib += ['SLV2','RASQAL']
|
||||||
|
|
||||||
if bld.env['VST_SUPPORT']:
|
if bld.is_defined('VST_SUPPORT'):
|
||||||
obj.source += [ 'vst_plugin.cc', 'session_vst.cc' ]
|
obj.source += [ 'vst_plugin.cc', 'session_vst.cc' ]
|
||||||
obj.includes += [ '../fst' ]
|
obj.includes += [ '../fst' ]
|
||||||
obj.defines += [ 'VST_SUPPORT' ]
|
obj.defines += [ 'VST_SUPPORT' ]
|
||||||
|
|
||||||
if bld.env['LXVST_SUPPORT']:
|
if bld.is_defined('LXVST_SUPPORT'):
|
||||||
obj.source += [ 'lxvst_plugin.cc', 'session_lxvst.cc', 'vstfx.cc', 'vstfxwin.cc', 'vstfxinfofile.cc' ]
|
obj.source += [ 'lxvst_plugin.cc', 'session_lxvst.cc', 'vstfx.cc', 'vstfxwin.cc', 'vstfxinfofile.cc' ]
|
||||||
obj.defines += [ 'LXVST_SUPPORT' ]
|
obj.defines += [ 'LXVST_SUPPORT' ]
|
||||||
|
|
||||||
|
|
||||||
if bld.env['COREAUDIO']:
|
if bld.is_defined('COREAUDIO'):
|
||||||
obj.source += [ 'coreaudiosource.cc', 'caimportable.cc' ]
|
obj.source += [ 'coreaudiosource.cc', 'caimportable.cc' ]
|
||||||
obj.use += ['libappleutility']
|
obj.use += ['libappleutility']
|
||||||
obj.source += [ 'audio_unit.cc' ]
|
obj.source += [ 'audio_unit.cc' ]
|
||||||
|
|
||||||
if bld.env['FPU_OPTIMIZATION']:
|
if bld.is_defined('FPU_OPTIMIZATION'):
|
||||||
if (bld.env['build_target'] == 'i386'
|
if (bld.env['build_target'] == 'i386'
|
||||||
or bld.env['build_target'] == 'i686'):
|
or bld.env['build_target'] == 'i686'):
|
||||||
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions.s' ]
|
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions.s' ]
|
||||||
|
|
@ -414,7 +414,7 @@ def build(bld):
|
||||||
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit.s' ]
|
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit.s' ]
|
||||||
|
|
||||||
# i18n
|
# i18n
|
||||||
if bld.env['ENABLE_NLS']:
|
if bld.is_defined('ENABLE_NLS'):
|
||||||
mo_files = bld.path.ant_glob('po/*.mo')
|
mo_files = bld.path.ant_glob('po/*.mo')
|
||||||
for mo in mo_files:
|
for mo in mo_files:
|
||||||
lang = os.path.basename(mo).replace('.mo', '')
|
lang = os.path.basename(mo).replace('.mo', '')
|
||||||
|
|
@ -422,7 +422,7 @@ def build(bld):
|
||||||
lang, 'LC_MESSAGES', 'libardour3.mo'),
|
lang, 'LC_MESSAGES', 'libardour3.mo'),
|
||||||
mo)
|
mo)
|
||||||
|
|
||||||
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
|
if bld.is_defined('BUILD_TESTS') and bld.is_defined('HAVE_CPPUNIT'):
|
||||||
# Unit tests
|
# Unit tests
|
||||||
testobj = bld(features = 'cxx cxxprogram')
|
testobj = bld(features = 'cxx cxxprogram')
|
||||||
testobj.source = '''
|
testobj.source = '''
|
||||||
|
|
@ -450,7 +450,7 @@ def build(bld):
|
||||||
'VAMP_DIR="' + os.path.join(
|
'VAMP_DIR="' + os.path.join(
|
||||||
os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"'
|
os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"'
|
||||||
]
|
]
|
||||||
if bld.env['FPU_OPTIMIZATION']:
|
if bld.is_defined('FPU_OPTIMIZATION'):
|
||||||
testobj.source += [ 'sse_functions_xmm.cc' ]
|
testobj.source += [ 'sse_functions_xmm.cc' ]
|
||||||
if (bld.env['build_target'] == 'i386'
|
if (bld.env['build_target'] == 'i386'
|
||||||
or bld.env['build_target'] == 'i686'):
|
or bld.env['build_target'] == 'i686'):
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ def build(bld):
|
||||||
audiographer.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
audiographer.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
||||||
|
|
||||||
|
|
||||||
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
|
if bld.is_defined('BUILD_TESTS') and bld.is_defined('HAVE_CPPUNIT'):
|
||||||
# Unit tests
|
# Unit tests
|
||||||
obj = bld(features = 'cxx cxxprogram')
|
obj = bld(features = 'cxx cxxprogram')
|
||||||
obj.source = '''
|
obj.source = '''
|
||||||
|
|
@ -95,7 +95,7 @@ def build(bld):
|
||||||
tests/general/silence_trimmer_test.cc
|
tests/general/silence_trimmer_test.cc
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if bld.env['HAVE_ALL_GTHREAD']:
|
if bld.is_defined('HAVE_ALL_GTHREAD'):
|
||||||
obj.source += '''
|
obj.source += '''
|
||||||
tests/general/threader_test.cc
|
tests/general/threader_test.cc
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ def build(bld):
|
||||||
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
||||||
obj.defines = ['PACKAGE="libevoral"' ]
|
obj.defines = ['PACKAGE="libevoral"' ]
|
||||||
|
|
||||||
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
|
if bld.is_defined('BUILD_TESTS') and bld.is_defined('HAVE_CPPUNIT'):
|
||||||
# Static library (for unit test code coverage)
|
# Static library (for unit test code coverage)
|
||||||
obj = bld(features = 'cxx cstlib')
|
obj = bld(features = 'cxx cstlib')
|
||||||
obj.source = lib_source
|
obj.source = lib_source
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@ def configure(conf):
|
||||||
autowaf.configure(conf)
|
autowaf.configure(conf)
|
||||||
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18')
|
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18')
|
||||||
autowaf.check_pkg(conf, 'libart-2.0', uselib_store='LIBART', atleast_version='2.3')
|
autowaf.check_pkg(conf, 'libart-2.0', uselib_store='LIBART', atleast_version='2.3')
|
||||||
|
autowaf.check_pkg(conf, 'pango', uselib_store='PANGO', atleast_version='1.28')
|
||||||
|
autowaf.check_pkg(conf, 'pangoft2', uselib_store='PANGOFT2', atleast_version='1.28')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
# Library
|
# Library
|
||||||
|
|
@ -58,7 +60,7 @@ def build(bld):
|
||||||
obj.includes = ['.']
|
obj.includes = ['.']
|
||||||
obj.name = 'libgnomecanvas-2'
|
obj.name = 'libgnomecanvas-2'
|
||||||
obj.target = 'gnomecanvas-2'
|
obj.target = 'gnomecanvas-2'
|
||||||
obj.uselib = 'GLIB GTK LIBART'
|
obj.uselib = 'GLIB GTK LIBART PANGO PANGOFT2'
|
||||||
obj.vnum = LIBGNOMECANVAS_LIB_VERSION
|
obj.vnum = LIBGNOMECANVAS_LIB_VERSION
|
||||||
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,13 +91,13 @@ def build(bld):
|
||||||
'-DPACKAGE="libgtkmm2ext"',
|
'-DPACKAGE="libgtkmm2ext"',
|
||||||
'-DLOCALEDIR="' + os.path.join(
|
'-DLOCALEDIR="' + os.path.join(
|
||||||
os.path.normpath(bld.env['DATADIR']), 'locale') + '"']
|
os.path.normpath(bld.env['DATADIR']), 'locale') + '"']
|
||||||
if bld.env['GTKOSX']:
|
if bld.is_defined('GTKOSX'):
|
||||||
obj.source += ['gtkapplication_quartz.mm']
|
obj.source += ['gtkapplication_quartz.mm']
|
||||||
else:
|
else:
|
||||||
obj.source += ['gtkapplication_x11.c']
|
obj.source += ['gtkapplication_x11.c']
|
||||||
|
|
||||||
# i18n
|
# i18n
|
||||||
if bld.env['ENABLE_NLS']:
|
if bld.is_defined('ENABLE_NLS'):
|
||||||
mo_files = bld.path.ant_glob ('po/*.mo')
|
mo_files = bld.path.ant_glob ('po/*.mo')
|
||||||
for mo in mo_files:
|
for mo in mo_files:
|
||||||
lang = os.path.basename (mo).replace ('.mo', '')
|
lang = os.path.basename (mo).replace ('.mo', '')
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ def build(bld):
|
||||||
xml++.cc
|
xml++.cc
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if bld.env['DEBUG_RT_ALLOC']:
|
if bld.is_defined('DEBUG_RT_ALLOC'):
|
||||||
obj.source += 'debug_rt_alloc.c'
|
obj.source += 'debug_rt_alloc.c'
|
||||||
|
|
||||||
obj.export_includes = ['.']
|
obj.export_includes = ['.']
|
||||||
|
|
@ -127,7 +127,7 @@ def build(bld):
|
||||||
if bld.env['build_target'] == 'x86_64':
|
if bld.env['build_target'] == 'x86_64':
|
||||||
obj.cxxflags += [ '-DUSE_X86_64_ASM' ]
|
obj.cxxflags += [ '-DUSE_X86_64_ASM' ]
|
||||||
|
|
||||||
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
|
if bld.is_defined ('BUILD_TESTS') and bld.is_defined('HAVE_CPPUNIT'):
|
||||||
# Unit tests
|
# Unit tests
|
||||||
testobj = bld(features = 'cxx cxxprogram')
|
testobj = bld(features = 'cxx cxxprogram')
|
||||||
testobj.source = '''
|
testobj.source = '''
|
||||||
|
|
|
||||||
|
|
@ -67,14 +67,14 @@ def build(bld):
|
||||||
bld.recurse('control_protocol')
|
bld.recurse('control_protocol')
|
||||||
bld.recurse('generic_midi')
|
bld.recurse('generic_midi')
|
||||||
bld.recurse('mackie')
|
bld.recurse('mackie')
|
||||||
if bld.env['BUILD_OSC']:
|
if bld.is_defined ('BUILD_OSC'):
|
||||||
bld.add_subdirs('osc')
|
bld.recurse('osc')
|
||||||
if bld.env['BUILD_POWERMATE']:
|
if bld.is_defined('BUILD_POWERMATE'):
|
||||||
bld.add_subdirs('powermate')
|
bld.recurse('powermate')
|
||||||
if bld.env['BUILD_WIIMOTE']:
|
if bld.is_defined('BUILD_WIIMOTE'):
|
||||||
bld.add_subdirs('wiimote')
|
bld.recurse('wiimote')
|
||||||
if bld.env['BUILD_TRANZPORT']:
|
if bld.is_defined('BUILD_TRANZPORT'):
|
||||||
bld.add_subdirs('tranzport')
|
bld.recurse('tranzport')
|
||||||
|
|
||||||
def shutdown():
|
def shutdown():
|
||||||
autowaf.shutdown()
|
autowaf.shutdown()
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ def configure(conf):
|
||||||
def build(bld):
|
def build(bld):
|
||||||
|
|
||||||
subst_dict = {}
|
subst_dict = {}
|
||||||
if bld.env['COREAUDIO']:
|
if bld.is_defined('COREAUDIO'):
|
||||||
subst_dict['%JACK_INPUT%'] = 'coreaudio:Built-in Audio:in'
|
subst_dict['%JACK_INPUT%'] = 'coreaudio:Built-in Audio:in'
|
||||||
subst_dict['%JACK_OUTPUT%'] = 'coreaudio:Built-in Audio:out'
|
subst_dict['%JACK_OUTPUT%'] = 'coreaudio:Built-in Audio:out'
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
3
wscript
3
wscript
|
|
@ -37,6 +37,9 @@ children = [
|
||||||
'export',
|
'export',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
#if config[config_arch] != 'apple':
|
||||||
|
# children += [ 'tools/sanity_check' ]
|
||||||
|
|
||||||
i18n_children = [
|
i18n_children = [
|
||||||
'gtk2_ardour',
|
'gtk2_ardour',
|
||||||
'libs/ardour',
|
'libs/ardour',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue