summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-25 23:21:49 +0000
committerDavid Robillard <d@drobilla.net>2009-02-25 23:21:49 +0000
commit0c0e689d3c4d61b670198db481839e912407293f (patch)
tree0888b96d2bde23dcff54c116f541629f8e01b329 /libs
parent310d68b953fca09b057aaa87703747546e98d354 (diff)
Waf building of gtk2_ardour.
git-svn-id: svn://localhost/ardour2/branches/3.0@4662 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/wscript20
-rw-r--r--libs/evoral/wscript10
-rw-r--r--libs/midi++2/wscript16
-rw-r--r--libs/pbd/wscript14
-rw-r--r--libs/surfaces/wscript14
-rw-r--r--libs/taglib/wscript2
6 files changed, 41 insertions, 35 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript
index 39e9b5836c..99f72146bd 100644
--- a/libs/ardour/wscript
+++ b/libs/ardour/wscript
@@ -31,10 +31,14 @@ def check_header_and_define(conf, header, define):
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')
@@ -46,8 +50,8 @@ def configure(conf):
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
@@ -198,7 +202,7 @@ def build(bld):
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 = ''
@@ -210,6 +214,8 @@ def build(bld):
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()
diff --git a/libs/evoral/wscript b/libs/evoral/wscript
index 91577b95c0..a06a3d4c0f 100644
--- a/libs/evoral/wscript
+++ b/libs/evoral/wscript
@@ -26,14 +26,14 @@ def set_options(opt):
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
diff --git a/libs/midi++2/wscript b/libs/midi++2/wscript
index 3b5401b327..789daa43bc 100644
--- a/libs/midi++2/wscript
+++ b/libs/midi++2/wscript
@@ -24,22 +24,22 @@ def set_options(opt):
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
diff --git a/libs/pbd/wscript b/libs/pbd/wscript
index 12a3791b64..278869ba6c 100644
--- a/libs/pbd/wscript
+++ b/libs/pbd/wscript
@@ -24,11 +24,11 @@ def set_options(opt):
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')
@@ -39,8 +39,8 @@ def configure(conf):
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
diff --git a/libs/surfaces/wscript b/libs/surfaces/wscript
index 520dd7ff47..b0576ee715 100644
--- a/libs/surfaces/wscript
+++ b/libs/surfaces/wscript
@@ -24,18 +24,18 @@ def set_options(opt):
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
diff --git a/libs/taglib/wscript b/libs/taglib/wscript
index 2aad178596..12a707ab32 100644
--- a/libs/taglib/wscript
+++ b/libs/taglib/wscript
@@ -31,7 +31,7 @@ def build(bld):
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')