X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=wscript;h=14d660276d06a8d01d45bd7950c16cd051b574c9;hb=e63de172d5bb08ed4c40311fb5b4d65c60325150;hp=7fb80461e98a8896802e77d6d0a338db37bc2628;hpb=4f387f390ef0b9937637904ea894c82739c26900;p=ardour.git diff --git a/wscript b/wscript index 7fb80461e9..14d660276d 100644 --- a/wscript +++ b/wscript @@ -183,26 +183,15 @@ V = MAJOR + '.' + MINOR + '.' + MICRO # can cause odd problems elsewhere. Note that # in python3, encode and decode do not return # strings, so we have to force the type. -VERSION = str (V.encode ('ascii', 'ignore')) -PROGRAM_VERSION = str (MAJOR.encode ('ascii', 'ignore')) - -# It seems, that on msys2, with python3, it puts quotes around -# the version number, which breaks the build. -VERSION = VERSION.replace('\'', '') -PROGRAM_VERSION = PROGRAM_VERSION.replace('\'', '') - +VERSION = V.encode ('ascii', 'ignore').decode ("utf-8") +PROGRAM_VERSION = MAJOR.encode ('ascii', 'ignore').decode ("utf-8") if len (sys.argv) > 1 and sys.argv[1] == 'dist': if not 'APPNAME' in os.environ: - print "You must define APPNAME in the environment when running ./waf dist" + print ("You must define APPNAME in the environment when running ./waf dist") sys.exit (1) APPNAME = os.environ['APPNAME']; -# It seems, that on msys2, with python3, it puts quotes around -# the version number, which breaks the build. -VERSION = VERSION.replace('\'', '') -PROGRAM_VERSION = PROGRAM_VERSION.replace('\'', '') - # Mandatory variables top = '.' out = 'build' @@ -405,6 +394,8 @@ int main() { return 0; }''', linker_flags.append('--stdlib=libstdc++') # Prevents visibility issues in standard headers conf.define("_DARWIN_C_SOURCE", 1) + else: + cxx_flags.append('-DBOOST_NO_AUTO_PTR') if (is_clang and platform == "darwin") or conf.env['build_host'] in ['mavericks', 'yosemite']: # Silence warnings about the non-existing osx clang compiler flags @@ -759,12 +750,6 @@ def configure(conf): autowaf.configure(conf) autowaf.display_header('Ardour Configuration') - gcc_versions = fetch_gcc_version(str(conf.env['CC'])) - if not Options.options.debug and gcc_versions[0] == '4' and gcc_versions[1] > '4': - print('Version 4.5 of gcc is not ready for use when compiling Ardour with optimization.') - print('Please use a different version or re-configure with --debug') - exit (1) - # systems with glibc have libintl builtin. systems without require explicit # linkage against libintl. # @@ -810,7 +795,7 @@ def configure(conf): if Options.options.lv2dir: conf.env['LV2DIR'] = Options.options.lv2dir else: - conf.env['LV2DIR'] = os.path.join(conf.env['LIBDIR'], 'ardour' + str(conf.env['MAJOR']), 'lv2') + conf.env['LV2DIR'] = os.path.join(conf.env['LIBDIR'], 'ardour' + str(conf.env['MAJOR']), 'LV2') conf.env['LV2DIR'] = os.path.normpath(conf.env['LV2DIR']) @@ -917,6 +902,22 @@ def configure(conf): autowaf.check_pkg(conf, 'vamp-hostsdk', uselib_store='VAMPHOSTSDK', atleast_version='2.1', mandatory=True) autowaf.check_pkg(conf, 'rubberband', uselib_store='RUBBERBAND', mandatory=True) + have_rf64_riff_support = conf.check_cc(fragment = ''' +#include +int main () { int x = SFC_AUTO_DOWNGRADE_RF64; return 0; } +''', + features = 'c', + mandatory = False, + execute = False, + use = 'SNDFILE', + msg = 'Checking for sndfile RF64=>RIFF support', + okmsg = 'Found', + errmsg = 'Not found, no RF64-to-WAV support') + + if have_rf64_riff_support: + conf.env.append_value('CXXFLAGS', "-DHAVE_RF64_RIFF") + conf.env.append_value('CFLAGS', "-DHAVE_RF64_RIFF") + if Options.options.dist_target == 'mingw': Options.options.fpu_optimization = True conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS') @@ -1063,6 +1064,7 @@ def configure(conf): sub_config_and_use(conf, 'libs/appleutility') elif Options.options.dist_target != 'mingw': sub_config_and_use(conf, 'tools/sanity_check') + sub_config_and_use(conf, 'tools/gccabicheck') sub_config_and_use(conf, 'libs/clearlooks-newer') @@ -1178,6 +1180,7 @@ def build(bld): bld.recurse('libs/appleutility') elif bld.env['build_target'] != 'mingw': bld.recurse('tools/sanity_check') + bld.recurse('tools/gccabicheck') bld.recurse('libs/clearlooks-newer')