return name.replace('/', '_').replace('++', 'PP').replace('-', '_')
def check_pkg(conf, name, **args):
+ if not 'mandatory' in args:
+ args['mandatory'] = True
"Check for a package iff it hasn't been checked for yet"
var_name = 'HAVE_' + nameify(args['uselib_store'])
check = not var_name in conf.env
def append_cxx_flags(val):
conf.env.append_value('CCFLAGS', val)
conf.env.append_value('CXXFLAGS', val)
- conf.line_just = 42
+ conf.line_just = 43
check_tool(conf, 'misc')
check_tool(conf, 'compiler_cc')
check_tool(conf, 'compiler_cxx')
#define __ardour_gtk_log_meter_h__
#if 1
-inline float
+static inline float
_log_meter (float power, double lower_db, double upper_db, double non_linearity)
{
return (power < lower_db ? 0.0 : pow((power-lower_db)/(upper_db-lower_db), non_linearity));
}
-inline float
+static inline float
alt_log_meter (float power)
{
return _log_meter (power, -192.0, 0.0, 8.0);
#include <gtkmm2ext/utils.h>
-#include "evoral/SMFReader.hpp"
+#include "evoral/SMF.hpp"
#include "ardour/audio_library.h"
#include "ardour/auditioner.h"
} else if (SMFSource::safe_midi_file_extension (*i)) {
- Evoral::SMFReader reader(*i);
+ Evoral::SMF reader;
+ reader.open(*i);
if (reader.num_tracks() > 1) {
multichannel = true; // "channel" == track here...
}
def configure(conf):
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
- autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=True)
- autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True)
- autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0', mandatory=True)
- autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML', mandatory=True)
+ 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, 'jack', uselib_store='JACK', atleast_version='0.109.0')
+ 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, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18')
+ autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18')
+ autowaf.check_pkg(conf, 'soundtouch-1.0', uselib_store='SOUNDTOUCH')
check_header_and_define(conf, 'wordexp.h', 'HAVE_WORDEXP')
check_header_and_define(conf, 'sys/vfs.h', 'HAVE_SYS_VFS_H')
conf.write_config_header('wafconfig.h')
# Boost headers
- autowaf.check_header(conf, 'boost/shared_ptr.hpp', mandatory=True)
- autowaf.check_header(conf, 'boost/weak_ptr.hpp', mandatory=True)
+ autowaf.check_header(conf, 'boost/shared_ptr.hpp')
+ autowaf.check_header(conf, 'boost/weak_ptr.hpp')
def build(bld):
# Library
obj.includes = ['.', '../surfaces/control_protocol']
obj.name = 'libardour'
obj.target = 'ardour'
- obj.uselib = 'GLIBMM SIGCPP XML UUID'
+ obj.uselib = 'GLIBMM SIGCPP XML UUID JACK SNDFILE'
obj.uselib_local = 'libpbd libmidipp libevoral libvamp libtaglib'
obj.vnum = LIBARDOUR_LIB_VERSION
obj.install_path = ''
os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '\\\"'
obj.cxxflags += ' -DVAMP_DIR=\\\"' + os.path.join(
os.path.normpath(bld.env['LIBDIRNAME']), 'ardour3', 'vamp') + '\\\"'
+ obj.source += ' st_stretch.cc st_pitch.cc '
+ obj.uselib += ' SOUNDTOUCH '
def shutdown():
autowaf.shutdown()
def configure(conf):
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
- autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=True)
- autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True)
- autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0', mandatory=True)
+ 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, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0')
autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False)
# Boost headers
- autowaf.check_header(conf, 'boost/shared_ptr.hpp', mandatory=True)
- autowaf.check_header(conf, 'boost/weak_ptr.hpp', mandatory=True)
+ autowaf.check_header(conf, 'boost/shared_ptr.hpp')
+ autowaf.check_header(conf, 'boost/weak_ptr.hpp')
def build(bld):
# Headers
def configure(conf):
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
- autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=True)
- autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True)
- autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0', mandatory=True)
- autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML', mandatory=True)
- autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0', mandatory=True)
+ 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, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
+ autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
+ autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0')
conf.env.append_value('CXXFLAGS', '-DHAVE_WAFCONFIG_H')
conf.write_config_header('wafconfig.h')
# TODO
- conf.env['SYSMIDI'] == 'JACK MIDI'
+ conf.env['SYSMIDI'] = 'JACK MIDI'
conf.env.append_value('CXXFLAGS', '-DWITH_JACK_MIDI')
# Boost headers
- autowaf.check_header(conf, 'boost/shared_ptr.hpp', mandatory=True)
- autowaf.check_header(conf, 'boost/weak_ptr.hpp', mandatory=True)
+ autowaf.check_header(conf, 'boost/shared_ptr.hpp')
+ autowaf.check_header(conf, 'boost/weak_ptr.hpp')
def build(bld):
# Library
def configure(conf):
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
- autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=True)
- autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True)
- autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0', mandatory=True)
- autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML', mandatory=True)
- autowaf.check_pkg(conf, 'uuid', uselib_store='UUID', mandatory=True)
+ 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, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
+ autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
+ autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
conf.check(function_name='getmntent', header_name='mntent.h', define_name='HAVE_GETMNTENT')
conf.write_config_header('wafconfig.h')
# Boost headers
- autowaf.check_header(conf, 'boost/shared_ptr.hpp', mandatory=True)
- autowaf.check_header(conf, 'boost/weak_ptr.hpp', mandatory=True)
+ autowaf.check_header(conf, 'boost/shared_ptr.hpp')
+ autowaf.check_header(conf, 'boost/weak_ptr.hpp')
def build(bld):
# Library
def configure(conf):
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
- autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=True)
- autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True)
- autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0', mandatory=True)
- autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML', mandatory=True)
- autowaf.check_pkg(conf, 'uuid', uselib_store='UUID', mandatory=True)
+ 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, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
+ autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
+ autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
conf.env.append_value('CXXFLAGS', '-DHAVE_WAFCONFIG_H')
conf.write_config_header('wafconfig.h')
# Boost headers
- autowaf.check_header(conf, 'boost/shared_ptr.hpp', mandatory=True)
- autowaf.check_header(conf, 'boost/weak_ptr.hpp', mandatory=True)
+ autowaf.check_header(conf, 'boost/shared_ptr.hpp')
+ autowaf.check_header(conf, 'boost/weak_ptr.hpp')
def build(bld):
# Library
obj = bld.new_task_gen('cxx', 'shlib')
prefix = 'libs/taglib/'
sources = glob.glob(prefix + 'taglib/*.cpp')
- sources += glob.glob(prefix + 'libs//taglib/flac/*.cpp')
+ sources += glob.glob(prefix + 'taglib/flac/*.cpp')
sources += glob.glob(prefix + 'taglib/mpc/*.cpp')
sources += glob.glob(prefix + 'taglib/mpeg/*.cpp')
sources += glob.glob(prefix + 'taglib/mpeg/id3v1/*.cpp')
'libs/vamp-sdk',
'libs/taglib',
'libs/surfaces',
- 'libs/ardour'
+ 'libs/ardour',
+ 'libs/gtkmm2ext',
+ 'gtk2_ardour'
]
def set_options(opt):