13
0

wscript: drop repeated autowaf.set_options - it is enough to set at top level

This commit is contained in:
Mads Kiilerich 2022-01-25 17:43:36 +01:00 committed by Paul Davis
parent 1c686f4d63
commit 88cecdfaef
72 changed files with 69 additions and 84 deletions

View File

@ -431,7 +431,7 @@ def enoify (major, minor):
return "\\\"\\\""
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
conf.load('misc')

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
import sys
@ -9,7 +8,7 @@ hardour_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
conf.load('misc')

View File

@ -22,7 +22,7 @@ libappleutility_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if conf.env['build_target'] in ['panther', 'tiger', 'leopard'] or (Options.options.ppc and conf.env['build_target'] == 'snowleopard'):

View File

@ -277,7 +277,7 @@ libardour_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
conf.load('gas')

View File

@ -6,7 +6,7 @@ import sys
import re
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw':

View File

@ -14,7 +14,7 @@ AUDIOGRAPHER_VERSION = '0.0.0'
AUDIOGRAPHER_LIB_VERSION = '0.0.0'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):

View File

@ -1,12 +1,11 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
# needed for code used from libardour
I18N_PACKAGE = 'ardour'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -1,11 +1,10 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
I18N_PACKAGE = 'alsa-backend'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -1,12 +1,11 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
from waflib import Options
import os
I18N_PACKAGE = 'coreaudio-backend'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if Options.options.ppc:

View File

@ -1,11 +1,10 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
I18N_PACKAGE = 'dummy-backend'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -8,7 +8,7 @@ import re
I18N_PACKAGE = 'jack-backend'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.121.0')

View File

@ -5,7 +5,7 @@ import os
I18N_PACKAGE = 'portaudio-backend'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'portaudio-2.0', uselib_store='PORTAUDIO', atleast_version='19')

View File

@ -1,11 +1,10 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
I18N_PACKAGE = 'pulse-backend'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -2,7 +2,7 @@
from waflib.extras import autowaf as autowaf
def options(opt):
autowaf.set_options(opt)
pass
def sub_config_and_use(conf, name, has_objects = True):
conf.recurse(name)

View File

@ -58,7 +58,7 @@ canvas_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'cairomm-1.0', uselib_store='CAIROMM', atleast_version='1.8.4')

View File

@ -4,7 +4,7 @@ import os
import sys
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -7,7 +7,7 @@ controlcp_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -2,7 +2,7 @@
from waflib.extras import autowaf as autowaf
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -7,7 +7,7 @@ children = [
]
def options(opt):
autowaf.set_options(opt)
pass
def sub_config_and_use(conf, name, has_objects = True):
conf.recurse(name)

View File

@ -17,7 +17,6 @@ EVORAL_LIB_VERSION = '0.0.0'
APPNAME = 'evoral'
def options(opt):
autowaf.set_options(opt)
opt.add_option('--test', action='store_true', default=False, dest='build_tests',
help="Build unit tests")
opt.add_option('--test-coverage', action='store_true', default=False, dest='test_coverage',

View File

@ -10,7 +10,7 @@ LIBFLUIDSYNTH_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
I18N_PACKAGE = 'libfluidsynth'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if conf.is_defined('USE_EXTERNAL_LIBS'):

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
import sys
import re
@ -8,7 +7,7 @@ import re
I18N_PACKAGE = 'ardour'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
conf.load('misc')

View File

@ -48,7 +48,7 @@ gtkmm2ext_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')

View File

@ -6,7 +6,7 @@ import sys
HIDAPI_VERSION = '0.8.0'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if conf.is_defined('USE_EXTERNAL_LIBS'):

View File

@ -16,7 +16,7 @@ LIBLTC_LIB_VERSION = '1.1.1'
I18N_PACKAGE = 'libltc'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if conf.is_defined('USE_EXTERNAL_LIBS'):

View File

@ -4,7 +4,7 @@ from waflib.extras import autowaf as autowaf
I18N_PACKAGE = 'liblua'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -25,7 +25,6 @@ libmidi_sources = [
]
def options(opt):
autowaf.set_options(opt)
opt.add_option('--test', action='store_true', default=False, dest='build_tests',
help="Build unit tests")

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -2,8 +2,7 @@
from waflib.extras import autowaf as autowaf
def options(opt):
autowaf.set_options(opt)
pass
def sub_config_and_use(conf, name, has_objects = True):
conf.recurse(name)

View File

@ -87,7 +87,6 @@ libpbd_sources = [
]
def options(opt):
autowaf.set_options(opt)
opt.add_option('--ppc', action='store_true', default=False, dest='ppc',
help='Compile with -arch ppc (OS X ONLY)')
opt.add_option('--dist-target', type='string', default='auto', dest='dist_target',

View File

@ -4,7 +4,7 @@ import waflib.extras.autowaf as autowaf
import waflib.Utils as Utils
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',

View File

@ -4,7 +4,7 @@ import waflib.extras.autowaf as autowaf
import waflib.Utils as Utils
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',

View File

@ -4,7 +4,7 @@ import waflib.extras.autowaf as autowaf
import waflib.Utils as Utils
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',

View File

@ -4,7 +4,7 @@ import waflib.extras.autowaf as autowaf
import waflib.Utils as Utils
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',

View File

@ -4,7 +4,7 @@ import waflib.extras.autowaf as autowaf
import waflib.Utils as Utils
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',

View File

@ -4,7 +4,7 @@ import waflib.extras.autowaf as autowaf
import waflib.Utils as Utils
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',

View File

@ -4,7 +4,7 @@ import waflib.extras.autowaf as autowaf
import waflib.Utils as Utils
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0',

View File

@ -13,7 +13,7 @@ LIBPTFORMAT_LIB_VERSION = '0.0.0'
I18N_PACKAGE = 'libptformat'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -11,7 +11,7 @@ QM_DSP_VERSION = '1.7.1'
QM_DSP_LIB_VERSION = '1.7.1'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if conf.is_defined('USE_EXTERNAL_LIBS'):

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -12,7 +12,7 @@ fp8_16_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'pangomm-1.4', uselib_store='PANGOMM', atleast_version='1.4', mandatory=True)

View File

@ -25,7 +25,7 @@ mackie_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'pangomm-1.4', uselib_store='PANGOMM', atleast_version='1.4', mandatory=True)

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'pangomm-1.4', uselib_store='PANGOMM', atleast_version='1.4', mandatory=True)

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -25,7 +25,7 @@ children = [
]
def options(opt):
autowaf.set_options(opt)
pass
def sub_config_and_use(conf, name, has_objects = True):
conf.recurse(name)

View File

@ -31,7 +31,7 @@ temporal_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -3,7 +3,7 @@ from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)

View File

@ -9,7 +9,7 @@ import os
VAMP_PYIN_LIB_VERSION = '0.0.0'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -1,9 +1,8 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -22,7 +22,7 @@ waveview_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'cairomm-1.0', uselib_store='CAIROMM', atleast_version='1.8.4')

View File

@ -47,7 +47,7 @@ widgets_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'cairomm-1.0', uselib_store='CAIROMM', atleast_version='1.8.4')

View File

@ -16,7 +16,7 @@ ZCONVOLVER_LIB_VERSION = '4.0.0'
I18N_PACKAGE = 'libzita-convolver'
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)

View File

@ -24,7 +24,7 @@ zresampler_sources = [
]
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -1,11 +1,10 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import waflib.Utils as Utils
import os
import sys
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
conf.load('misc')

View File

@ -5,7 +5,7 @@ import os
import sys
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
if not "dummy" in conf.env['BACKENDS']:

View File

@ -1,10 +1,9 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import re
import sys
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass

View File

@ -1,8 +1,7 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
def options(opt):
autowaf.set_options(opt)
pass
def configure(conf):
pass