13
0

wscript: drop unnecessary trailing ";"

This commit is contained in:
Mads Kiilerich 2022-01-25 20:43:15 +01:00
parent 49855e52aa
commit 5b7431f243
6 changed files with 23 additions and 23 deletions

View File

@ -475,7 +475,7 @@ def configure(conf):
conf.define('CODENAME', enoify(int(conf.env['MAJOR']), int(conf.env['MINOR']))) conf.define('CODENAME', enoify(int(conf.env['MAJOR']), int(conf.env['MINOR'])))
conf.env['define_key'] = ['VERSIONSTRING', 'CODENAME' ] conf.env['define_key'] = ['VERSIONSTRING', 'CODENAME' ]
conf.write_config_header('gtk2ardour-version.h') conf.write_config_header('gtk2ardour-version.h')
conf.env['define_key'] = bak; conf.env['define_key'] = bak
# Boost headers # Boost headers
autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp') autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp')
@ -952,7 +952,7 @@ def build(bld):
bld.install_files(bld.env['CONFDIR'], 'default_ui_config') bld.install_files(bld.env['CONFDIR'], 'default_ui_config')
# Color Themes. Find each color file for this program only # Color Themes. Find each color file for this program only
# and install # and install
bld.install_files (os.path.join(bld.env['DATADIR'], 'themes'), bld.path.ant_glob ('themes/*-' + pgmname.lower() + '.colors')); bld.install_files (os.path.join(bld.env['DATADIR'], 'themes'), bld.path.ant_glob ('themes/*-' + pgmname.lower() + '.colors'))
# Default export stuff # Default export stuff
bld.install_files(os.path.join(bld.env['CONFDIR'], 'export'), bld.path.ant_glob('export/*.format')) bld.install_files(os.path.join(bld.env['CONFDIR'], 'export'), bld.path.ant_glob('export/*.format'))

View File

@ -33,16 +33,16 @@ def configure(conf):
def build(bld): def build(bld):
obj = bld(features = 'cxx cxxshlib') obj = bld(features = 'cxx cxxshlib')
obj.uselib = 'AUDIOUNITS OSX' obj.uselib = 'AUDIOUNITS OSX'
obj.source = ''; obj.source = ''
if bld.is_defined('COREAUDIO105'): if bld.is_defined('COREAUDIO105'):
obj.export_includes = ['CoreAudio105'] obj.export_includes = ['CoreAudio105']
obj.source += ' CoreAudio105/CAAudioFile.cpp'; obj.source += ' CoreAudio105/CAAudioFile.cpp'
for src in libappleutility_sources: for src in libappleutility_sources:
obj.source += ' CoreAudio105/' + src; obj.source += ' CoreAudio105/' + src
else: else:
obj.export_includes = ['CoreAudio/PublicUtility'] obj.export_includes = ['CoreAudio/PublicUtility']
for src in libappleutility_sources: for src in libappleutility_sources:
obj.source += ' CoreAudio/PublicUtility/' + src; obj.source += ' CoreAudio/PublicUtility/' + src
# apple did not write this library with full symbol export control # apple did not write this library with full symbol export control
# so we need to override any visibility default. # so we need to override any visibility default.

View File

@ -282,14 +282,14 @@ def flac_supported():
cmd = subprocess.Popen ("sndfile-info testfile.flac", cmd = subprocess.Popen ("sndfile-info testfile.flac",
stdout = subprocess.PIPE, stdout = subprocess.PIPE,
stderr = subprocess.STDOUT, shell = True) stderr = subprocess.STDOUT, shell = True)
out = cmd.communicate()[0].decode('utf-8'); out = cmd.communicate()[0].decode('utf-8')
return re.search ('unknown format', out) is None return re.search ('unknown format', out) is None
def ogg_supported(): def ogg_supported():
cmd = subprocess.Popen ("sndfile-info testfile.ogg", cmd = subprocess.Popen ("sndfile-info testfile.ogg",
stdout = subprocess.PIPE, stdout = subprocess.PIPE,
stderr = subprocess.STDOUT, shell = True) stderr = subprocess.STDOUT, shell = True)
out = cmd.communicate()[0].decode('utf-8'); out = cmd.communicate()[0].decode('utf-8')
return re.search ('unknown format', out) is None return re.search ('unknown format', out) is None
def options(opt): def options(opt):

View File

@ -107,7 +107,7 @@ def build(bld):
obj.defines += [ 'USE_WEAK_JACK', 'HAVE_JACK_PORT_RENAME' ] obj.defines += [ 'USE_WEAK_JACK', 'HAVE_JACK_PORT_RENAME' ]
obj.deps = [ 'weak_libjack.def' ] obj.deps = [ 'weak_libjack.def' ]
obj.uselib += [ 'GLIBMM', 'XML', 'OSX']; obj.uselib += [ 'GLIBMM', 'XML', 'OSX']
# #
# device discovery code in the jack backend needs ALSA # device discovery code in the jack backend needs ALSA

View File

@ -27,7 +27,7 @@ def configure(conf):
def build(bld): def build(bld):
VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
if not bld.is_defined('HAVE_READLINE'): if not bld.is_defined('HAVE_READLINE'):
return; return
# commandline luasession wrapper script # commandline luasession wrapper script
if bld.env['build_target'] != 'mingw': if bld.env['build_target'] != 'mingw':

26
wscript
View File

@ -142,9 +142,9 @@ gcc_darwin_dict['strict'] = ['-Wall', '-Wcast-align', '-Wextra', '-Wwrite-string
gcc_darwin_dict['generic-x86'] = [ '-arch', 'i386' ] gcc_darwin_dict['generic-x86'] = [ '-arch', 'i386' ]
gcc_darwin_dict['generic-ppc'] = [ '-arch', 'ppc' ] gcc_darwin_dict['generic-ppc'] = [ '-arch', 'ppc' ]
gcc_darwin_dict['generic-arm64'] = [ '-arch', 'arm64' ] gcc_darwin_dict['generic-arm64'] = [ '-arch', 'arm64' ]
compiler_flags_dictionaries['gcc-darwin'] = gcc_darwin_dict; compiler_flags_dictionaries['gcc-darwin'] = gcc_darwin_dict
clang_dict = compiler_flags_dictionaries['gcc'].copy(); clang_dict = compiler_flags_dictionaries['gcc'].copy()
clang_dict['sse'] = '' clang_dict['sse'] = ''
clang_dict['fpmath-sse'] = '' clang_dict['fpmath-sse'] = ''
clang_dict['xsaveintrin'] = '' clang_dict['xsaveintrin'] = ''
@ -156,12 +156,12 @@ clang_dict['strict'] = ['-Wall', '-Wcast-align', '-Wextra', '-Wwrite-strings' ]
clang_dict['generic-x86'] = [ '-arch', 'i386' ] clang_dict['generic-x86'] = [ '-arch', 'i386' ]
clang_dict['generic-arm64'] = [ '-arch', 'arm64' ] clang_dict['generic-arm64'] = [ '-arch', 'arm64' ]
clang_dict['full-optimization'] = [ '-O3', '-fomit-frame-pointer', '-ffast-math', ] clang_dict['full-optimization'] = [ '-O3', '-fomit-frame-pointer', '-ffast-math', ]
compiler_flags_dictionaries['clang'] = clang_dict; compiler_flags_dictionaries['clang'] = clang_dict
clang_darwin_dict = compiler_flags_dictionaries['clang'].copy(); clang_darwin_dict = compiler_flags_dictionaries['clang'].copy()
clang_darwin_dict['cxx-strict'] = [ '-ansi', '-Wnon-virtual-dtor', '-Woverloaded-virtual', ] clang_darwin_dict['cxx-strict'] = [ '-ansi', '-Wnon-virtual-dtor', '-Woverloaded-virtual', ]
clang_darwin_dict['full-optimization'] = [ '-O3', '-ffast-math'] clang_darwin_dict['full-optimization'] = [ '-O3', '-ffast-math']
compiler_flags_dictionaries['clang-darwin'] = clang_darwin_dict; compiler_flags_dictionaries['clang-darwin'] = clang_darwin_dict
def fetch_git_revision_date (): def fetch_git_revision_date ():
cmd = ["git", "describe", "HEAD"] cmd = ["git", "describe", "HEAD"]
@ -236,7 +236,7 @@ if any(arg in ('dist', 'distcheck') for arg in sys.argv[1:]):
if not 'APPNAME' in os.environ: if not 'APPNAME' in os.environ:
print ("You must define APPNAME in the environment when running ./waf dist/distcheck") print ("You must define APPNAME in the environment when running ./waf dist/distcheck")
sys.exit (1) sys.exit (1)
APPNAME = os.environ['APPNAME']; APPNAME = os.environ['APPNAME']
# Mandatory variables # Mandatory variables
top = '.' top = '.'
@ -313,7 +313,7 @@ def fetch_gcc_version (CC):
def create_stored_revision(): def create_stored_revision():
rev = "" rev = ""
if os.path.exists('.git'): if os.path.exists('.git'):
rev, rev_date = fetch_git_revision_date(); rev, rev_date = fetch_git_revision_date()
print("Git version: " + rev + "\n") print("Git version: " + rev + "\n")
elif os.path.exists('libs/ardour/revision.cc'): elif os.path.exists('libs/ardour/revision.cc'):
print("Using packaged revision") print("Using packaged revision")
@ -345,7 +345,7 @@ def get_depstack_rev(depstack_root):
with open(depstack_root + '/../.vers', 'r') as f: with open(depstack_root + '/../.vers', 'r') as f:
return f.readline().decode('utf-8').strip()[:7] return f.readline().decode('utf-8').strip()[:7]
except IOError: except IOError:
return '-unknown-'; return '-unknown-'
def set_compiler_flags (conf,opt): def set_compiler_flags (conf,opt):
# #
@ -398,7 +398,7 @@ int main() { return 0; }''',
# Save the compiler flags because we need them at build time # Save the compiler flags because we need them at build time
# when we need to add compiler specific flags in certain # when we need to add compiler specific flags in certain
# libraries # libraries
conf.env['compiler_flags_dict'] = flags_dict; conf.env['compiler_flags_dict'] = flags_dict
autowaf.set_basic_compiler_flags (conf,flags_dict) autowaf.set_basic_compiler_flags (conf,flags_dict)
@ -593,7 +593,7 @@ int main() { return 0; }''',
# optimization section # optimization section
if conf.env['FPU_OPTIMIZATION']: if conf.env['FPU_OPTIMIZATION']:
if sys.platform == 'darwin': if sys.platform == 'darwin':
compiler_flags.append("-DBUILD_VECLIB_OPTIMIZATIONS"); compiler_flags.append("-DBUILD_VECLIB_OPTIMIZATIONS")
conf.env.append_value('LINKFLAGS_OSX', ['-framework', 'Accelerate']) conf.env.append_value('LINKFLAGS_OSX', ['-framework', 'Accelerate'])
elif conf.env['build_target'] == 'i686' or conf.env['build_target'] == 'x86_64': elif conf.env['build_target'] == 'i686' or conf.env['build_target'] == 'x86_64':
compiler_flags.append ("-DBUILD_SSE_OPTIMIZATIONS") compiler_flags.append ("-DBUILD_SSE_OPTIMIZATIONS")
@ -1413,11 +1413,11 @@ int main () { return 0; }
# override waf's -install_name added in # override waf's -install_name added in
# waflib/Tools/ccroot.py when -dynamiclib is used # waflib/Tools/ccroot.py when -dynamiclib is used
if conf.env.LINKFLAGS_cshlib: if conf.env.LINKFLAGS_cshlib:
conf.env.LINKFLAGS_cshlib = []; conf.env.LINKFLAGS_cshlib = []
conf.env.LDFLAGS_cshlib = ['-dynamiclib'] conf.env.LDFLAGS_cshlib = ['-dynamiclib']
if conf.env.LINKFLAGS_cxxshlib: if conf.env.LINKFLAGS_cxxshlib:
conf.env.LINKFLAGS_cxxshlib = []; conf.env.LINKFLAGS_cxxshlib = []
conf.env.LDFLAGS_cxxshlib = ['-dynamiclib'] conf.env.LDFLAGS_cxxshlib = ['-dynamiclib']
config_text = open('libs/ardour/config_text.cc', "w") config_text = open('libs/ardour/config_text.cc', "w")
@ -1538,7 +1538,7 @@ def build(bld):
bld.env['DLLDIR'] = os.path.join(bld.env['LIBDIR'], lwrcase_dirname) bld.env['DLLDIR'] = os.path.join(bld.env['LIBDIR'], lwrcase_dirname)
bld.env['LIBDIR'] = bld.env['DLLDIR'] bld.env['LIBDIR'] = bld.env['DLLDIR']
bld.env['LOCALEDIR'] = os.path.join(bld.env['DATADIR'], 'locale') bld.env['LOCALEDIR'] = os.path.join(bld.env['DATADIR'], 'locale')
bld.env['lwrcase_dirname'] = lwrcase_dirname; bld.env['lwrcase_dirname'] = lwrcase_dirname
autowaf.set_recursive() autowaf.set_recursive()