summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-26 02:24:16 +0000
committerDavid Robillard <d@drobilla.net>2009-02-26 02:24:16 +0000
commit76f242cb804bd3c612ae5abfd0d3d078c0317dd0 (patch)
tree399476dbb1cc4c0121d79ac048852d4b79097383 /libs
parent593ffe80331f9cca68664f9dd501ce95b545f0c8 (diff)
Version file building stuff.
Ardour should now compile from a fresh svn checkout using only waf. git-svn-id: svn://localhost/ardour2/branches/3.0@4671 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/wscript9
-rw-r--r--libs/gtkmm2ext/wscript9
-rw-r--r--libs/midi++2/wscript9
-rw-r--r--libs/pbd/wscript9
-rw-r--r--libs/taglib/wscript35
5 files changed, 50 insertions, 21 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript
index e48632c6a0..e2b3200fd5 100644
--- a/libs/ardour/wscript
+++ b/libs/ardour/wscript
@@ -3,7 +3,10 @@ import autowaf
import os
# Version of this package (even if built as a child)
-LIBARDOUR_VERSION = '3.0.0'
+MAJOR = '3'
+MINOR = '0'
+MICRO = '0'
+LIBARDOUR_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -19,6 +22,8 @@ VERSION = LIBARDOUR_VERSION
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/ardour/'
+
def set_options(opt):
autowaf.set_options(opt)
@@ -29,6 +34,8 @@ def check_header_and_define(conf, header, define):
conf.env.append_value('CXXFLAGS', '-D' + define)
def configure(conf):
+ autowaf.build_version_files(path_prefix+'ardour/version.h', path_prefix+'version.cc',
+ 'libardour3', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', atleast_version='0.3.2')
diff --git a/libs/gtkmm2ext/wscript b/libs/gtkmm2ext/wscript
index 78bdd69dab..2a5532b9ac 100644
--- a/libs/gtkmm2ext/wscript
+++ b/libs/gtkmm2ext/wscript
@@ -3,7 +3,10 @@ import autowaf
import os
# Version of this package (even if built as a child)
-GTKMM2EXT_VERSION = '0.0.0'
+MAJOR = '0'
+MINOR = '8'
+MICRO = '3'
+GTKMM2EXT_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -19,10 +22,14 @@ VERSION = GTKMM2EXT_VERSION
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/gtkmm2ext/'
+
def set_options(opt):
autowaf.set_options(opt)
def configure(conf):
+ autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
+ 'libgtkmm2ext', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
diff --git a/libs/midi++2/wscript b/libs/midi++2/wscript
index 43ec395b4b..8629d2c4c3 100644
--- a/libs/midi++2/wscript
+++ b/libs/midi++2/wscript
@@ -2,7 +2,10 @@
import autowaf
# Version of this package (even if built as a child)
-LIBMIDIPP_VERSION = '0.0.0'
+MAJOR = '2'
+MINOR = '1'
+MICRO = '1'
+LIBMIDIPP_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -18,10 +21,14 @@ VERSION = LIBMIDIPP_VERSION
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/midi++2/'
+
def set_options(opt):
autowaf.set_options(opt)
def configure(conf):
+ autowaf.build_version_files(path_prefix+'midi++/version.h', path_prefix+'version.cc',
+ 'midipp', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0')
diff --git a/libs/pbd/wscript b/libs/pbd/wscript
index a523956617..cf708c12b6 100644
--- a/libs/pbd/wscript
+++ b/libs/pbd/wscript
@@ -2,7 +2,10 @@
import autowaf
# Version of this package (even if built as a child)
-LIBPBD_VERSION = '0.0.0'
+MAJOR = '4'
+MINOR = '1'
+MICRO = '0'
+LIBPBD_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -18,10 +21,14 @@ VERSION = LIBPBD_VERSION
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/pbd/'
+
def set_options(opt):
autowaf.set_options(opt)
def configure(conf):
+ autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc',
+ 'libpbd', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
diff --git a/libs/taglib/wscript b/libs/taglib/wscript
index 12a707ab32..e8fd74a7d5 100644
--- a/libs/taglib/wscript
+++ b/libs/taglib/wscript
@@ -19,6 +19,8 @@ VERSION = LIBTAGLIB_VERSION
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/taglib/'
+
def set_options(opt):
autowaf.set_options(opt)
@@ -29,25 +31,24 @@ def configure(conf):
def build(bld):
# Library
obj = bld.new_task_gen('cxx', 'shlib')
- prefix = 'libs/taglib/'
- sources = glob.glob(prefix + 'taglib/*.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')
- sources += glob.glob(prefix + 'taglib/mpeg/id3v2/*.cpp')
- sources += glob.glob(prefix + 'taglib/mpeg/id3v2/frames/*.cpp')
- sources += glob.glob(prefix + 'taglib/ogg/*.cpp')
- sources += glob.glob(prefix + 'taglib/ogg/vorbis/*.cpp')
- sources += glob.glob(prefix + 'taglib/ogg/speex/*.cpp')
- sources += glob.glob(prefix + 'taglib/ogg/flac/*.cpp')
- sources += glob.glob(prefix + 'taglib/trueaudio/*.cpp')
- sources += glob.glob(prefix + 'taglib/wavpack/*.cpp')
- sources += glob.glob(prefix + 'taglib/ape/*.cpp')
- sources += glob.glob(prefix + 'taglib/toolkit/*.cpp')
+ sources = glob.glob(path_prefix + 'taglib/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/flac/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/mpc/*.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/id3v2/*.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/vorbis/*.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/trueaudio/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/wavpack/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/ape/*.cpp')
+ sources += glob.glob(path_prefix + 'taglib/toolkit/*.cpp')
obj.source = []
for i in sources:
- obj.source += [ i.replace(prefix, '') ]
+ obj.source += [ i.replace(path_prefix, '') ]
include_dirs = '''
taglib