13
0

Revert "Build system changes to support mingw build target"

This reverts commit 94145732f3.
This commit is contained in:
Paul Davis 2013-07-15 13:21:22 -04:00
parent 555174d510
commit 96ea407d1a
6 changed files with 14 additions and 51 deletions

View File

@ -266,7 +266,6 @@ def configure(conf):
'gtk2_ardour', conf.env['MAJOR'], conf.env['MINOR'], 0) 'gtk2_ardour', conf.env['MAJOR'], conf.env['MINOR'], 0)
autowaf.configure(conf) autowaf.configure(conf)
if Options.options.dist_target == 'auto':
if re.search ("linux", sys.platform) != None: if re.search ("linux", sys.platform) != None:
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA') autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
@ -419,9 +418,6 @@ def build(bld):
'libardour_cp', 'libardour_cp',
'libgtkmm2ext', 'libgtkmm2ext',
'libtaglib' ] 'libtaglib' ]
if bld.env['build_target'] == 'mingw':
if bld.env['DEBUG'] == False:
obj.linkflags = ['-mwindows']
if sys.platform == 'darwin': if sys.platform == 'darwin':
obj.use += ' libappleutility' obj.use += ' libappleutility'
obj.defines = [ obj.defines = [

View File

@ -238,6 +238,8 @@ def configure(conf):
path_prefix + 'version.cc', path_prefix + 'version.cc',
'libardour3', conf.env['MAJOR'], conf.env['MINOR'], 0) 'libardour3', conf.env['MAJOR'], conf.env['MINOR'], 0)
autowaf.configure(conf) autowaf.configure(conf)
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO',
atleast_version='0.3.2')
autowaf.check_pkg(conf, 'jack', uselib_store='JACK', autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
atleast_version='0.118.2') atleast_version='0.118.2')
if Options.options.dist_target == 'auto': if Options.options.dist_target == 'auto':
@ -247,11 +249,8 @@ def configure(conf):
autowaf.check_pkg(conf, 'portaudio-2.0', uselib_store='PORTAUDIO', autowaf.check_pkg(conf, 'portaudio-2.0', uselib_store='PORTAUDIO',
atleast_version='19') atleast_version='19')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML') autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
if Options.options.dist_target != 'mingw':
autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF', autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF',
atleast_version='0.4.0') atleast_version='0.4.0')
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO',
atleast_version='0.3.2')
autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE', autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE',
atleast_version='0.1.0') atleast_version='0.1.0')
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP',

View File

@ -38,6 +38,7 @@ libpbd_sources = [
'controllable.cc', 'controllable.cc',
'controllable_descriptor.cc', 'controllable_descriptor.cc',
'clear_dir.cc', 'clear_dir.cc',
'crossthread.cc',
'cpus.cc', 'cpus.cc',
'debug.cc', 'debug.cc',
'enumwriter.cc', 'enumwriter.cc',
@ -121,9 +122,6 @@ def build(bld):
if bld.is_defined('DEBUG_RT_ALLOC'): if bld.is_defined('DEBUG_RT_ALLOC'):
obj.source += 'debug_rt_alloc.c' obj.source += 'debug_rt_alloc.c'
if bld.env['build_target'] != 'mingw':
obj.source += 'crossthread.cc'
obj.export_includes = ['.'] obj.export_includes = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libpbd' obj.name = 'libpbd'
@ -158,7 +156,7 @@ def build(bld):
testobj.uselib = 'CPPUNIT XML SNDFILE' testobj.uselib = 'CPPUNIT XML SNDFILE'
testobj.use = 'libpbd' testobj.use = 'libpbd'
testobj.name = 'libpbd-tests' testobj.name = 'libpbd-tests'
if sys.platform != 'darwin' and bld.env['build_target'] != 'mingw': if sys.platform != 'darwin':
testobj.linkflags = ['-lrt'] testobj.linkflags = ['-lrt']

View File

@ -43,7 +43,7 @@ def configure(conf):
#if Options.options.tranzport and conf.is_defined('HAVE_USB'): #if Options.options.tranzport and conf.is_defined('HAVE_USB'):
# conf.define('BUILD_TRANZPORT', 1) # conf.define('BUILD_TRANZPORT', 1)
if conf.check_cc (header_name='poll.h', define_name='BUILD_MACKIE', mandatory=False): if conf.check_cc (header_name='poll.h', define_name='BUILD_MACKIE'):
sub_config_and_use(conf, 'mackie') sub_config_and_use(conf, 'mackie')
if autowaf.check_pkg (conf, 'liblo', mandatory=False, uselib_store="LO", atleast_version="0.24"): if autowaf.check_pkg (conf, 'liblo', mandatory=False, uselib_store="LO", atleast_version="0.24"):

View File

@ -65,7 +65,6 @@ def build(bld):
'''.split() '''.split()
obj.export_includes = ['.', 'taglib', 'taglib/toolkit'] obj.export_includes = ['.', 'taglib', 'taglib/toolkit']
obj.includes = include_dirs obj.includes = include_dirs
obj.defines = ['MAKE_TAGLIB_LIB']
obj.name = 'libtaglib' obj.name = 'libtaglib'
obj.target = 'taglib' obj.target = 'taglib'
obj.vnum = LIBTAGLIB_LIB_VERSION obj.vnum = LIBTAGLIB_LIB_VERSION

37
wscript
View File

@ -32,6 +32,7 @@ children = [
'libs/timecode', 'libs/timecode',
'libs/ardour', 'libs/ardour',
'libs/gtkmm2ext', 'libs/gtkmm2ext',
'libs/clearlooks-newer',
'libs/audiographer', 'libs/audiographer',
'gtk2_ardour', 'gtk2_ardour',
'export', 'export',
@ -113,7 +114,7 @@ def set_compiler_flags (conf,opt):
debug_flags = [ '-pg' ] debug_flags = [ '-pg' ]
if opt.backtrace: if opt.backtrace:
if platform != 'darwin' and not is_clang and opt.dist_target != 'mingw': if platform != 'darwin' and not is_clang:
debug_flags = [ '-rdynamic' ] debug_flags = [ '-rdynamic' ]
# Autodetect # Autodetect
@ -389,7 +390,7 @@ def options(opt):
opt.add_option('--depstack-root', type='string', default='~', dest='depstack_root', opt.add_option('--depstack-root', type='string', default='~', dest='depstack_root',
help='Directory/folder where dependency stack trees (gtk, a3) can be found (defaults to ~)') help='Directory/folder where dependency stack trees (gtk, a3) can be found (defaults to ~)')
opt.add_option('--dist-target', type='string', default='auto', dest='dist_target', opt.add_option('--dist-target', type='string', default='auto', dest='dist_target',
help='Specify the target for cross-compiling [auto,none,x86,i386,i686,x86_64,powerpc,tiger,leopard,mingw]') help='Specify the target for cross-compiling [auto,none,x86,i386,i686,x86_64,powerpc,tiger,leopard]')
opt.add_option('--fpu-optimization', action='store_true', default=True, dest='fpu_optimization', opt.add_option('--fpu-optimization', action='store_true', default=True, dest='fpu_optimization',
help='Build runtime checked assembler code (default)') help='Build runtime checked assembler code (default)')
opt.add_option('--no-fpu-optimization', action='store_false', dest='fpu_optimization') opt.add_option('--no-fpu-optimization', action='store_false', dest='fpu_optimization')
@ -409,7 +410,7 @@ def options(opt):
help='Compile with support for LV2 (if Lilv+Suil is available)') help='Compile with support for LV2 (if Lilv+Suil is available)')
opt.add_option('--no-lv2', action='store_false', dest='lv2', opt.add_option('--no-lv2', action='store_false', dest='lv2',
help='Do not compile with support for LV2') help='Do not compile with support for LV2')
opt.add_option('--lxvst', action='store_true', default=False, dest='lxvst', opt.add_option('--lxvst', action='store_true', default=lxvst_default, dest='lxvst',
help='Compile with support for linuxVST plugins') help='Compile with support for linuxVST plugins')
opt.add_option('--nls', action='store_true', default=True, dest='nls', opt.add_option('--nls', action='store_true', default=True, dest='nls',
help='Enable i18n (native language support) (default)') help='Enable i18n (native language support) (default)')
@ -605,20 +606,6 @@ def configure(conf):
autowaf.check_pkg(conf, 'libcurl', uselib_store='CURL', atleast_version='7.0.0') autowaf.check_pkg(conf, 'libcurl', uselib_store='CURL', atleast_version='7.0.0')
autowaf.check_pkg(conf, 'liblo', uselib_store='LO', atleast_version='0.26') autowaf.check_pkg(conf, 'liblo', uselib_store='LO', atleast_version='0.26')
if Options.options.dist_target == 'mingw':
Options.options.fpu_optimization = False
conf.env.append_value('LIB', 'pthreadGC2')
# needed for at least libsmf
conf.check_cc(function_name='htonl', header_name='winsock2.h', lib='ws2_32')
conf.env.append_value('LIB', 'ws2_32')
# needed for mingw64 packages, not harmful on normal mingw build
conf.env.append_value('LIB', 'intl')
conf.check_cc(function_name='regcomp', header_name='regex.h',
lib='regex', uselib_store="REGEX", define_name='HAVE_REGEX_H')
# TODO put this only where it is needed
conf.env.append_value('LIB', 'regex')
if Options.options.dist_target != 'mingw':
conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL') conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL')
# Tell everyone that this is a waf build # Tell everyone that this is a waf build
@ -672,14 +659,6 @@ def configure(conf):
set_compiler_flags (conf, Options.options) set_compiler_flags (conf, Options.options)
if sys.platform == 'darwin':
sub_config_and_use(conf, 'libs/appleutility')
elif Options.options.dist_target != 'mingw':
sub_config_and_use(conf, 'tools/sanity_check')
if Options.options.dist_target != 'mingw':
sub_config_and_use(conf, 'libs/clearlooks-newer')
for i in children: for i in children:
sub_config_and_use(conf, i) sub_config_and_use(conf, i)
@ -763,14 +742,6 @@ def build(bld):
autowaf.set_recursive() autowaf.set_recursive()
if sys.platform == 'darwin':
bld.recurse('libs/appleutility')
elif bld.env['build_target'] != 'mingw':
bld.recurse('tools/sanity_check')
if bld.env['build_target'] != 'mingw':
bld.recurse('libs/clearlooks-newer')
for i in children: for i in children:
bld.recurse(i) bld.recurse(i)