Fix Python whitespace (follow PEP8 guidelines, reformatted by Python Reindent)

git-svn-id: svn://localhost/ardour2/branches/3.0@9409 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2011-04-22 22:15:21 +00:00
parent 57bf3cf063
commit 4769db412d
33 changed files with 1700 additions and 1728 deletions

View file

@ -12,7 +12,7 @@ def configure(conf):
def build(bld): def build(bld):
presets = glob.glob (os.path.join(bld.get_curdir(), '*.preset')) presets = glob.glob (os.path.join(bld.get_curdir(), '*.preset'))
formats = glob.glob (os.path.join(bld.get_curdir(), '*.format')) formats = glob.glob (os.path.join(bld.get_curdir(), '*.format'))
bld.install_files (os.path.join(bld.env['DATADIR'], 'ardour3', 'export'), bld.install_files (os.path.join(bld.env['DATADIR'], 'ardour3', 'export'),
presets + formats) presets + formats)
def set_options(opt): def set_options(opt):

View file

@ -230,274 +230,273 @@ gtk2_ardour_sources = [
] ]
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.build_version_files(path_prefix+'version.h', path_prefix+'version.cc', autowaf.build_version_files(path_prefix+'version.h', path_prefix+'version.cc',
'gtk2_ardour', MAJOR, MINOR, MICRO) 'gtk2_ardour', MAJOR, MINOR, MICRO)
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
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')
# #
# TODO: Insert a sanity check for on OS X # TODO: Insert a sanity check for on OS X
# to ensure that CoreAudio is present.... # to ensure that CoreAudio is present....
# Really shouldn't these checks be in AutoWaf? # Really shouldn't these checks be in AutoWaf?
# #
autowaf.check_pkg(conf, 'flac', uselib_store='FLAC', atleast_version='1.2.1') autowaf.check_pkg(conf, 'flac', uselib_store='FLAC', atleast_version='1.2.1')
autowaf.check_pkg(conf, 'gthread', uselib_store='GTHREAD', atleast_version='2.10.1') autowaf.check_pkg(conf, 'gthread', uselib_store='GTHREAD', atleast_version='2.10.1')
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18') autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18')
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.18') autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.18')
autowaf.check_pkg(conf, 'libgnomecanvasmm-2.6', uselib_store='GNOMECANVASMM', atleast_version='2.16') autowaf.check_pkg(conf, 'libgnomecanvasmm-2.6', uselib_store='GNOMECANVASMM', atleast_version='2.16')
autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2') autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
conf.check_tool('misc') # subst tool conf.check_tool('misc') # subst tool
conf.write_config_header('gtk2ardour-config.h') conf.write_config_header('gtk2ardour-config.h')
# Boost headers # Boost headers
autowaf.check_header(conf, 'boost/shared_ptr.hpp') autowaf.check_header(conf, 'boost/shared_ptr.hpp')
autowaf.check_header(conf, 'boost/weak_ptr.hpp') autowaf.check_header(conf, 'boost/weak_ptr.hpp')
# Add a waf `feature' to allow compilation of things using winegcc # Add a waf `feature' to allow compilation of things using winegcc
from TaskGen import feature from TaskGen import feature
@feature("wine") @feature("wine")
def set_winegcc(self): def set_winegcc(self):
self.env.LINK_CXX = self.env.LINK_CC = 'wineg++' self.env.LINK_CXX = self.env.LINK_CC = 'wineg++'
self.env.CC = 'winegcc' self.env.CC = 'winegcc'
def build_color_scheme(path, prefix): def build_color_scheme(path, prefix):
f = open (path, 'r') f = open (path, 'r')
color_scheme = '' color_scheme = ''
for line in f: for line in f:
if re.search ('^#@color', line): if re.search ('^#@color', line):
line.strip() # remove newline line.strip() # remove newline
words = line.split() words = line.split()
if len(color_scheme): if len(color_scheme):
color_scheme += ';' color_scheme += ';'
color_scheme += prefix color_scheme += prefix
color_scheme += '_' color_scheme += '_'
color_scheme += words[1] color_scheme += words[1]
color_scheme += ':' color_scheme += ':'
color_scheme += words[2] color_scheme += words[2]
f.close() f.close()
return color_scheme return color_scheme
def build(bld): def build(bld):
# GTK front-end; if we're using VST we build this as a shared library, otherwise # GTK front-end; if we're using VST we build this as a shared library, otherwise
# it's a normal executabale # it's a normal executabale
if bld.env['VST_SUPPORT']: if bld.env['VST_SUPPORT']:
obj = bld.new_task_gen(features = 'cxx cc cshlib') obj = bld.new_task_gen(features = 'cxx cc cshlib')
else: else:
obj = bld.new_task_gen(features = 'cxx cc cprogram') obj = bld.new_task_gen(features = 'cxx cc cprogram')
obj.includes = ['.'] obj.includes = ['.']
obj.source = gtk2_ardour_sources obj.source = gtk2_ardour_sources
obj.name = 'gtk2_ardour' obj.name = 'gtk2_ardour'
if bld.env['VST_SUPPORT']: if bld.env['VST_SUPPORT']:
obj.target = 'gtk2_ardour' obj.target = 'gtk2_ardour'
obj.includes += ['../libs/fst'] obj.includes += ['../libs/fst']
else: else:
obj.target = 'ardour-3.0' obj.target = 'ardour-3.0'
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
obj.uselib = 'UUID FLAC GLIBMM GTHREAD GTK OGG ALSA CURL DL' obj.uselib = 'UUID FLAC GLIBMM GTHREAD GTK OGG ALSA CURL DL'
obj.uselib += ' GTKMM GNOMECANVASMM ' obj.uselib += ' GTKMM GNOMECANVASMM '
obj.uselib += ' AUDIOUNITS OSX GTKOSX ' obj.uselib += ' AUDIOUNITS OSX GTKOSX '
obj.uselib_local = '''libpbd libmidipp libtaglib libardour libardour_cp obj.uselib_local = '''libpbd libmidipp libtaglib libardour libardour_cp
libgtkmm2ext libtaglib libgnomecanvas-2''' libgtkmm2ext libtaglib libgnomecanvas-2'''
if sys.platform == 'darwin': if sys.platform == 'darwin':
obj.uselib_local + ' libappleutility' obj.uselib_local + ' libappleutility'
obj.cflags = ['-DPACKAGE="gtk2_ardour"'] obj.cflags = ['-DPACKAGE="gtk2_ardour"']
obj.cxxflags = ['-DPACKAGE="gtk2_ardour"'] obj.cxxflags = ['-DPACKAGE="gtk2_ardour"']
obj.cxxflags += ['-DVERSIONSTRING="' + bld.env['VERSION'] + '"'] obj.cxxflags += ['-DVERSIONSTRING="' + bld.env['VERSION'] + '"']
obj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"'] obj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
obj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"'] obj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"']
obj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"'] obj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
obj.cxxflags += ['-DLOCALEDIR="' + os.path.join( obj.cxxflags += ['-DLOCALEDIR="' + os.path.join(
os.path.normpath(bld.env['DATADIR']), 'locale') + '"'] os.path.normpath(bld.env['DATADIR']), 'locale') + '"']
obj.cxxflags += ['-DPROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"'] obj.cxxflags += ['-DPROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"']
obj.cxxflags += ['-I../libs'] obj.cxxflags += ['-I../libs']
if bld.env['HAVE_SLV2']: if bld.env['HAVE_SLV2']:
obj.source += [ 'lv2_plugin_ui.cc' ] obj.source += [ 'lv2_plugin_ui.cc' ]
obj.uselib += ' SLV2 ' obj.uselib += ' SLV2 '
if bld.env['FREESOUND']: if bld.env['FREESOUND']:
obj.source += [ 'sfdb_freesound_mootcher.cc' ] obj.source += [ 'sfdb_freesound_mootcher.cc' ]
if bld.env['VST_SUPPORT']: if bld.env['VST_SUPPORT']:
obj.source += [ 'vst_pluginui.cc' ] obj.source += [ 'vst_pluginui.cc' ]
obj.cxxflags += [ '-DVST_SUPPORT' ] obj.cxxflags += [ '-DVST_SUPPORT' ]
if bld.env['PHONE_HOME']: if bld.env['PHONE_HOME']:
obj.cxxflags += [ '-DPHONE_HOME' ] obj.cxxflags += [ '-DPHONE_HOME' ]
if bld.env['COREAUDIO']: if bld.env['COREAUDIO']:
TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc'] TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
obj.source += [ 'cocoacarbon.mm', 'au_pluginui.mm' ] obj.source += [ 'cocoacarbon.mm', 'au_pluginui.mm' ]
obj.uselib_local += ' libappleutility ' obj.uselib_local += ' libappleutility '
else: else:
obj.source += [ 'x11.cc' ] obj.source += [ 'x11.cc' ]
if bld.env['VST_SUPPORT']: if bld.env['VST_SUPPORT']:
# If we require VST support we build a stub main() and the FST library here using # If we require VST support we build a stub main() and the FST library here using
# winegcc, and link it to the GTK front-end library # winegcc, and link it to the GTK front-end library
obj = bld.new_task_gen (features = 'cxx cc cprogram wine') obj = bld.new_task_gen (features = 'cxx cc cprogram wine')
obj.source = ''' obj.source = '''
../libs/fst/fst.c ../libs/fst/fst.c
../libs/fst/fstinfofile.c ../libs/fst/fstinfofile.c
../libs/fst/vsti.c ../libs/fst/vsti.c
../libs/fst/vstwin.c ../libs/fst/vstwin.c
../vst/winmain.c ../vst/winmain.c
''' '''
obj.includes = '../libs/fst' obj.includes = '../libs/fst'
obj.target = 'ardour-3.0-vst' obj.target = 'ardour-3.0-vst'
obj.linkflags = ['-mwindows', '-Wl,--export-dynamic', '-lpthread'] obj.linkflags = ['-mwindows', '-Wl,--export-dynamic', '-lpthread']
obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX'] obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
obj.uselib = 'ALSA' obj.uselib = 'ALSA'
obj.uselib_local = '''libpbd libmidipp libtaglib libardour libardour_cp libgtkmm2ext libtaglib gtk2_ardour''' obj.uselib_local = '''libpbd libmidipp libtaglib libardour libardour_cp libgtkmm2ext libtaglib gtk2_ardour'''
# Wrappers # Wrappers
wrapper_subst_dict = { wrapper_subst_dict = {
'INSTALL_PREFIX' : bld.env['PREFIX'], 'INSTALL_PREFIX' : bld.env['PREFIX'],
'LIBDIR' : os.path.normpath(bld.env['LIBDIRNAME']), 'LIBDIR' : os.path.normpath(bld.env['LIBDIRNAME']),
'LIBS' : 'build/default/libs', 'LIBS' : 'build/default/libs',
'VERSION' : '3.0', 'VERSION' : '3.0',
'EXECUTABLE' : 'build/default/gtk2_ardour/ardour-3.0' 'EXECUTABLE' : 'build/default/gtk2_ardour/ardour-3.0'
}
obj = bld.new_task_gen('subst')
obj.source = 'ardev_common.sh.in'
obj.target = 'ardev_common_waf.sh'
obj.chmod = 0755
obj.dict = wrapper_subst_dict
obj = bld.new_task_gen('subst')
obj.source = 'ardour.sh.in'
obj.target = 'ardour3'
obj.chmod = 0755
obj.dict = wrapper_subst_dict
obj.install_path = bld.env['BINDIR']
# Font configuration
dark_rc_subst_dict = {}
light_rc_subst_dict = {}
font_sizes = {}
base_font = ""
# Set up font sizes
if bld.env['IS_OSX']: # OS X fonts
basefont = "Lucida Grande"
font_sizes = {
'TINY' : '7',
'SMALLER' : '9',
'SMALL' : '10',
'NORMAL' : '11',
'BIG' : '12',
'BIGGER' : '14',
'LARGE' : '18',
'LARGER' : '28',
'HUGER' : '36',
'MASSIVE' : '60'
}
else: # Linux/X11 fonts
basefont = '' # unspecified - use system defaults
font_sizes = {
'TINY' : '6',
'SMALLER' : '8',
'SMALL' : '9',
'NORMAL' : '10',
'BIG' : '14',
'BIGGER' : '16',
'LARGE' : '18',
'LARGER' : '24',
'HUGER' : '34',
'MASSIVE' : '60'
} }
obj = bld.new_task_gen('subst') # Set up font substitution dictionary
obj.source = 'ardev_common.sh.in' for style in ['', 'BOLD', 'ITALIC']:
obj.target = 'ardev_common_waf.sh' for sizename,points in iter(font_sizes.items()):
obj.chmod = 0755 if (len (style)):
obj.dict = wrapper_subst_dict key = "_".join (['FONT',style,sizename])
fontstyle = " ".join ([basefont,style.lower(),points])
else:
key = "_".join (['FONT',sizename])
fontstyle = " ".join ([basefont,points])
obj = bld.new_task_gen('subst') dark_rc_subst_dict[key] = fontstyle
obj.source = 'ardour.sh.in' light_rc_subst_dict[key] = fontstyle
obj.target = 'ardour3'
obj.chmod = 0755
obj.dict = wrapper_subst_dict
obj.install_path = bld.env['BINDIR']
# Font configuration # RC files
dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_dark.rc.in', 'ARDOUR_DARK')
dark_rc_subst_dict['COLPREFIX'] = 'ARDOUR_DARK'
light_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_light.rc.in', 'ARDOUR_LIGHT')
light_rc_subst_dict['COLPREFIX'] = 'ARDOUR_LIGHT'
dark_rc_subst_dict = {} obj = bld.new_task_gen('subst')
light_rc_subst_dict = {} obj.source = 'ardour3_ui_dark.rc.in'
font_sizes = {} obj.target = 'ardour3_ui_dark.rc'
base_font = "" obj.dict = dark_rc_subst_dict
obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
# Set up font sizes obj = bld.new_task_gen('subst')
if bld.env['IS_OSX']: # OS X fonts obj.source = 'ardour3_ui_light.rc.in'
basefont = "Lucida Grande" obj.target = 'ardour3_ui_light.rc'
font_sizes = { obj.dict = light_rc_subst_dict
'TINY' : '7', obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
'SMALLER' : '9',
'SMALL' : '10',
'NORMAL' : '11',
'BIG' : '12',
'BIGGER' : '14',
'LARGE' : '18',
'LARGER' : '28',
'HUGER' : '36',
'MASSIVE' : '60'
}
else: # Linux/X11 fonts
basefont = '' # unspecified - use system defaults
font_sizes = {
'TINY' : '6',
'SMALLER' : '8',
'SMALL' : '9',
'NORMAL' : '10',
'BIG' : '14',
'BIGGER' : '16',
'LARGE' : '18',
'LARGER' : '24',
'HUGER' : '34',
'MASSIVE' : '60'
}
# Set up font substitution dictionary # Menus
for style in ['', 'BOLD', 'ITALIC']: menus_argv = []
for sizename,points in iter(font_sizes.items()): if bld.env['GTKOSX']:
if (len (style)): menus_argv = [ '-E', '-P', '-DGTKOSX' ]
key = "_".join (['FONT',style,sizename]) else:
fontstyle = " ".join ([basefont,style.lower(),points]) menus_argv = [ '-E', '-P' ]
else: obj = bld.new_task_gen('command-output')
key = "_".join (['FONT',sizename]) obj.command = 'cpp'
fontstyle = " ".join ([basefont,points]) obj.command_is_external = True
obj.no_inputs = True
dark_rc_subst_dict[key] = fontstyle obj.argv = menus_argv
light_rc_subst_dict[key] = fontstyle obj.stdin = 'ardour.menus.in'
obj.stdout = 'ardour.menus'
bld.install_files(os.path.join(bld.env['CONFIGDIR'], 'ardour3'), 'ardour.menus')
# RC files # Keybindings
dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_dark.rc.in', 'ARDOUR_DARK')
dark_rc_subst_dict['COLPREFIX'] = 'ARDOUR_DARK'
light_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_light.rc.in', 'ARDOUR_LIGHT')
light_rc_subst_dict['COLPREFIX'] = 'ARDOUR_LIGHT'
obj = bld.new_task_gen('subst') # 'SAE-de-keypad', 'SAE-de-nokeypad', 'SAE-us-keypad', 'SAE-us-nokeypad', 'ergonomic-us'
obj.source = 'ardour3_ui_dark.rc.in'
obj.target = 'ardour3_ui_dark.rc' for b in [ 'mnemonic-us' ] :
obj.dict = dark_rc_subst_dict obj = bld.new_task_gen (
target = b + '.bindings',
source = b + '.bindings.in',
rule = '../tools/fmt-bindings --winkey="%s" --accelmap <${SRC} >${TGT}' % bld.env['WINDOWS_KEY']
)
obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
obj = bld.new_task_gen('subst') # not modified at present
obj.source = 'ardour3_ui_light.rc.in' bld.install_files(os.path.join(bld.env['CONFIGDIR'], 'ardour3'), 'step_editing.bindings')
obj.target = 'ardour3_ui_light.rc'
obj.dict = light_rc_subst_dict
obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
# Menus # Icons/Images
menus_argv = [] bld.install_files('${DATADIR}/ardour3/icons', 'icons/*.png')
if bld.env['GTKOSX']: bld.install_files('${DATADIR}/ardour3/pixmaps', 'pixmaps/*.xpm')
menus_argv = [ '-E', '-P', '-DGTKOSX' ] bld.install_files('${DATADIR}/ardour3', 'splash.png')
else:
menus_argv = [ '-E', '-P' ]
obj = bld.new_task_gen('command-output')
obj.command = 'cpp'
obj.command_is_external = True
obj.no_inputs = True
obj.argv = menus_argv
obj.stdin = 'ardour.menus.in'
obj.stdout = 'ardour.menus'
bld.install_files(os.path.join(bld.env['CONFIGDIR'], 'ardour3'), 'ardour.menus')
# Keybindings # Default UI configuration
bld.install_files('${CONFIGDIR}/ardour3', 'ardour3_ui_default.conf')
# 'SAE-de-keypad', 'SAE-de-nokeypad', 'SAE-us-keypad', 'SAE-us-nokeypad', 'ergonomic-us' # Default export stuff
bld.install_files('${CONFIGDIR}/ardour3/export', 'export/*.format')
for b in [ 'mnemonic-us' ] : # i18n
obj = bld.new_task_gen ( if bld.env['ENABLE_NLS']:
target = b + '.bindings', mo_files = glob.glob (os.path.join (bld.get_curdir(), 'po/*.mo'))
source = b + '.bindings.in', for mo in mo_files:
rule = '../tools/fmt-bindings --winkey="%s" --accelmap <${SRC} >${TGT}' % bld.env['WINDOWS_KEY'] lang = os.path.basename (mo).replace ('.mo', '')
) bld.install_as (os.path.join (bld.env['PREFIX'], 'share', 'locale', lang, 'LC_MESSAGES', APPNAME + '.mo'), mo)
obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
# not modified at present
bld.install_files(os.path.join(bld.env['CONFIGDIR'], 'ardour3'), 'step_editing.bindings')
# Icons/Images
bld.install_files('${DATADIR}/ardour3/icons', 'icons/*.png')
bld.install_files('${DATADIR}/ardour3/pixmaps', 'pixmaps/*.xpm')
bld.install_files('${DATADIR}/ardour3', 'splash.png')
# Default UI configuration
bld.install_files('${CONFIGDIR}/ardour3', 'ardour3_ui_default.conf')
# Default export stuff
bld.install_files('${CONFIGDIR}/ardour3/export', 'export/*.format')
# i18n
if bld.env['ENABLE_NLS']:
mo_files = glob.glob (os.path.join (bld.get_curdir(), 'po/*.mo'))
for mo in mo_files:
lang = os.path.basename (mo).replace ('.mo', '')
bld.install_as (os.path.join (bld.env['PREFIX'], 'share', 'locale', lang, 'LC_MESSAGES', APPNAME + '.mo'), mo)
def i18n(bld): def i18n(bld):
autowaf.build_i18n (bld, srcdir, 'gtk2_ardour', APPNAME, gtk2_ardour_sources) autowaf.build_i18n (bld, srcdir, 'gtk2_ardour', APPNAME, gtk2_ardour_sources)

View file

@ -21,24 +21,24 @@ libappleutility_sources = [
] ]
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.uselib = 'AUDIOUNITS OSX' obj.uselib = 'AUDIOUNITS OSX'
obj.source = libappleutility_sources obj.source = libappleutility_sources
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libappleutility' obj.name = 'libappleutility'
obj.target = 'appleutility' obj.target = 'appleutility'
obj.install_path = os.path.join(bld.env['LIBDIR'], 'appleutility') obj.install_path = os.path.join(bld.env['LIBDIR'], 'appleutility')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()
def i18n(bld): def i18n(bld):
pass pass

View file

@ -215,182 +215,182 @@ libardour_sources = [
] ]
def flac_supported(): 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) == None return re.search ('unknown format', out) == 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) == None return re.search ('unknown format', out) == None
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.build_version_files(path_prefix+'ardour/version.h', path_prefix+'version.cc', autowaf.build_version_files(path_prefix+'ardour/version.h', path_prefix+'version.cc',
'libardour3', MAJOR, MINOR, MICRO) 'libardour3', MAJOR, MINOR, MICRO)
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx gas') conf.check_tool('compiler_cxx gas')
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', atleast_version='0.3.2') autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', atleast_version='0.3.2')
autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.118.2') autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.118.2')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML') autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF', atleast_version='0.4.0') autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF', atleast_version='0.4.0')
autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE', atleast_version='0.1.0') autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE', atleast_version='0.1.0')
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0') autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
autowaf.check_pkg(conf, 'slv2', uselib_store='SLV2', atleast_version='0.6.4', mandatory=False) autowaf.check_pkg(conf, 'slv2', uselib_store='SLV2', atleast_version='0.6.4', mandatory=False)
autowaf.check_pkg(conf, 'slv2', uselib_store='NEW_SLV2', atleast_version='0.7.0', mandatory=False) autowaf.check_pkg(conf, 'slv2', uselib_store='NEW_SLV2', atleast_version='0.7.0', mandatory=False)
autowaf.check_pkg(conf, 'suil', uselib_store='SUIL', atleast_version='0.1.0', mandatory=False) autowaf.check_pkg(conf, 'suil', uselib_store='SUIL', atleast_version='0.1.0', mandatory=False)
autowaf.check_pkg(conf, 'rasqal', uselib_store='RASQAL', atleast_version='0.9.14', mandatory=False) autowaf.check_pkg(conf, 'rasqal', uselib_store='RASQAL', atleast_version='0.9.14', mandatory=False)
autowaf.check_pkg(conf, 'soundtouch-1.0', uselib_store='SOUNDTOUCH', mandatory=False) autowaf.check_pkg(conf, 'soundtouch-1.0', uselib_store='SOUNDTOUCH', mandatory=False)
autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False) autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False)
autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2') autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
autowaf.check_pkg(conf, 'flac', uselib_store='FLAC', atleast_version='1.2.1') autowaf.check_pkg(conf, 'flac', uselib_store='FLAC', atleast_version='1.2.1')
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')
# we don't try to detect this, since its part of our source tree # we don't try to detect this, since its part of our source tree
conf.define('HAVE_RUBBERBAND', 1) # controls whether we think we have it conf.define('HAVE_RUBBERBAND', 1) # controls whether we think we have it
conf.define('USE_RUBBERBAND', 1) # controls whether we actually use it conf.define('USE_RUBBERBAND', 1) # controls whether we actually use it
conf.define('CURRENT_SESSION_FILE_VERSION', CURRENT_SESSION_FILE_VERSION) conf.define('CURRENT_SESSION_FILE_VERSION', CURRENT_SESSION_FILE_VERSION)
conf.check(header_name='sys/vfs.h', define_name='HAVE_SYS_VFS_H') conf.check(header_name='sys/vfs.h', define_name='HAVE_SYS_VFS_H')
conf.check(header_name='wordexp.h', define_name='HAVE_WORDEXP') conf.check(header_name='wordexp.h', define_name='HAVE_WORDEXP')
conf.check(header_name='jack/session.h', uselib = [ 'JACK' ], define_name='HAVE_JACK_SESSION') conf.check(header_name='jack/session.h', uselib = [ 'JACK' ], define_name='HAVE_JACK_SESSION')
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD') conf.check(header_name='unistd.h', define_name='HAVE_UNISTD')
conf.check_cc(fragment = "#include <jack/jack.h>\nvoid callback (int code, const char* reason, void* arg) { return; }\nint main(int argc, char **argv) { jack_client_t* c; jack_on_info_shutdown (c, callback, (void*) 0); return 0; }\n",
uselib= [ 'JACK' ],
msg = 'Checking for jack_on_info_shutdown',
define_name = 'HAVE_JACK_ON_INFO_SHUTDOWN',
okmsg = 'present')
missing_jack_message = 'missing - a version of JACK that supports jack_port_set_latency_range() is required to compile Ardour3\nCurrently this means using JACK version 0.120.1 from http://www.jackaudio.org/download\n' conf.check_cc(fragment = "#include <jack/jack.h>\nvoid callback (int code, const char* reason, void* arg) { return; }\nint main(int argc, char **argv) { jack_client_t* c; jack_on_info_shutdown (c, callback, (void*) 0); return 0; }\n",
uselib= [ 'JACK' ],
msg = 'Checking for jack_on_info_shutdown',
define_name = 'HAVE_JACK_ON_INFO_SHUTDOWN',
okmsg = 'present')
conf.check_cc(fragment = "#include <jack/jack.h>\nint main(int argc, char **argv) { jack_port_t* p; jack_latency_range_t r; jack_port_set_latency_range (p, JackCaptureLatency, &r); return 0; }\n", missing_jack_message = 'missing - a version of JACK that supports jack_port_set_latency_range() is required to compile Ardour3\nCurrently this means using JACK version 0.120.1 from http://www.jackaudio.org/download\n'
uselib = [ 'JACK' ],
msg = 'Checking for new JACK latency API',
okmsg = 'present',
mandatory = True,
errmsg = missing_jack_message)
conf.check_cc(fragment = '#include <jack/jack.h>\nint main(int argc, char **argv) { jack_port_type_get_buffer_size ((jack_client_t*)0, ""); }\n', conf.check_cc(fragment = "#include <jack/jack.h>\nint main(int argc, char **argv) { jack_port_t* p; jack_latency_range_t r; jack_port_set_latency_range (p, JackCaptureLatency, &r); return 0; }\n",
uselib = [ 'JACK' ], uselib = [ 'JACK' ],
msg = 'Checking for new jack_port_type_get_buffer_size', msg = 'Checking for new JACK latency API',
okmsg = 'present', okmsg = 'present',
mandatory = True, mandatory = True,
errmsg = missing_jack_message) errmsg = missing_jack_message)
if flac_supported():
conf.define ('HAVE_FLAC', 1)
if ogg_supported():
conf.define ('HAVE_OGG', 1)
conf.write_config_header('libardour-config.h') conf.check_cc(fragment = '#include <jack/jack.h>\nint main(int argc, char **argv) { jack_port_type_get_buffer_size ((jack_client_t*)0, ""); }\n',
uselib = [ 'JACK' ],
msg = 'Checking for new jack_port_type_get_buffer_size',
okmsg = 'present',
mandatory = True,
errmsg = missing_jack_message)
# Boost headers if flac_supported():
autowaf.check_header(conf, 'boost/shared_ptr.hpp') conf.define ('HAVE_FLAC', 1)
autowaf.check_header(conf, 'boost/weak_ptr.hpp') if ogg_supported():
autowaf.check_header(conf, 'boost/scoped_ptr.hpp') conf.define ('HAVE_OGG', 1)
autowaf.check_header(conf, 'boost/ptr_container/ptr_list.hpp')
conf.write_config_header('libardour-config.h')
# Boost headers
autowaf.check_header(conf, 'boost/shared_ptr.hpp')
autowaf.check_header(conf, 'boost/weak_ptr.hpp')
autowaf.check_header(conf, 'boost/scoped_ptr.hpp')
autowaf.check_header(conf, 'boost/ptr_container/ptr_list.hpp')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = libardour_sources obj.source = libardour_sources
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.', '../surfaces/control_protocol', '..'] obj.includes = ['.', '../surfaces/control_protocol', '..']
obj.name = 'libardour' obj.name = 'libardour'
obj.target = 'ardour' obj.target = 'ardour'
obj.uselib = 'GLIBMM GTHREAD AUBIO SIGCPP XML UUID JACK SNDFILE SAMPLERATE LRDF AUDIOUNIT OSX BOOST CURL DL' obj.uselib = 'GLIBMM GTHREAD AUBIO SIGCPP XML UUID JACK SNDFILE SAMPLERATE LRDF AUDIOUNIT OSX BOOST CURL DL'
obj.uselib_local = 'libpbd libmidipp libevoral libvamphost libvampplugin libtaglib librubberband libaudiographer' obj.uselib_local = 'libpbd libmidipp libevoral libvamphost libvampplugin libtaglib librubberband libaudiographer'
obj.vnum = LIBARDOUR_LIB_VERSION obj.vnum = LIBARDOUR_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
obj.cxxflags = ['-DPACKAGE="libardour3"'] obj.cxxflags = ['-DPACKAGE="libardour3"']
obj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"'] obj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
obj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"'] obj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"']
obj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"'] obj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
obj.cxxflags += ['-DLOCALEDIR="' + os.path.join( obj.cxxflags += ['-DLOCALEDIR="' + os.path.join(
os.path.normpath(bld.env['DATADIR']), 'locale') + '"'] os.path.normpath(bld.env['DATADIR']), 'locale') + '"']
obj.cxxflags += ['-DVAMP_DIR="' + os.path.join( obj.cxxflags += ['-DVAMP_DIR="' + os.path.join(
os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"'] os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"']
obj.cxxflags += ['-DPROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"'] obj.cxxflags += ['-DPROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"']
#obj.source += ' st_stretch.cc st_pitch.cc ' #obj.source += ' st_stretch.cc st_pitch.cc '
#obj.uselib += ' SOUNDTOUCH ' #obj.uselib += ' SOUNDTOUCH '
#obj.add_objects = 'default/libs/surfaces/control_protocol/smpte_1.o' #obj.add_objects = 'default/libs/surfaces/control_protocol/smpte_1.o'
if bld.env['HAVE_SLV2']:
obj.source += [ 'lv2_plugin.cc', 'lv2_event_buffer.cc', 'uri_map.cc', 'rdff.c' ]
obj.uselib += ' SLV2 ' + ' RASQAL '
if bld.env['HAVE_SUIL']:
obj.uselib += ' SUIL '
if bld.env['VST_SUPPORT']:
obj.source += [ 'vst_plugin.cc', 'session_vst.cc' ]
obj.includes += [ '../fst' ]
obj.cxxflags += [ '-DVST_SUPPORT' ]
if bld.env['COREAUDIO']: if bld.env['HAVE_SLV2']:
obj.source += [ 'coreaudiosource.cc', 'caimportable.cc' ] obj.source += [ 'lv2_plugin.cc', 'lv2_event_buffer.cc', 'uri_map.cc', 'rdff.c' ]
obj.uselib_local += ' libappleutility' obj.uselib += ' SLV2 ' + ' RASQAL '
obj.source += [ 'audio_unit.cc' ] if bld.env['HAVE_SUIL']:
obj.uselib += ' SUIL '
if bld.env['VST_SUPPORT']:
obj.source += [ 'vst_plugin.cc', 'session_vst.cc' ]
obj.includes += [ '../fst' ]
obj.cxxflags += [ '-DVST_SUPPORT' ]
if bld.env['COREAUDIO']:
obj.source += [ 'coreaudiosource.cc', 'caimportable.cc' ]
obj.uselib_local += ' libappleutility'
obj.source += [ 'audio_unit.cc' ]
if bld.env['FPU_OPTIMIZATION']:
if bld.env['build_target'] == 'i386' or bld.env['build_target'] == 'i686':
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions.s' ]
elif bld.env['build_target'] == 'x86_64':
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit.s' ]
# i18n
if bld.env['ENABLE_NLS']:
mo_files = glob.glob (os.path.join (bld.get_curdir(), 'po/*.mo'))
for mo in mo_files:
lang = os.path.basename (mo).replace ('.mo', '')
bld.install_as (os.path.join (bld.env['PREFIX'], 'share', 'locale', lang, 'LC_MESSAGES', APPNAME + '.mo'), mo)
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
# Unit tests
testobj = bld.new_task_gen('cxx', 'program')
testobj.source = '''
test/bbt_test.cpp
test/interpolation_test.cpp
test/midi_clock_slave_test.cpp
test/resampled_source.cc
test/mantis_3356.cc
test/testrunner.cpp
'''.split()
testobj.includes = obj.includes + ['test', '../pbd']
testobj.uselib = 'CPPUNIT SIGCPP JACK GLIBMM GTHREAD SAMPLERATE XML LRDF COREAUDIO'
testobj.uselib_local = 'libpbd libmidipp libardour'
testobj.name = 'libardour-tests'
testobj.target = 'run-tests'
testobj.install_path = ''
testobj.cxxflags = ['-DPACKAGE="libardour3test"']
testobj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
testobj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"']
testobj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
testobj.cxxflags += ['-DLOCALEDIR="' + os.path.join(
os.path.normpath(bld.env['DATADIR']), 'locale') + '"']
testobj.cxxflags += ['-DVAMP_DIR="' + os.path.join(
os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"']
if bld.env['FPU_OPTIMIZATION']: if bld.env['FPU_OPTIMIZATION']:
if bld.env['build_target'] == 'i386' or bld.env['build_target'] == 'i686': testobj.source += [ 'sse_functions_xmm.cc' ]
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions.s' ] if bld.env['build_target'] == 'i386' or bld.env['build_target'] == 'i686':
elif bld.env['build_target'] == 'x86_64': testobj.source += [ 'sse_functions.s' ]
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit.s' ] elif bld.env['build_target'] == 'x86_64':
testobj.source += [ 'sse_functions_64bit.s' ]
# i18n
if bld.env['ENABLE_NLS']:
mo_files = glob.glob (os.path.join (bld.get_curdir(), 'po/*.mo'))
for mo in mo_files:
lang = os.path.basename (mo).replace ('.mo', '')
bld.install_as (os.path.join (bld.env['PREFIX'], 'share', 'locale', lang, 'LC_MESSAGES', APPNAME + '.mo'), mo)
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
# Unit tests
testobj = bld.new_task_gen('cxx', 'program')
testobj.source = '''
test/bbt_test.cpp
test/interpolation_test.cpp
test/midi_clock_slave_test.cpp
test/resampled_source.cc
test/mantis_3356.cc
test/testrunner.cpp
'''.split()
testobj.includes = obj.includes + ['test', '../pbd']
testobj.uselib = 'CPPUNIT SIGCPP JACK GLIBMM GTHREAD SAMPLERATE XML LRDF COREAUDIO'
testobj.uselib_local = 'libpbd libmidipp libardour'
testobj.name = 'libardour-tests'
testobj.target = 'run-tests'
testobj.install_path = ''
testobj.cxxflags = ['-DPACKAGE="libardour3test"']
testobj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
testobj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"']
testobj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
testobj.cxxflags += ['-DLOCALEDIR="' + os.path.join(
os.path.normpath(bld.env['DATADIR']), 'locale') + '"']
testobj.cxxflags += ['-DVAMP_DIR="' + os.path.join(
os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"']
if bld.env['FPU_OPTIMIZATION']:
testobj.source += [ 'sse_functions_xmm.cc' ]
if bld.env['build_target'] == 'i386' or bld.env['build_target'] == 'i686':
testobj.source += [ 'sse_functions.s' ]
elif bld.env['build_target'] == 'x86_64':
testobj.source += [ 'sse_functions_64bit.s' ]
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()
def i18n(bld): def i18n(bld):
autowaf.build_i18n (bld, '..', 'libs/ardour', APPNAME, libardour_sources) autowaf.build_i18n (bld, '..', 'libs/ardour', APPNAME, libardour_sources)

View file

@ -23,97 +23,96 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False) autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False)
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0', mandatory=False) autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0', mandatory=False)
autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=False) autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=False)
autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=False) autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=False)
autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0', mandatory=False) autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0', mandatory=False)
autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE', atleast_version='0.1.7', mandatory=False) autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE', atleast_version='0.1.7', mandatory=False)
autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18', mandatory=False) autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18', mandatory=False)
# Boost headers # Boost headers
autowaf.check_header(conf, 'boost/shared_ptr.hpp') autowaf.check_header(conf, 'boost/shared_ptr.hpp')
autowaf.check_header(conf, 'boost/format.hpp') autowaf.check_header(conf, 'boost/format.hpp')
def build(bld): def build(bld):
# Headers # Headers
#bld.install_files('${INCLUDEDIR}/audiographer', 'audiographer/*.h') #bld.install_files('${INCLUDEDIR}/audiographer', 'audiographer/*.h')
#bld.install_files('${INCLUDEDIR}/audiographer/general', 'audiographer/general/*.h') #bld.install_files('${INCLUDEDIR}/audiographer/general', 'audiographer/general/*.h')
#bld.install_files('${INCLUDEDIR}/audiographer/sndfile', 'audiographer/sndfile/*.h') #bld.install_files('${INCLUDEDIR}/audiographer/sndfile', 'audiographer/sndfile/*.h')
#bld.install_files('${INCLUDEDIR}/audiographer/utils', 'audiographer/utils/*.h') #bld.install_files('${INCLUDEDIR}/audiographer/utils', 'audiographer/utils/*.h')
#bld.env['BUILD_TESTS'] = True
bld.env['HAVE_ALL_GTHREAD'] = bld.env['HAVE_GLIB'] and bld.env['HAVE_GLIBMM'] and bld.env['HAVE_GTHREAD']
audiographer = bld.new_task_gen('cxx', 'shlib') #bld.env['BUILD_TESTS'] = True
audiographer.source = ''' bld.env['HAVE_ALL_GTHREAD'] = bld.env['HAVE_GLIB'] and bld.env['HAVE_GLIBMM'] and bld.env['HAVE_GTHREAD']
private/gdither/gdither.cc
src/general/sample_format_converter.cc audiographer = bld.new_task_gen('cxx', 'shlib')
src/routines.cc audiographer.source = '''
src/debug_utils.cc private/gdither/gdither.cc
src/general/broadcast_info.cc src/general/sample_format_converter.cc
src/routines.cc
src/debug_utils.cc
src/general/broadcast_info.cc
'''
if bld.env['HAVE_SAMPLERATE']:
audiographer.source += '''
src/general/sr_converter.cc
''' '''
audiographer.name = 'libaudiographer'
audiographer.target = 'audiographer'
audiographer.export_incdirs = ['.', './src']
audiographer.includes = ['.', './src']
audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE'
audiographer.uselib_local = 'libpbd'
audiographer.vnum = AUDIOGRAPHER_LIB_VERSION
audiographer.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
# Unit tests
obj = bld.new_task_gen('cxx', 'program')
obj.source = '''
tests/test_runner.cc
tests/type_utils_test.cc
tests/utils/identity_vertex_test.cc
tests/general/interleaver_test.cc
tests/general/deinterleaver_test.cc
tests/general/interleaver_deinterleaver_test.cc
tests/general/chunker_test.cc
tests/general/sample_format_converter_test.cc
tests/general/peak_reader_test.cc
tests/general/normalizer_test.cc
tests/general/silence_trimmer_test.cc
'''
if bld.env['HAVE_ALL_GTHREAD']:
obj.source += '''
tests/general/threader_test.cc
'''
if bld.env['HAVE_SNDFILE']:
obj.source += '''
tests/sndfile/tmp_file_test.cc
'''
if bld.env['HAVE_SAMPLERATE']: if bld.env['HAVE_SAMPLERATE']:
audiographer.source += ''' obj.source += '''
src/general/sr_converter.cc tests/general/sr_converter_test.cc
''' '''
audiographer.name = 'libaudiographer'
audiographer.target = 'audiographer'
audiographer.export_incdirs = ['.', './src']
audiographer.includes = ['.', './src']
audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE'
audiographer.uselib_local = 'libpbd'
audiographer.vnum = AUDIOGRAPHER_LIB_VERSION
audiographer.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']: obj.uselib_local = 'libaudiographer'
# Unit tests obj.uselib = 'CPPUNIT GLIBMM'
obj = bld.new_task_gen('cxx', 'program') obj.target = 'run-tests'
obj.source = ''' obj.install_path = ''
tests/test_runner.cc
tests/type_utils_test.cc
tests/utils/identity_vertex_test.cc
tests/general/interleaver_test.cc
tests/general/deinterleaver_test.cc
tests/general/interleaver_deinterleaver_test.cc
tests/general/chunker_test.cc
tests/general/sample_format_converter_test.cc
tests/general/peak_reader_test.cc
tests/general/normalizer_test.cc
tests/general/silence_trimmer_test.cc
'''
if bld.env['HAVE_ALL_GTHREAD']:
obj.source += '''
tests/general/threader_test.cc
'''
if bld.env['HAVE_SNDFILE']:
obj.source += '''
tests/sndfile/tmp_file_test.cc
'''
if bld.env['HAVE_SAMPLERATE']:
obj.source += '''
tests/general/sr_converter_test.cc
'''
obj.uselib_local = 'libaudiographer'
obj.uselib = 'CPPUNIT GLIBMM'
obj.target = 'run-tests'
obj.install_path = ''
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -45,4 +45,3 @@ def build(bld):
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -23,112 +23,111 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
opt.add_option('--test', action='store_true', default=False, dest='build_tests', opt.add_option('--test', action='store_true', default=False, dest='build_tests',
help="Build unit tests") help="Build unit tests")
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
#autowaf.display_header('Evoral Configuration') #autowaf.display_header('Evoral Configuration')
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False) autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False)
autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2') autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2')
autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0') autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0') autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0')
# Boost headers # Boost headers
autowaf.check_header(conf, 'boost/shared_ptr.hpp') autowaf.check_header(conf, 'boost/shared_ptr.hpp')
autowaf.check_header(conf, 'boost/weak_ptr.hpp') autowaf.check_header(conf, 'boost/weak_ptr.hpp')
conf.env['BUILD_TESTS'] = Options.options.build_tests conf.env['BUILD_TESTS'] = Options.options.build_tests
#autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS'])) #autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
#print #print
def build(bld): def build(bld):
# Headers # Headers
#bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.h') #bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.h')
#bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.hpp') #bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.hpp')
# Pkgconfig file # Pkgconfig file
#autowaf.build_pc(bld, 'EVORAL', EVORAL_VERSION, 'GLIBMM GTHREAD') #autowaf.build_pc(bld, 'EVORAL', EVORAL_VERSION, 'GLIBMM GTHREAD')
libsmf = bld.new_task_gen('cc', 'shlib') libsmf = bld.new_task_gen('cc', 'shlib')
libsmf.source = ''' libsmf.source = '''
src/libsmf/smf.c src/libsmf/smf.c
src/libsmf/smf_decode.c src/libsmf/smf_decode.c
src/libsmf/smf_load.c src/libsmf/smf_load.c
src/libsmf/smf_save.c src/libsmf/smf_save.c
src/libsmf/smf_tempo.c src/libsmf/smf_tempo.c
''' '''
libsmf.export_incdirs = ['./src/libsmf'] libsmf.export_incdirs = ['./src/libsmf']
libsmf.defines = 'SMF_VERSION="1.2"' libsmf.defines = 'SMF_VERSION="1.2"'
libsmf.includes = ['./src'] libsmf.includes = ['./src']
libsmf.name = 'libsmf' libsmf.name = 'libsmf'
libsmf.target = 'smf' libsmf.target = 'smf'
libsmf.uselib = 'GLIB' libsmf.uselib = 'GLIB'
libsmf.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') libsmf.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
lib_source = ''' lib_source = '''
src/Control.cpp src/Control.cpp
src/ControlList.cpp src/ControlList.cpp
src/ControlSet.cpp src/ControlSet.cpp
src/Curve.cpp src/Curve.cpp
src/Event.cpp src/Event.cpp
src/midi_util.cpp src/midi_util.cpp
src/MIDIEvent.cpp src/MIDIEvent.cpp
src/Note.cpp src/Note.cpp
src/SMF.cpp src/SMF.cpp
src/Sequence.cpp src/Sequence.cpp
src/debug.cpp src/debug.cpp
''' '''
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = lib_source
obj.export_incdirs = ['.']
obj.includes = ['.', './src']
obj.name = 'libevoral'
obj.target = 'evoral'
obj.uselib = 'GLIBMM GTHREAD SMF'
obj.uselib_local = 'libsmf libpbd'
obj.vnum = EVORAL_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
# Static library (for unit test code coverage)
obj = bld.new_task_gen('cxx', 'staticlib')
obj.source = lib_source
obj.source = lib_source obj.source = lib_source
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.', './src'] obj.includes = ['.', './src']
obj.name = 'libevoral' obj.name = 'libevoral_static'
obj.target = 'evoral' obj.target = 'evoral_static'
obj.uselib = 'GLIBMM GTHREAD SMF' obj.uselib = 'GLIBMM GTHREAD SMF'
obj.uselib_local = 'libsmf libpbd' obj.uselib_local = 'libsmf libpbd'
obj.vnum = EVORAL_LIB_VERSION obj.vnum = EVORAL_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = ''
obj.ccflags = [ '-fprofile-arcs', '-ftest-coverage' ]
obj.cxxflags = [ '-fprofile-arcs', '-ftest-coverage' ]
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']: # Unit tests
# Static library (for unit test code coverage) obj = bld.new_task_gen('cxx', 'program')
obj = bld.new_task_gen('cxx', 'staticlib') obj.source = '''
obj.source = lib_source test/SequenceTest.cpp
obj.source = lib_source test/SMFTest.cpp
obj.export_incdirs = ['.'] test/testrunner.cpp
obj.includes = ['.', './src'] '''
obj.name = 'libevoral_static' obj.includes = ['.', './src']
obj.target = 'evoral_static' obj.uselib_local = 'libevoral_static'
obj.uselib = 'GLIBMM GTHREAD SMF' obj.uselib = 'CPPUNIT SNDFILE'
obj.uselib_local = 'libsmf libpbd' obj.libs = 'gcov'
obj.vnum = EVORAL_LIB_VERSION obj.target = 'run-tests'
obj.install_path = '' obj.name = 'libevoral-tests'
obj.ccflags = [ '-fprofile-arcs', '-ftest-coverage' ] obj.install_path = ''
obj.cxxflags = [ '-fprofile-arcs', '-ftest-coverage' ] obj.ccflags = [ '-fprofile-arcs', '-ftest-coverage' ]
obj.cxxflags = [ '-fprofile-arcs', '-ftest-coverage' ]
# Unit tests
obj = bld.new_task_gen('cxx', 'program')
obj.source = '''
test/SequenceTest.cpp
test/SMFTest.cpp
test/testrunner.cpp
'''
obj.includes = ['.', './src']
obj.uselib_local = 'libevoral_static'
obj.uselib = 'CPPUNIT SNDFILE'
obj.libs = 'gcov'
obj.target = 'run-tests'
obj.name = 'libevoral-tests'
obj.install_path = ''
obj.ccflags = [ '-fprofile-arcs', '-ftest-coverage' ]
obj.cxxflags = [ '-fprofile-arcs', '-ftest-coverage' ]
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -42,26 +42,25 @@ libgnomecanvas_sources = [
] ]
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cc') conf.check_tool('compiler_cc')
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18') autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18')
autowaf.check_pkg(conf, 'libart-2.0', uselib_store='LIBART', atleast_version='2.3') autowaf.check_pkg(conf, 'libart-2.0', uselib_store='LIBART', atleast_version='2.3')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cc', 'shlib') obj = bld.new_task_gen('cc', 'shlib')
obj.source = libgnomecanvas_sources obj.source = libgnomecanvas_sources
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libgnomecanvas-2' obj.name = 'libgnomecanvas-2'
obj.target = 'gnomecanvas-2' obj.target = 'gnomecanvas-2'
obj.uselib = 'GLIB GTK LIBART' obj.uselib = 'GLIB GTK LIBART'
obj.vnum = LIBGNOMECANVAS_LIB_VERSION obj.vnum = LIBGNOMECANVAS_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -64,37 +64,36 @@ blddir = 'build'
path_prefix = 'libs/gtkmm2ext/' path_prefix = 'libs/gtkmm2ext/'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc', autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
'libgtkmm2ext', MAJOR, MINOR, MICRO) 'libgtkmm2ext', MAJOR, MINOR, MICRO)
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8') autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.12.1') autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.12.1')
def build(bld): def build(bld):
obj = bld.new_task_gen(features = 'cc cxx cshlib') obj = bld.new_task_gen(features = 'cc cxx cshlib')
obj.source = gtkmm2ext_sources obj.source = gtkmm2ext_sources
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libgtkmm2ext' obj.name = 'libgtkmm2ext'
obj.target = 'gtkmm2ext' obj.target = 'gtkmm2ext'
obj.uselib = 'GTKMM GTK GTKOSX OSX GDK' obj.uselib = 'GTKMM GTK GTKOSX OSX GDK'
obj.uselib_local = 'libpbd' obj.uselib_local = 'libpbd'
obj.vnum = GTKMM2EXT_LIB_VERSION obj.vnum = GTKMM2EXT_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
obj.cxxflags = [ obj.cxxflags = [
'-DPACKAGE="libgtkmm2ext"', '-DPACKAGE="libgtkmm2ext"',
'-DLOCALEDIR="' + os.path.join( '-DLOCALEDIR="' + os.path.join(
os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"'] os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"']
if bld.env['GTKOSX']: if bld.env['GTKOSX']:
obj.source += ['gtkapplication_quartz.mm'] obj.source += ['gtkapplication_quartz.mm']
else: else:
obj.source += ['gtkapplication_x11.c'] obj.source += ['gtkapplication_x11.c']
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -26,46 +26,45 @@ blddir = 'build'
path_prefix = 'libs/midi++2/' path_prefix = 'libs/midi++2/'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.build_version_files(path_prefix+'midi++/version.h', path_prefix+'version.cc', autowaf.build_version_files(path_prefix+'midi++/version.h', path_prefix+'version.cc',
'midipp', MAJOR, MINOR, MICRO) 'midipp', MAJOR, MINOR, MICRO)
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.118.2') autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.118.2')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML') autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0') autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
# Boost headers # Boost headers
autowaf.check_header(conf, 'boost/shared_ptr.hpp') autowaf.check_header(conf, 'boost/shared_ptr.hpp')
autowaf.check_header(conf, 'boost/weak_ptr.hpp') autowaf.check_header(conf, 'boost/weak_ptr.hpp')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
midi.cc midi.cc
channel.cc channel.cc
manager.cc manager.cc
parser.cc parser.cc
port.cc port.cc
midnam_patch.cc midnam_patch.cc
mmc.cc mmc.cc
mtc.cc mtc.cc
version.cc version.cc
''' '''
# everybody loves JACK # everybody loves JACK
obj.cxxflags = [ '-DWITH_JACK_MIDI' ] obj.cxxflags = [ '-DWITH_JACK_MIDI' ]
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.', '../surfaces/control_protocol'] obj.includes = ['.', '../surfaces/control_protocol']
obj.name = 'libmidipp' obj.name = 'libmidipp'
obj.target = 'midipp' obj.target = 'midipp'
obj.uselib = 'GLIBMM SIGCPP XML JACK OSX' obj.uselib = 'GLIBMM SIGCPP XML JACK OSX'
obj.uselib_local = 'libpbd libevoral libtimecode' obj.uselib_local = 'libpbd libevoral libtimecode'
obj.vnum = LIBMIDIPP_LIB_VERSION obj.vnum = LIBMIDIPP_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,23 +13,22 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = [ 'panner_1in2out.cc' ] obj.source = [ 'panner_1in2out.cc' ]
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.cxxflags = '-DPACKAGE="libardour_pan1in2out"' obj.cxxflags = '-DPACKAGE="libardour_pan1in2out"'
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libardour_pan1in2out' obj.name = 'libardour_pan1in2out'
obj.target = 'pan1in2out' obj.target = 'pan1in2out'
obj.uselib_local = 'libardour libardour_cp libpbd' obj.uselib_local = 'libardour libardour_cp libpbd'
obj.vnum = LIBARDOUR_PAN1IN2OUT_LIB_VERSION obj.vnum = LIBARDOUR_PAN1IN2OUT_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'panners') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'panners')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,23 +13,22 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = [ 'panner_2in2out.cc' ] obj.source = [ 'panner_2in2out.cc' ]
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.cxxflags = '-DPACKAGE="libardour_pan2in2out"' obj.cxxflags = '-DPACKAGE="libardour_pan2in2out"'
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libardour_pan2in2out' obj.name = 'libardour_pan2in2out'
obj.target = 'pan2in2out' obj.target = 'pan2in2out'
obj.uselib_local = 'libardour libardour_cp libpbd' obj.uselib_local = 'libardour libardour_cp libpbd'
obj.vnum = LIBARDOUR_PAN2IN2OUT_LIB_VERSION obj.vnum = LIBARDOUR_PAN2IN2OUT_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'panners') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'panners')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,23 +13,22 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = [ 'vbap_speakers.cc', 'vbap.cc' ] obj.source = [ 'vbap_speakers.cc', 'vbap.cc' ]
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.cxxflags = '-DPACKAGE="libardour_panvbap"' obj.cxxflags = '-DPACKAGE="libardour_panvbap"'
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libardour_panvbap' obj.name = 'libardour_panvbap'
obj.target = 'panvbap' obj.target = 'panvbap'
obj.uselib_local = 'libardour libardour_cp libpbd' obj.uselib_local = 'libardour libardour_cp libpbd'
obj.vnum = LIBARDOUR_PANVBAP_LIB_VERSION obj.vnum = LIBARDOUR_PANVBAP_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'panners') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'panners')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -9,19 +9,19 @@ blddir = 'build'
panners = [ '2in2out', '1in2out', 'vbap' ] panners = [ '2in2out', '1in2out', 'vbap' ]
def set_options(opt): def set_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):
conf.sub_config(name) conf.sub_config(name)
autowaf.set_local_lib(conf, name, has_objects) autowaf.set_local_lib(conf, name, has_objects)
def configure(conf): def configure(conf):
autowaf.set_recursive() autowaf.set_recursive()
autowaf.configure(conf) autowaf.configure(conf)
for i in panners: for i in panners:
sub_config_and_use(conf, i) sub_config_and_use(conf, i)
def build(bld): def build(bld):
for i in panners: for i in panners:
bld.add_subdirs(i) bld.add_subdirs(i)

View file

@ -27,121 +27,120 @@ blddir = 'build'
path_prefix = 'libs/pbd/' path_prefix = 'libs/pbd/'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc', autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc',
'libpbd', MAJOR, MINOR, MICRO) 'libpbd', MAJOR, MINOR, MICRO)
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML') autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0') autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
if sys.platform != 'darwin': if sys.platform != 'darwin':
autowaf.check_pkg(conf, 'uuid', uselib_store='UUID') autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
conf.check(function_name='getmntent', header_name='mntent.h', define_name='HAVE_GETMNTENT') conf.check(function_name='getmntent', header_name='mntent.h', define_name='HAVE_GETMNTENT')
conf.check(header_name='execinfo.h', define_name='HAVE_EXECINFO') conf.check(header_name='execinfo.h', define_name='HAVE_EXECINFO')
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD') conf.check(header_name='unistd.h', define_name='HAVE_UNISTD')
if conf.check_cc(function_name='posix_memalign', header_name='stdlib.h', ccflags='-D_XOPEN_SOURCE=600') == False: if conf.check_cc(function_name='posix_memalign', header_name='stdlib.h', ccflags='-D_XOPEN_SOURCE=600') == False:
conf.define ('NO_POSIX_MEMALIGN',1) conf.define ('NO_POSIX_MEMALIGN',1)
conf.write_config_header('libpbd-config.h') conf.write_config_header('libpbd-config.h')
# Boost headers # Boost headers
autowaf.check_header(conf, 'boost/shared_ptr.hpp') autowaf.check_header(conf, 'boost/shared_ptr.hpp')
autowaf.check_header(conf, 'boost/weak_ptr.hpp') autowaf.check_header(conf, 'boost/weak_ptr.hpp')
# autowaf.check_header(conf, 'boost/uuid/uuid.hpp') # autowaf.check_header(conf, 'boost/uuid/uuid.hpp')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
basename.cc basename.cc
base_ui.cc base_ui.cc
boost_debug.cc boost_debug.cc
cartesian.cc cartesian.cc
command.cc command.cc
convert.cc convert.cc
controllable.cc controllable.cc
controllable_descriptor.cc controllable_descriptor.cc
clear_dir.cc clear_dir.cc
crossthread.cc crossthread.cc
cpus.cc cpus.cc
debug.cc debug.cc
enumwriter.cc enumwriter.cc
event_loop.cc event_loop.cc
dmalloc.cc dmalloc.cc
enums.cc enums.cc
epa.cc epa.cc
error.cc error.cc
filesystem.cc filesystem.cc
filesystem_paths.cc filesystem_paths.cc
file_manager.cc file_manager.cc
file_utils.cc file_utils.cc
fpu.cc fpu.cc
id.cc id.cc
locale_guard.cc locale_guard.cc
malign.cc malign.cc
mountpoint.cc mountpoint.cc
openuri.cc openuri.cc
pathscanner.cc pathscanner.cc
pool.cc pool.cc
property_list.cc property_list.cc
pthread_utils.cc pthread_utils.cc
receiver.cc receiver.cc
search_path.cc search_path.cc
semutils.cc semutils.cc
shortpath.cc shortpath.cc
signals.cc signals.cc
sndfile_manager.cc sndfile_manager.cc
stacktrace.cc stacktrace.cc
stateful_diff_command.cc stateful_diff_command.cc
stateful.cc stateful.cc
strreplace.cc strreplace.cc
strsplit.cc strsplit.cc
textreceiver.cc textreceiver.cc
transmitter.cc transmitter.cc
undo.cc undo.cc
uuid.cc uuid.cc
version.cc version.cc
whitespace.cc whitespace.cc
xml++.cc xml++.cc
''' '''
if bld.env['DEBUG_RT_ALLOC']: if bld.env['DEBUG_RT_ALLOC']:
obj.source += 'debug_rt_alloc.c' obj.source += 'debug_rt_alloc.c'
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libpbd' obj.name = 'libpbd'
obj.target = 'pbd' obj.target = 'pbd'
obj.uselib = 'GLIBMM SIGCPP XML UUID SNDFILE' obj.uselib = 'GLIBMM SIGCPP XML UUID SNDFILE'
if sys.platform == 'darwin': if sys.platform == 'darwin':
TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc'] TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
obj.source += 'cocoa_open_uri.mm' obj.source += 'cocoa_open_uri.mm'
obj.uselib += ' OSX' obj.uselib += ' OSX'
obj.vnum = LIBPBD_LIB_VERSION obj.vnum = LIBPBD_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
obj.cxxflags = ['-DPACKAGE="libpbd"'] obj.cxxflags = ['-DPACKAGE="libpbd"']
if bld.env['build_target'] == 'x86_64': if bld.env['build_target'] == 'x86_64':
obj.cxxflags += [ '-DUSE_X86_64_ASM' ] obj.cxxflags += [ '-DUSE_X86_64_ASM' ]
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']: if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
# Unit tests # Unit tests
testobj = bld.new_task_gen('cxx', 'program') testobj = bld.new_task_gen('cxx', 'program')
testobj.source = ''' testobj.source = '''
test/testrunner.cc test/testrunner.cc
test/xpath.cc test/xpath.cc
test/scalar_properties.cc test/scalar_properties.cc
test/signals_test.cc test/signals_test.cc
'''.split() '''.split()
testobj.target = 'run-tests' testobj.target = 'run-tests'
testobj.includes = obj.includes + ['test', '../pbd'] testobj.includes = obj.includes + ['test', '../pbd']
testobj.uselib = 'CPPUNIT XML SNDFILE' testobj.uselib = 'CPPUNIT XML SNDFILE'
testobj.uselib_local = 'libpbd' testobj.uselib_local = 'libpbd'
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -20,40 +20,39 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
def build(bld): def build(bld):
# Host Library # Host Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
dsp/onsets/DetectionFunction.cpp dsp/onsets/DetectionFunction.cpp
dsp/onsets/PeakPicking.cpp dsp/onsets/PeakPicking.cpp
dsp/phasevocoder/PhaseVocoder.cpp dsp/phasevocoder/PhaseVocoder.cpp
dsp/rateconversion/Decimator.cpp dsp/rateconversion/Decimator.cpp
dsp/rhythm/BeatSpectrum.cpp dsp/rhythm/BeatSpectrum.cpp
dsp/signalconditioning/DFProcess.cpp dsp/signalconditioning/DFProcess.cpp
dsp/signalconditioning/Filter.cpp dsp/signalconditioning/Filter.cpp
dsp/signalconditioning/FiltFilt.cpp dsp/signalconditioning/FiltFilt.cpp
dsp/signalconditioning/Framer.cpp dsp/signalconditioning/Framer.cpp
dsp/transforms/FFT.cpp dsp/transforms/FFT.cpp
dsp/wavelet/Wavelet.cpp dsp/wavelet/Wavelet.cpp
maths/Correlation.cpp maths/Correlation.cpp
maths/CosineDistance.cpp maths/CosineDistance.cpp
maths/KLDivergence.cpp maths/KLDivergence.cpp
maths/MathUtilities.cpp maths/MathUtilities.cpp
base/Pitch.cpp base/Pitch.cpp
''' '''
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libqmdsp' obj.name = 'libqmdsp'
obj.target = 'qmdsp' obj.target = 'qmdsp'
obj.vnum = QM_DSP_VERSION obj.vnum = QM_DSP_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -21,30 +21,29 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
prefix = 'libs/rubberband/' prefix = 'libs/rubberband/'
sources = glob.glob(prefix + 'src/*.cpp') sources = glob.glob(prefix + 'src/*.cpp')
obj.source = [ ] obj.source = [ ]
for i in sources: for i in sources:
obj.source += [ i.replace(prefix, '') ] obj.source += [ i.replace(prefix, '') ]
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.', 'rubberband'] obj.includes = ['.', 'rubberband']
obj.name = 'librubberband' obj.name = 'librubberband'
obj.target = 'rubberband' obj.target = 'rubberband'
obj.uselib = 'FFTW3 FFTW3F SAMPLERATE SNDFILE' obj.uselib = 'FFTW3 FFTW3F SAMPLERATE SNDFILE'
obj.uselib_local = 'libvamphost' obj.uselib_local = 'libvamphost'
obj.vnum = LIBRUBBERBAND_LIB_VERSION obj.vnum = LIBRUBBERBAND_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
obj.cxxflags = '-DPACKAGE="librubberband"' obj.cxxflags = '-DPACKAGE="librubberband"'
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -14,26 +14,25 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
basic_ui.cc basic_ui.cc
control_protocol.cc control_protocol.cc
''' '''
obj.export_incdirs = ['.', './control_protocol' ] obj.export_incdirs = ['.', './control_protocol' ]
obj.cxxflags = '-DPACKAGE="ardour_cp"' obj.cxxflags = '-DPACKAGE="ardour_cp"'
obj.includes = ['.', './control_protocol'] obj.includes = ['.', './control_protocol']
obj.name = 'libardour_cp' obj.name = 'libardour_cp'
obj.target = 'ardourcp' obj.target = 'ardourcp'
obj.uselib_local = 'libardour libtimecode' obj.uselib_local = 'libardour libtimecode'
obj.vnum = LIBARDOUR_CP_LIB_VERSION obj.vnum = LIBARDOUR_CP_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -20,28 +20,27 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
# Generic MIDI # Generic MIDI
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
generic_midi_control_protocol.cc generic_midi_control_protocol.cc
interface.cc interface.cc
midicontrollable.cc midicontrollable.cc
''' '''
obj.export_incdirs = ['./generic_midi'] obj.export_incdirs = ['./generic_midi']
obj.cxxflags = '-DPACKAGE="ardour_genericmidi"' obj.cxxflags = '-DPACKAGE="ardour_genericmidi"'
obj.includes = ['.', './generic_midi'] obj.includes = ['.', './generic_midi']
obj.name = 'libgeneric_midi' obj.name = 'libgeneric_midi'
obj.target = 'generic_midi' obj.target = 'generic_midi'
obj.uselib_local = 'libardour libsurfaces' obj.uselib_local = 'libardour libsurfaces'
obj.vnum = LIBSURFACES_LIB_VERSION obj.vnum = LIBSURFACES_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,32 +13,31 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
generic_midi_control_protocol.cc generic_midi_control_protocol.cc
gmcp_gui.cc gmcp_gui.cc
interface.cc interface.cc
midiinvokable.cc midiinvokable.cc
midicontrollable.cc midicontrollable.cc
midifunction.cc midifunction.cc
midiaction.cc midiaction.cc
''' '''
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.cxxflags = '-DPACKAGE="ardour_genericmidi"' obj.cxxflags = '-DPACKAGE="ardour_genericmidi"'
obj.includes = ['.', './generic_midi'] obj.includes = ['.', './generic_midi']
obj.name = 'libardour_generic_midi' obj.name = 'libardour_generic_midi'
obj.target = 'ardour_generic_midi' obj.target = 'ardour_generic_midi'
obj.uselib = 'GTKMM GTK GDK' obj.uselib = 'GTKMM GTK GDK'
obj.uselib_local = 'libardour libardour_cp libgtkmm2ext libpbd' obj.uselib_local = 'libardour libardour_cp libgtkmm2ext libpbd'
obj.vnum = LIBARDOUR_GENERIC_MIDI_LIB_VERSION obj.vnum = LIBARDOUR_GENERIC_MIDI_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,42 +13,41 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
bcf_surface.cc bcf_surface.cc
bcf_surface_generated.cc bcf_surface_generated.cc
controls.cc controls.cc
dummy_port.cc dummy_port.cc
interface.cc interface.cc
mackie_button_handler.cc mackie_button_handler.cc
mackie_control_protocol.cc mackie_control_protocol.cc
mackie_control_protocol_poll.cc mackie_control_protocol_poll.cc
mackie_jog_wheel.cc mackie_jog_wheel.cc
mackie_midi_builder.cc mackie_midi_builder.cc
mackie_port.cc mackie_port.cc
mackie_surface.cc mackie_surface.cc
mackie_surface_generated.cc mackie_surface_generated.cc
midi_byte_array.cc midi_byte_array.cc
route_signal.cc route_signal.cc
surface.cc surface.cc
surface_port.cc surface_port.cc
types.cc types.cc
''' '''
obj.export_incdirs = ['./mackie'] obj.export_incdirs = ['./mackie']
obj.cxxflags = '-DPACKAGE="ardour_mackie"' obj.cxxflags = '-DPACKAGE="ardour_mackie"'
obj.includes = ['.', './mackie'] obj.includes = ['.', './mackie']
obj.name = 'libardour_mcp' obj.name = 'libardour_mcp'
obj.target = 'ardour_mcp' obj.target = 'ardour_mcp'
obj.uselib_local = 'libardour libardour_cp' obj.uselib_local = 'libardour libardour_cp'
obj.vnum = LIBARDOUR_MCP_LIB_VERSION obj.vnum = LIBARDOUR_MCP_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,30 +13,29 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
autowaf.check_pkg(conf, 'liblo', uselib_store='LO', linkflags='-llo') autowaf.check_pkg(conf, 'liblo', uselib_store='LO', linkflags='-llo')
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
osc.cc osc.cc
osc_controllable.cc osc_controllable.cc
osc_route_observer.cc osc_route_observer.cc
interface.cc interface.cc
''' '''
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.cxxflags = '-DPACKAGE="ardour_cp"' obj.cxxflags = '-DPACKAGE="ardour_cp"'
obj.includes = ['.', './osc'] obj.includes = ['.', './osc']
obj.name = 'libardour_osc' obj.name = 'libardour_osc'
obj.target = 'ardour_osc' obj.target = 'ardour_osc'
obj.uselib = ' LO ' obj.uselib = ' LO '
obj.uselib_local = 'libardour libardour_cp libpbd' obj.uselib_local = 'libardour libardour_cp libpbd'
obj.vnum = LIBARDOUR_OSC_LIB_VERSION obj.vnum = LIBARDOUR_OSC_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,26 +13,25 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
interface.cc interface.cc
powermate.cc powermate.cc
''' '''
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.cxxflags = '-DPACKAGE="ardour_powermate"' obj.cxxflags = '-DPACKAGE="ardour_powermate"'
obj.includes = ['.' ] obj.includes = ['.' ]
obj.name = 'libpowermate' obj.name = 'libpowermate'
obj.target = 'powermate' obj.target = 'powermate'
obj.uselib_local = 'libardour libardour_cp' obj.uselib_local = 'libardour libardour_cp'
obj.vnum = LIBARDOUR_POWERMATE_LIB_VERSION obj.vnum = LIBARDOUR_POWERMATE_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,40 +13,39 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
button_events.cc button_events.cc
buttons.cc buttons.cc
general.cc general.cc
init.cc init.cc
interface.cc interface.cc
io.cc io.cc
io_usb.cc io_usb.cc
lcd.cc lcd.cc
lights.cc lights.cc
mode.cc mode.cc
panner.cc panner.cc
screen.cc screen.cc
show.cc show.cc
state.cc state.cc
wheel.cc wheel.cc
wheel_modes.cc wheel_modes.cc
''' '''
obj.export_incdirs = ['./tranzport'] obj.export_incdirs = ['./tranzport']
obj.cxxflags = '-DPACKAGE="ardour_tranzport"' obj.cxxflags = '-DPACKAGE="ardour_tranzport"'
obj.includes = ['.', './tranzport'] obj.includes = ['.', './tranzport']
obj.name = 'libardour_tranzport' obj.name = 'libardour_tranzport'
obj.target = 'ardour_tranzport' obj.target = 'ardour_tranzport'
obj.uselib_local = 'libardour libardour_cp' obj.uselib_local = 'libardour libardour_cp'
obj.vnum = LIBARDOUR_TRANZPORT_LIB_VERSION obj.vnum = LIBARDOUR_TRANZPORT_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -13,26 +13,25 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
def build(bld): def build(bld):
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
wiimote.cc wiimote.cc
interface.cc interface.cc
''' '''
obj.export_incdirs = ['./wiimote'] obj.export_incdirs = ['./wiimote']
obj.cxxflags = '-DPACKAGE="ardour_wiimote"' obj.cxxflags = '-DPACKAGE="ardour_wiimote"'
obj.includes = ['.', './wiimote'] obj.includes = ['.', './wiimote']
obj.name = 'libwiimote' obj.name = 'libwiimote'
obj.target = 'wiimote' obj.target = 'wiimote'
obj.uselib_local = 'libardour libardour_cp' obj.uselib_local = 'libardour libardour_cp'
obj.vnum = LIBARDOUR_WIIMOTE_LIB_VERSION obj.vnum = LIBARDOUR_WIIMOTE_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -31,47 +31,46 @@ children = [
] ]
def set_options(opt): def set_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):
conf.sub_config(name) conf.sub_config(name)
autowaf.set_local_lib(conf, name, has_objects) autowaf.set_local_lib(conf, name, has_objects)
def configure(conf): def configure(conf):
autowaf.set_recursive() autowaf.set_recursive()
autowaf.configure(conf) autowaf.configure(conf)
for i in children: for i in children:
sub_config_and_use(conf, i) sub_config_and_use(conf, i)
conf.check_cc (lib='libusb', header_name='libusb.h', function_name='usb_interrupt_write', define_name='BUILD_TRANZPORT') conf.check_cc (lib='libusb', header_name='libusb.h', function_name='usb_interrupt_write', define_name='BUILD_TRANZPORT')
conf.check_cc (header_name='linux/input.h', define_name='BUILD_POWERMATE') conf.check_cc (header_name='linux/input.h', define_name='BUILD_POWERMATE')
conf.check_cc (lib='lo', header_name='lo/lo.h', function_name='lo_server_new', define_name='BUILD_OSC') conf.check_cc (lib='lo', header_name='lo/lo.h', function_name='lo_server_new', define_name='BUILD_OSC')
if Options.options.wiimote: if Options.options.wiimote:
conf.check_cc (header_name='cwiid.h',define_name='HAVE_CWIID_H') conf.check_cc (header_name='cwiid.h',define_name='HAVE_CWIID_H')
if not conf.env['HAVE_CWIID_H']: if not conf.env['HAVE_CWIID_H']:
print('WIIMOTE configured but you are missing libcwiid!') print('WIIMOTE configured but you are missing libcwiid!')
sys.exit(1) sys.exit(1)
conf.check_cc (header_name='bluetooth/bluetooth.h',define_name='HAVE_BLUETOOTH_H') conf.check_cc (header_name='bluetooth/bluetooth.h',define_name='HAVE_BLUETOOTH_H')
if not conf.env['HAVE_BLUETOOTH_H']: if not conf.env['HAVE_BLUETOOTH_H']:
print('WIIMOTE configured but you are missing the libbluetooth headers needed to compile wiimote support!') print('WIIMOTE configured but you are missing the libbluetooth headers needed to compile wiimote support!')
sys.exit(1) sys.exit(1)
conf.define ('BUILD_WIIMOTE', 1) conf.define ('BUILD_WIIMOTE', 1)
def build(bld): def build(bld):
bld.add_subdirs('control_protocol') bld.add_subdirs('control_protocol')
bld.add_subdirs('generic_midi') bld.add_subdirs('generic_midi')
bld.add_subdirs('mackie') bld.add_subdirs('mackie')
if bld.env['BUILD_OSC']: if bld.env['BUILD_OSC']:
bld.add_subdirs('osc') bld.add_subdirs('osc')
if bld.env['BUILD_POWERMATE']: if bld.env['BUILD_POWERMATE']:
bld.add_subdirs('powermate') bld.add_subdirs('powermate')
if bld.env['BUILD_WIIMOTE']: if bld.env['BUILD_WIIMOTE']:
bld.add_subdirs('wiimote') bld.add_subdirs('wiimote')
if bld.env['BUILD_TRANZPORT']: if bld.env['BUILD_TRANZPORT']:
bld.add_subdirs('tranzport') bld.add_subdirs('tranzport')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -23,57 +23,56 @@ blddir = 'build'
path_prefix = 'libs/taglib/' path_prefix = 'libs/taglib/'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
sources = glob.glob(path_prefix + 'taglib/*.cpp') sources = glob.glob(path_prefix + 'taglib/*.cpp')
sources += glob.glob(path_prefix + 'taglib/flac/*.cpp') sources += glob.glob(path_prefix + 'taglib/flac/*.cpp')
sources += glob.glob(path_prefix + 'taglib/mpc/*.cpp') sources += glob.glob(path_prefix + 'taglib/mpc/*.cpp')
sources += glob.glob(path_prefix + 'taglib/mpeg/*.cpp') sources += glob.glob(path_prefix + 'taglib/mpeg/*.cpp')
sources += glob.glob(path_prefix + 'taglib/mpeg/id3v1/*.cpp') sources += glob.glob(path_prefix + 'taglib/mpeg/id3v1/*.cpp')
sources += glob.glob(path_prefix + 'taglib/mpeg/id3v2/*.cpp') sources += glob.glob(path_prefix + 'taglib/mpeg/id3v2/*.cpp')
sources += glob.glob(path_prefix + 'taglib/mpeg/id3v2/frames/*.cpp') sources += glob.glob(path_prefix + 'taglib/mpeg/id3v2/frames/*.cpp')
sources += glob.glob(path_prefix + 'taglib/ogg/*.cpp') sources += glob.glob(path_prefix + 'taglib/ogg/*.cpp')
sources += glob.glob(path_prefix + 'taglib/ogg/vorbis/*.cpp') sources += glob.glob(path_prefix + 'taglib/ogg/vorbis/*.cpp')
sources += glob.glob(path_prefix + 'taglib/ogg/speex/*.cpp') sources += glob.glob(path_prefix + 'taglib/ogg/speex/*.cpp')
sources += glob.glob(path_prefix + 'taglib/ogg/flac/*.cpp') sources += glob.glob(path_prefix + 'taglib/ogg/flac/*.cpp')
sources += glob.glob(path_prefix + 'taglib/trueaudio/*.cpp') sources += glob.glob(path_prefix + 'taglib/trueaudio/*.cpp')
sources += glob.glob(path_prefix + 'taglib/wavpack/*.cpp') sources += glob.glob(path_prefix + 'taglib/wavpack/*.cpp')
sources += glob.glob(path_prefix + 'taglib/ape/*.cpp') sources += glob.glob(path_prefix + 'taglib/ape/*.cpp')
sources += glob.glob(path_prefix + 'taglib/toolkit/*.cpp') sources += glob.glob(path_prefix + 'taglib/toolkit/*.cpp')
obj.source = [] obj.source = []
for i in sources: for i in sources:
obj.source += [ i.replace(path_prefix, '') ] obj.source += [ i.replace(path_prefix, '') ]
include_dirs = ''' include_dirs = '''
taglib taglib
taglib/toolkit taglib/toolkit
taglib/flac taglib/flac
taglib/ape taglib/ape
taglib/mpc taglib/mpc
taglib/mpeg taglib/mpeg
taglib/mpeg/id3v1 taglib/mpeg/id3v1
taglib/mpeg/id3v2 taglib/mpeg/id3v2
taglib/wavpack taglib/wavpack
taglib/trueaudio taglib/trueaudio
taglib/ogg taglib/ogg
taglib/ogg/vorbis taglib/ogg/vorbis
taglib/ogg/speex taglib/ogg/speex
taglib/ogg/flac taglib/ogg/flac
'''.split() '''.split()
obj.export_incdirs = ['.', 'taglib', 'taglib/toolkit'] obj.export_incdirs = ['.', 'taglib', 'taglib/toolkit']
obj.includes = include_dirs obj.includes = include_dirs
obj.name = 'libtaglib' obj.name = 'libtaglib'
obj.target = 'taglib' obj.target = 'taglib'
obj.vnum = LIBTAGLIB_LIB_VERSION obj.vnum = LIBTAGLIB_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -23,24 +23,23 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = [ 'src/time.cc', 'src/bbt_time.cc' ] obj.source = [ 'src/time.cc', 'src/bbt_time.cc' ]
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.', './src'] obj.includes = ['.', './src']
obj.name = 'libtimecode' obj.name = 'libtimecode'
obj.target = 'timecode' obj.target = 'timecode'
obj.vnum = TIMECODE_LIB_VERSION obj.vnum = TIMECODE_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -20,38 +20,37 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True) autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', mandatory=False) autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', mandatory=False)
conf.write_config_header('libvampplugins-config.h') conf.write_config_header('libvampplugins-config.h')
def build(bld): def build(bld):
# Library # Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
plugins.cpp plugins.cpp
AmplitudeFollower.cpp AmplitudeFollower.cpp
OnsetDetect.cpp OnsetDetect.cpp
PercussionOnsetDetector.cpp PercussionOnsetDetector.cpp
SpectralCentroid.cpp SpectralCentroid.cpp
ZeroCrossing.cpp ZeroCrossing.cpp
''' '''
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libardourvampplugins' obj.name = 'libardourvampplugins'
obj.target = 'ardourvampplugins' obj.target = 'ardourvampplugins'
obj.uselib = 'FFTW3F' obj.uselib = 'FFTW3F'
obj.uselib_local = 'libvampplugin libqmdsp' obj.uselib_local = 'libvampplugin libqmdsp'
if bld.env['HAVE_AUBIO']: if bld.env['HAVE_AUBIO']:
obj.source += ' Onset.cpp ' obj.source += ' Onset.cpp '
obj.uselib += ' AUBIO ' obj.uselib += ' AUBIO '
obj.vnum = LIBARDOURVAMPPLUGINS_LIB_VERSION obj.vnum = LIBARDOURVAMPPLUGINS_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'vamp') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'vamp')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -20,49 +20,48 @@ srcdir = '.'
blddir = 'build' blddir = 'build'
def set_options(opt): def set_options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
autowaf.configure(conf) autowaf.configure(conf)
conf.check_tool('compiler_cxx') conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'fftw3', uselib_store='FFTW3', mandatory=True) autowaf.check_pkg(conf, 'fftw3', uselib_store='FFTW3', mandatory=True)
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True) autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3') conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3')
def build(bld): def build(bld):
# Host Library # Host Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
src/vamp-hostsdk/PluginHostAdapter.cpp src/vamp-hostsdk/PluginHostAdapter.cpp
src/vamp-hostsdk/PluginBufferingAdapter.cpp src/vamp-hostsdk/PluginBufferingAdapter.cpp
src/vamp-hostsdk/PluginChannelAdapter.cpp src/vamp-hostsdk/PluginChannelAdapter.cpp
src/vamp-hostsdk/PluginInputDomainAdapter.cpp src/vamp-hostsdk/PluginInputDomainAdapter.cpp
src/vamp-hostsdk/PluginLoader.cpp src/vamp-hostsdk/PluginLoader.cpp
src/vamp-hostsdk/PluginWrapper.cpp src/vamp-hostsdk/PluginWrapper.cpp
src/vamp-hostsdk/RealTime.cpp src/vamp-hostsdk/RealTime.cpp
''' '''
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libvamphost' obj.name = 'libvamphost'
obj.target = 'vamphost' obj.target = 'vamphost'
obj.uselib = 'FFTW3 FFTW3F' obj.uselib = 'FFTW3 FFTW3F'
obj.vnum = LIBVAMP_LIB_VERSION obj.vnum = LIBVAMP_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
# Plugin Library # Plugin Library
obj = bld.new_task_gen('cxx', 'shlib') obj = bld.new_task_gen('cxx', 'shlib')
obj.source = ''' obj.source = '''
src/vamp-sdk/PluginAdapter.cpp src/vamp-sdk/PluginAdapter.cpp
src/vamp-sdk/RealTime.cpp src/vamp-sdk/RealTime.cpp
''' '''
obj.export_incdirs = ['.'] obj.export_incdirs = ['.']
obj.includes = ['.'] obj.includes = ['.']
obj.name = 'libvampplugin' obj.name = 'libvampplugin'
obj.target = 'vampplugin' obj.target = 'vampplugin'
obj.uselib = 'FFTW3 FFTW3F' obj.uselib = 'FFTW3 FFTW3F'
obj.vnum = LIBVAMP_LIB_VERSION obj.vnum = LIBVAMP_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown(): def shutdown():
autowaf.shutdown() autowaf.shutdown()

View file

@ -10,7 +10,7 @@ def configure(conf):
pass pass
def build(bld): def build(bld):
subst_dict = {} subst_dict = {}
if bld.env['COREAUDIO']: if bld.env['COREAUDIO']:
subst_dict['%JACK_INPUT%'] = 'coreaudio:Built-in Audio:in' subst_dict['%JACK_INPUT%'] = 'coreaudio:Built-in Audio:in'

View file

@ -21,4 +21,3 @@ def build(bld):
obj.target = 'sanityCheck' obj.target = 'sanityCheck'
obj.name = 'sanityCheck' obj.name = 'sanityCheck'
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')

1053
wscript

File diff suppressed because it is too large Load diff