NOOP, remove trailing whitespace, replace tabs in python scripts

This commit is contained in:
Robin Gareus 2015-11-29 17:52:42 +01:00
parent 0d250a0db8
commit 73d1de3b75
14 changed files with 33 additions and 33 deletions

View file

@ -349,7 +349,7 @@ def _doPyp(infileName, deps = False):
inLines = fd.readlines() inLines = fd.readlines()
if fd != sys.stdin: if fd != sys.stdin:
fd.close() fd.close()
for line in inLines: for line in inLines:
bits = re_spaces.split(line) bits = re_spaces.split(line)
@ -511,7 +511,7 @@ def build(bld):
obj.defines += [ 'WINDOWS_VST_SUPPORT' ] obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
if bld.env['build_target'] != 'mingw': if bld.env['build_target'] != 'mingw':
obj.use += [ 'X11' ] obj.use += [ 'X11' ]
if bld.is_defined('LXVST_SUPPORT'): if bld.is_defined('LXVST_SUPPORT'):
obj.source += [ 'linux_vst_gui_support.cc', 'lxvst_plugin_ui.cc' ] obj.source += [ 'linux_vst_gui_support.cc', 'lxvst_plugin_ui.cc' ]
obj.defines += [ 'LXVST_SUPPORT' ] obj.defines += [ 'LXVST_SUPPORT' ]
@ -519,7 +519,7 @@ def build(bld):
if bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT'): if bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT'):
obj.source += [ 'vst_plugin_ui.cc' ] obj.source += [ 'vst_plugin_ui.cc' ]
if bld.is_defined('PHONE_HOME'): if bld.is_defined('PHONE_HOME'):
obj.defines += [ 'PHONE_HOME' ] obj.defines += [ 'PHONE_HOME' ]
@ -590,9 +590,9 @@ def build(bld):
'HUGER' : '36', 'HUGER' : '36',
'MASSIVE' : '60', 'MASSIVE' : '60',
} }
# There is no acceptable monospace font available on older versions of OS X # There is no acceptable monospace font available on older versions of OS X
# and no API on those versions to load TTF files that will work with # and no API on those versions to load TTF files that will work with
# GTK/fontconfig/pango. # GTK/fontconfig/pango.
# #
# In addition, the ArdourMono font gets clipped for some reason on OS X # In addition, the ArdourMono font gets clipped for some reason on OS X
@ -632,9 +632,9 @@ def build(bld):
else: else:
key = "_".join (['FONT',sizename]) key = "_".join (['FONT',sizename])
fontstyle = " ".join ([basefont,points]) fontstyle = " ".join ([basefont,points])
font_subst_dict[key] = fontstyle font_subst_dict[key] = fontstyle
# @FONT_SIZE_XXXX@ # @FONT_SIZE_XXXX@
for sizename,points in iter(font_sizes.items()): for sizename,points in iter(font_sizes.items()):
key = "_".join (['FONT_SIZE',sizename]) key = "_".join (['FONT_SIZE',sizename])
@ -719,7 +719,7 @@ def build(bld):
# #
# explicitly state the use of perl here so that it works on windows too # explicitly state the use of perl here so that it works on windows too
# #
a_rule = 'perl ../tools/fmt-bindings --platform="%s" --winkey="%s" --accelmap <${SRC} >${TGT}' % (sys.platform, bld.env['WINDOWS_KEY'] ) a_rule = 'perl ../tools/fmt-bindings --platform="%s" --winkey="%s" --accelmap <${SRC} >${TGT}' % (sys.platform, bld.env['WINDOWS_KEY'] )
for b in [ 'mnemonic-us' ] : for b in [ 'mnemonic-us' ] :
obj = bld( obj = bld(
@ -769,7 +769,7 @@ def i18n(bld):
'Paul Davis') 'Paul Davis')
appdata_i18n_pot(bld) appdata_i18n_pot(bld)
appdata_i18n_po(bld) appdata_i18n_po(bld)
def i18n_pot(bld): def i18n_pot(bld):
I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR'] I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR']
autowaf.build_i18n_pot(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources, autowaf.build_i18n_pot(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
@ -781,7 +781,7 @@ def i18n_po(bld):
autowaf.build_i18n_po(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources, autowaf.build_i18n_po(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
'Paul Davis') 'Paul Davis')
appdata_i18n_po(bld) appdata_i18n_po(bld)
def i18n_mo(bld): def i18n_mo(bld):
I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR'] I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR']
autowaf.build_i18n_mo(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources, autowaf.build_i18n_mo(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,

View file

@ -32,7 +32,7 @@ def build(bld):
VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw': if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
return return
# just the normal executable version of the GTK GUI # just the normal executable version of the GTK GUI
obj = bld (features = 'cxx c cxxprogram') obj = bld (features = 'cxx c cxxprogram')
# this program does not do the whole hidden symbols thing # this program does not do the whole hidden symbols thing

View file

@ -339,7 +339,7 @@ def build(bld):
sources = list(libardour_sources) sources = list(libardour_sources)
if bld.is_tracks_build(): if bld.is_tracks_build():
sources += [ 'engine_state_controller.cc' ] sources += [ 'engine_state_controller.cc' ]
# Library # Library
if bld.is_defined ('INTERNAL_SHARED_LIBS'): if bld.is_defined ('INTERNAL_SHARED_LIBS'):
obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=sources) obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=sources)
@ -424,12 +424,12 @@ def build(bld):
elif bld.env['build_target'] == 'mingw': elif bld.env['build_target'] == 'mingw':
# usability of the 64 bit windows assembler depends on the compiler target, # usability of the 64 bit windows assembler depends on the compiler target,
# not the build host, which in turn can only be inferred from the name # not the build host, which in turn can only be inferred from the name
# of the compiler. # of the compiler.
if re.search ('x86_64-w64', str(bld.env['CC'])): if re.search ('x86_64-w64', str(bld.env['CC'])):
obj.source += [ 'sse_functions_xmm.cc' ] obj.source += [ 'sse_functions_xmm.cc' ]
obj.source += [ 'sse_functions_64bit_win.s', 'sse_avx_functions_64bit_win.s' ] obj.source += [ 'sse_functions_64bit_win.s', 'sse_avx_functions_64bit_win.s' ]
avx_sources = [ 'sse_functions_avx.cc' ] avx_sources = [ 'sse_functions_avx.cc' ]
if avx_sources: if avx_sources:
# as long as we want to use AVX intrinsics in this file, # as long as we want to use AVX intrinsics in this file,
# compile it with -mavx flag - append avx flag to the existing # compile it with -mavx flag - append avx flag to the existing
@ -442,9 +442,9 @@ def build(bld):
includes = [ '.' ], includes = [ '.' ],
use = [ 'libtimecode', 'libpbd', 'libevoral', ], use = [ 'libtimecode', 'libpbd', 'libevoral', ],
target = 'sse_avx_functions') target = 'sse_avx_functions')
obj.use += ['sse_avx_functions' ] obj.use += ['sse_avx_functions' ]
# i18n # i18n
if bld.is_defined('ENABLE_NLS'): if bld.is_defined('ENABLE_NLS'):
mo_files = bld.path.ant_glob('po/*.mo') mo_files = bld.path.ant_glob('po/*.mo')

View file

@ -62,7 +62,7 @@ def configure(conf):
def build(bld): def build(bld):
obj = bld(features = 'c cxx cxxshlib') obj = bld(features = 'c cxx cxxshlib')
obj.source = [ obj.source = [
'jack_api.cc', 'jack_api.cc',
'jack_connection.cc', 'jack_connection.cc',
'jack_audiobackend.cc', 'jack_audiobackend.cc',
@ -74,7 +74,7 @@ def build(bld):
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'jack_audiobackend' obj.name = 'jack_audiobackend'
obj.target = 'jack_audiobackend' obj.target = 'jack_audiobackend'
obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"', obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"',
'ARDOURBACKEND_DLL_EXPORTS' 'ARDOURBACKEND_DLL_EXPORTS'
] ]
obj.use = 'libardour libpbd ardouralsautil' obj.use = 'libardour libpbd ardouralsautil'
@ -111,7 +111,7 @@ def build(bld):
# #
# device discovery code in the jack backend needs ALSA # device discovery code in the jack backend needs ALSA
# on Linux. # on Linux.
# #
if re.search ("linux", sys.platform) != None: if re.search ("linux", sys.platform) != None:
obj.uselib += [ 'ALSA' ] obj.uselib += [ 'ALSA' ]

View file

@ -19,7 +19,7 @@ def sub_config_and_use(conf, name, has_objects = True):
def configure(conf): def configure(conf):
autowaf.set_recursive() autowaf.set_recursive()
autowaf.configure(conf) autowaf.configure(conf)
backends = conf.env['BACKENDS'] backends = conf.env['BACKENDS']
for i in backends: for i in backends:
sub_config_and_use(conf, i) sub_config_and_use(conf, i)

View file

@ -81,7 +81,7 @@ def build(bld):
obj.cxxflags = [ '-fPIC' ] obj.cxxflags = [ '-fPIC' ]
obj.cflags = [ '-fPIC' ] obj.cflags = [ '-fPIC' ]
obj.defines = [ ] obj.defines = [ ]
obj.export_includes = ['.'] obj.export_includes = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.uselib = 'SIGCPP CAIROMM GTKMM BOOST' obj.uselib = 'SIGCPP CAIROMM GTKMM BOOST'
@ -91,7 +91,7 @@ def build(bld):
obj.vnum = CANVAS_LIB_VERSION obj.vnum = CANVAS_LIB_VERSION
obj.install_path = bld.env['LIBDIR'] obj.install_path = bld.env['LIBDIR']
obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ] obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']: if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
manual_tests = ''' manual_tests = '''
@ -114,7 +114,7 @@ def build(bld):
manual_testobj.name = 'libcanvas-manual-test-%s' % name manual_testobj.name = 'libcanvas-manual-test-%s' % name
manual_testobj.target = target manual_testobj.target = target
manual_testobj.install_path = '' manual_testobj.install_path = ''
unit_testobj = bld.new_task_gen('cxx', 'program') unit_testobj = bld.new_task_gen('cxx', 'program')
unit_testobj.source = ''' unit_testobj.source = '''
test/group.cc test/group.cc
@ -139,7 +139,7 @@ def build(bld):
unit_testobj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"'] unit_testobj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
unit_testobj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"'] unit_testobj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"']
unit_testobj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"'] unit_testobj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
benchmarks = ''' benchmarks = '''
benchmark/items_at_point.cc benchmark/items_at_point.cc
benchmark/render_parts.cc benchmark/render_parts.cc

View file

@ -124,7 +124,7 @@ def build(bld):
lang = os.path.basename(mo.srcpath()).replace('.mo', '') lang = os.path.basename(mo.srcpath()).replace('.mo', '')
bld.install_as (os.path.join(os.path.normpath(bld.env['LOCALEDIR']), lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'), bld.install_as (os.path.join(os.path.normpath(bld.env['LOCALEDIR']), lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'),
mo) mo)
def i18n(bld): def i18n(bld):
autowaf.build_i18n(bld, top, 'libs/gtkmm2ext', I18N_PACKAGE, gtkmm2ext_sources, autowaf.build_i18n(bld, top, 'libs/gtkmm2ext', I18N_PACKAGE, gtkmm2ext_sources,
'Paul Davis') 'Paul Davis')

View file

@ -74,7 +74,7 @@ def build(bld):
obj.vnum = LIBMIDIPP_LIB_VERSION obj.vnum = LIBMIDIPP_LIB_VERSION
obj.install_path = bld.env['LIBDIR'] obj.install_path = bld.env['LIBDIR']
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'): if bld.env['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 = '''

View file

@ -9,7 +9,7 @@ out = 'build'
def options(opt): def options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def sub_config_and_use(conf, name, has_objects = True): def sub_config_and_use(conf, name, has_objects = True):

View file

@ -176,6 +176,6 @@ def build(bld):
testobj.defines = [ 'PACKAGE="' + I18N_PACKAGE + '"' ] testobj.defines = [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
if sys.platform != 'darwin' and bld.env['build_target'] != 'mingw': if sys.platform != 'darwin' and bld.env['build_target'] != 'mingw':
testobj.linkflags = ['-lrt'] testobj.linkflags = ['-lrt']
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -18,7 +18,7 @@ def build(bld):
faderport.cc faderport.cc
gui.cc gui.cc
faderport_interface.cc faderport_interface.cc
operations.cc operations.cc
''' '''
obj.export_includes = ['.'] obj.export_includes = ['.']
obj.defines = [ 'PACKAGE="ardour_faderport"' ] obj.defines = [ 'PACKAGE="ardour_faderport"' ]

View file

@ -38,7 +38,7 @@ def configure(conf):
autowaf.set_recursive() autowaf.set_recursive()
autowaf.configure(conf) autowaf.configure(conf)
#autowaf.check_pkg(conf, 'libusb-1.0', uselib_store='USB', mandatory=False) #autowaf.check_pkg(conf, 'libusb-1.0', uselib_store='USB', mandatory=False)
#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)

View file

@ -8,9 +8,9 @@
# the user's hardware configuration. This makes any pre-existing # the user's hardware configuration. This makes any pre-existing
# templates potentially wrong/useless/annoying for anyone who # templates potentially wrong/useless/annoying for anyone who
# uses a different hardware input configuration than was used # uses a different hardware input configuration than was used
# to create the templates. # to create the templates.
# #
# Templates should be created by the user, not by us. # Templates should be created by the user, not by us.
# #
# I modified the code below, but have not tested it. For now # I modified the code below, but have not tested it. For now
# this directory will be removed from the top level wscript's # this directory will be removed from the top level wscript's

View file

@ -936,7 +936,7 @@ int main () { int x = SFC_RF64_AUTO_DOWNGRADE; return 0; }
if have_rf64_riff_support: if have_rf64_riff_support:
conf.env.append_value('CXXFLAGS', "-DHAVE_RF64_RIFF") conf.env.append_value('CXXFLAGS', "-DHAVE_RF64_RIFF")
conf.env.append_value('CFLAGS', "-DHAVE_RF64_RIFF") conf.env.append_value('CFLAGS', "-DHAVE_RF64_RIFF")
if Options.options.dist_target == 'mingw': if Options.options.dist_target == 'mingw':
Options.options.fpu_optimization = True Options.options.fpu_optimization = True
conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS') conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS')