aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--COPYING (renamed from lv2/lv2plug.in/ns/lv2core/COPYING)4
-rw-r--r--ext.pc.in6
-rw-r--r--ext.wscript199
l---------lv2/lv2plug.in/ns/ext/atom/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/atom/waf1
l---------lv2/lv2plug.in/ns/ext/cv-port/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/cv-port/waf1
l---------lv2/lv2plug.in/ns/ext/data-access/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/data-access/waf1
l---------lv2/lv2plug.in/ns/ext/dynmanifest/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/dynmanifest/waf1
l---------lv2/lv2plug.in/ns/ext/event/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/event/waf1
l---------lv2/lv2plug.in/ns/ext/host-info/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/host-info/waf1
l---------lv2/lv2plug.in/ns/ext/instance-access/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/instance-access/waf1
l---------lv2/lv2plug.in/ns/ext/log/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/log/waf1
l---------lv2/lv2plug.in/ns/ext/midi/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/midi/waf1
l---------lv2/lv2plug.in/ns/ext/parameters/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/parameters/waf1
l---------lv2/lv2plug.in/ns/ext/patch/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/patch/waf1
l---------lv2/lv2plug.in/ns/ext/port-groups/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/port-groups/waf1
l---------lv2/lv2plug.in/ns/ext/port-props/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/port-props/waf1
l---------lv2/lv2plug.in/ns/ext/presets/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/presets/waf1
l---------lv2/lv2plug.in/ns/ext/resize-port/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/resize-port/waf1
l---------lv2/lv2plug.in/ns/ext/state/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/state/waf1
l---------lv2/lv2plug.in/ns/ext/time/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/time/waf1
l---------lv2/lv2plug.in/ns/ext/uri-map/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/uri-map/waf1
l---------lv2/lv2plug.in/ns/ext/urid/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/urid/waf1
l---------lv2/lv2plug.in/ns/ext/worker/ext.pc.in1
l---------lv2/lv2plug.in/ns/ext/worker/waf1
l---------lv2/lv2plug.in/ns/extensions/ui/ext.pc.in1
l---------lv2/lv2plug.in/ns/extensions/ui/waf1
l---------lv2/lv2plug.in/ns/extensions/units/ext.pc.in1
l---------lv2/lv2plug.in/ns/extensions/units/waf1
-rw-r--r--lv2/lv2plug.in/ns/lv2core/AUTHORS13
-rw-r--r--lv2/lv2plug.in/ns/lv2core/INSTALL41
l---------lv2/lv2plug.in/ns/people/ext.pc.in1
l---------lv2/lv2plug.in/ns/people/waf1
-rwxr-xr-xwafbin91671 -> 92232 bytes
-rw-r--r--wscript57
53 files changed, 84 insertions, 282 deletions
diff --git a/lv2/lv2plug.in/ns/lv2core/COPYING b/COPYING
index c46d5dd..4d59452 100644
--- a/lv2/lv2plug.in/ns/lv2core/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright 2006-2011 Steve Harris, David Robillard.
+Copyright 2006-2012 Steve Harris, David Robillard.
Based on LADSPA, Copyright 2000-2002 Richard W.E. Furse,
Paul Barton-Davis, Stefan Westerfeld.
@@ -13,4 +13,4 @@ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/ext.pc.in b/ext.pc.in
deleted file mode 100644
index c147b1a..0000000
--- a/ext.pc.in
+++ /dev/null
@@ -1,6 +0,0 @@
-includedir=@INCLUDEDIR@
-
-Name: LV2 @NAME@
-Version: @VERSION@
-Description: @DESCRIPTION@
-Cflags: -I${includedir}
diff --git a/ext.wscript b/ext.wscript
index db0c078..5f9e0c3 100644
--- a/ext.wscript
+++ b/ext.wscript
@@ -2,16 +2,8 @@
import glob
import os
import shutil
-import sys
-from waflib.extras import autowaf as autowaf
-from waflib.TaskGen import feature, before
-import waflib.Scripting as Scripting
-import waflib.Logs as Logs
-import waflib.Options as Options
-import waflib.Context as Context
-import waflib.Utils as Utils
-info = None
+from waflib.extras import autowaf as autowaf
# A rule for making a link in the build directory to a source file
def link(task):
@@ -26,50 +18,8 @@ def link(task):
func(task.inputs[0].abspath(), task.outputs[0].abspath())
-try:
- # Read version information from lv2extinfo.py (in a release tarball)
- import lv2extinfo
- info = lv2extinfo
-except:
- # Read version information from RDF files
- try:
- import rdflib
- doap = rdflib.Namespace('http://usefulinc.com/ns/doap#')
- rdf = rdflib.Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#')
- lv2 = rdflib.Namespace('http://lv2plug.in/ns/lv2core#')
-
- dir = sys.path[0]
- m = rdflib.ConjunctiveGraph()
-
- for i in glob.glob(os.path.join(dir, '*.ttl')):
- m.parse(i, format='n3')
-
- spec = m.value(None, rdf.type, lv2.Specification)
- name = os.path.basename(spec.replace('http://', ''))
-
- info = type('lv2extinfo', (object,), {
- 'NAME' : str(name),
- 'MINOR' : int(m.value(spec, lv2.minorVersion, None)),
- 'MICRO' : int(m.value(spec, lv2.microVersion, None)),
- 'URI' : str(spec),
- 'PKGNAME' : str('lv2-' + spec.replace('http://', '').replace('/', '-')),
- 'SHORTDESC' : str(m.value(spec, doap.shortdesc, None))})
-
- except:
- e = sys.exc_info()[1]
- Logs.error('Error reading version information: ' + str(e))
-
-if not info:
- Logs.error("Failed to find version information from lv2extinfo.py or RDF")
- sys.exit(1)
-
-# Variables for 'waf dist'
-APPNAME = 'lv2-' + info.NAME
-VERSION = '%d.%d' % (info.MINOR, info.MICRO)
-
-# Mandatory variables
-top = '.'
-out = 'build'
+def configure(conf):
+ pass
def options(opt):
opt.load('compiler_c')
@@ -80,143 +30,68 @@ def options(opt):
dest='copy_headers',
help='Copy headers instead of linking to bundle')
-def configure(conf):
- try:
- conf.load('compiler_c')
- except:
- Options.options.build_tests = False
-
- conf.env['BUILD_TESTS'] = Options.options.build_tests
- conf.env['COPY_HEADERS'] = Options.options.copy_headers
-
- if not hasattr(os.path, 'relpath') and not Options.options.copy_headers:
- conf.fatal(
- 'os.path.relpath missing, get Python 2.6 or use --copy-headers')
-
- # Check for gcov library (for test coverage)
- if conf.env['BUILD_TESTS'] and not conf.is_defined('HAVE_GCOV'):
- if conf.env['MSVC_COMPILER']:
- conf.env.append_unique('CFLAGS', ['-TP', '-MD'])
- else:
- conf.env.append_unique('CFLAGS', '-std=c99')
- conf.check_cc(lib='gcov', define_name='HAVE_GCOV', mandatory=False)
-
- autowaf.configure(conf)
- autowaf.display_header('LV2 %s Configuration' % info.NAME)
- autowaf.display_msg(conf, 'LV2 bundle directory', conf.env['LV2DIR'])
- autowaf.display_msg(conf, 'URI', info.URI)
- autowaf.display_msg(conf, 'Version', VERSION)
- autowaf.display_msg(conf, 'Pkgconfig name', info.PKGNAME)
- print('')
-
def build(bld):
- uri = info.URI
- include_base = os.path.dirname(uri[uri.find('://') + 3:])
- bundle_dir = os.path.join(bld.env['LV2DIR'], info.NAME + '.lv2')
- include_dir = os.path.join(bld.env['INCLUDEDIR'], 'lv2', include_base)
-
- # Pkgconfig file
- obj = bld(features = 'subst',
- source = 'ext.pc.in',
- target = info.PKGNAME + '.pc',
- install_path = '${LIBDIR}/pkgconfig',
- INCLUDEDIR = bld.env['INCLUDEDIR'],
- INCLUDE_PATH = uri.replace('http://', 'lv2/'),
- NAME = info.NAME,
- VERSION = VERSION,
- DESCRIPTION = info.SHORTDESC)
-
- if bld.env['BUILD_TESTS'] and bld.path.find_node('%s-test.c' % info.NAME):
+ path = bld.path.srcpath()[len('lv2/'):]
+ name = os.path.basename(path)
+ bundle_dir = os.path.join(bld.env['LV2DIR'], name + '.lv2')
+ include_dir = os.path.join(bld.env['INCLUDEDIR'], 'lv2', path)
+
+ # Copy headers to URI-style include paths in build directory
+ for i in bld.path.ant_glob('*.h'):
+ obj = bld(rule = link,
+ name = 'link',
+ cwd = 'build/lv2/%s' % path,
+ source = '%s' % i,
+ target = 'lv2/%s/%s' % (path, i))
+
+ if bld.env['BUILD_TESTS'] and bld.path.find_node('%s-test.c' % name):
test_lib = []
test_cflags = ['']
if bld.is_defined('HAVE_GCOV'):
test_lib += ['gcov']
test_cflags += ['-fprofile-arcs', '-ftest-coverage']
- # Copy headers to URI-style include paths in build directory
- for i in bld.path.ant_glob('*.h'):
- obj = bld(rule = link,
- name = 'link',
- cwd = 'build/lv2/%s/%s' % (include_base, info.NAME),
- source = '%s' % i,
- target = 'lv2/%s/%s/%s' % (include_base, info.NAME, i))
-
# Unit test program
obj = bld(features = 'c cprogram',
- source = '%s-test.c' % info.NAME,
+ source = '%s-test.c' % name,
lib = test_lib,
- target = '%s-test' % info.NAME,
+ target = '%s-test' % name,
install_path = '',
cflags = test_cflags)
# Install bundle
bld.install_files(bundle_dir,
- bld.path.ant_glob('?*.*', excl='*.pc.in lv2extinfo.*'))
+ bld.path.ant_glob('?*.*', excl='*.in'))
# Install URI-like includes
- if bld.env['COPY_HEADERS']:
- bld.install_files(os.path.join(include_dir, info.NAME),
- bld.path.ant_glob('*.h'))
- else:
- bld.symlink_as(os.path.join(include_dir, info.NAME),
- os.path.relpath(bundle_dir, include_dir))
+ if bld.path.ant_glob('*.h'):
+ if bld.env['COPY_HEADERS']:
+ bld.install_files(include_dir, bld.path.ant_glob('*.h'))
+ else:
+ bld.symlink_as(include_dir,
+ os.path.relpath(bundle_dir,
+ os.path.dirname(include_dir)))
def test(ctx):
- autowaf.pre_test(ctx, APPNAME, dirs=['.'])
+ name = os.path.basename(ctx.path.srcpath()[len('lv2/'):])
+ autowaf.pre_test(ctx, name, dirs=['.'])
os.environ['PATH'] = '.' + os.pathsep + os.getenv('PATH')
- autowaf.run_tests(ctx, APPNAME, ['%s-test' % info.NAME], dirs=['.'])
- autowaf.post_test(ctx, APPNAME, dirs=['.'])
+ autowaf.run_tests(ctx, name, ['%s-test' % name], dirs=['.'])
+ autowaf.post_test(ctx, name, dirs=['.'])
def news(ctx):
path = ctx.path.abspath()
- autowaf.write_news(APPNAME,
+ autowaf.write_news(os.path.basename(path),
glob.glob(os.path.join(path, '*.ttl')),
os.path.join(path, 'NEWS'))
-class Dist(Scripting.Dist):
- def execute(self):
- "Execute but do not call archive() since dist() has already done so."
- self.recurse([os.path.dirname(Context.g_module.root_path)])
-
- def get_tar_path(self, node):
- "Resolve symbolic links to avoid broken links in tarball."
- return os.path.realpath(node.abspath())
-
-class DistCheck(Dist, Scripting.DistCheck):
- def execute(self):
- Dist.execute(self)
- self.check()
-
- def archive(self):
- Dist.archive(self)
-
def pre_dist(ctx):
- # Write lv2extinfo.py in source directory
- path = ctx.path.abspath()
- lv2extinfo_py = open(os.path.join(path, 'lv2extinfo.py'), 'w')
- for i in info.__dict__:
- if i.isupper():
- lv2extinfo_py.write("%s = %s\n" % (i, repr(info.__dict__[i])))
- lv2extinfo_py.close()
-
# Write NEWS file in source directory
news(ctx)
-def dist(ctx):
- pre_dist(ctx)
- ctx.archive()
- post_dist(ctx)
-
-def distcheck(ctx):
- dist(ctx)
-
def post_dist(ctx):
- # Delete generated files from source tree
- path = ctx.path.abspath()
- for i in [os.path.join(path, 'NEWS'),
- os.path.join(path, 'lv2extinfo.py'),
- os.path.join(path, 'lv2extinfo.pyc')]:
- try:
- os.remove(i)
- except:
- pass
+ # Delete generated NEWS file from source directory
+ try:
+ os.remove(os.path.join(ctx.path.abspath(), 'NEWS'))
+ except:
+ pass
diff --git a/lv2/lv2plug.in/ns/ext/atom/ext.pc.in b/lv2/lv2plug.in/ns/ext/atom/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/atom/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/atom/waf b/lv2/lv2plug.in/ns/ext/atom/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/atom/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/cv-port/ext.pc.in b/lv2/lv2plug.in/ns/ext/cv-port/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/cv-port/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/cv-port/waf b/lv2/lv2plug.in/ns/ext/cv-port/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/cv-port/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/data-access/ext.pc.in b/lv2/lv2plug.in/ns/ext/data-access/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/data-access/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/data-access/waf b/lv2/lv2plug.in/ns/ext/data-access/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/data-access/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/dynmanifest/ext.pc.in b/lv2/lv2plug.in/ns/ext/dynmanifest/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/dynmanifest/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/dynmanifest/waf b/lv2/lv2plug.in/ns/ext/dynmanifest/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/dynmanifest/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/event/ext.pc.in b/lv2/lv2plug.in/ns/ext/event/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/event/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/event/waf b/lv2/lv2plug.in/ns/ext/event/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/event/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/host-info/ext.pc.in b/lv2/lv2plug.in/ns/ext/host-info/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/host-info/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/host-info/waf b/lv2/lv2plug.in/ns/ext/host-info/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/host-info/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/instance-access/ext.pc.in b/lv2/lv2plug.in/ns/ext/instance-access/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/instance-access/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/instance-access/waf b/lv2/lv2plug.in/ns/ext/instance-access/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/instance-access/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/log/ext.pc.in b/lv2/lv2plug.in/ns/ext/log/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/log/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/log/waf b/lv2/lv2plug.in/ns/ext/log/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/log/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/midi/ext.pc.in b/lv2/lv2plug.in/ns/ext/midi/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/midi/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/midi/waf b/lv2/lv2plug.in/ns/ext/midi/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/midi/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/parameters/ext.pc.in b/lv2/lv2plug.in/ns/ext/parameters/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/parameters/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/parameters/waf b/lv2/lv2plug.in/ns/ext/parameters/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/parameters/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/patch/ext.pc.in b/lv2/lv2plug.in/ns/ext/patch/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/patch/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/patch/waf b/lv2/lv2plug.in/ns/ext/patch/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/patch/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/port-groups/ext.pc.in b/lv2/lv2plug.in/ns/ext/port-groups/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/port-groups/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/port-groups/waf b/lv2/lv2plug.in/ns/ext/port-groups/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/port-groups/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/port-props/ext.pc.in b/lv2/lv2plug.in/ns/ext/port-props/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/port-props/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/port-props/waf b/lv2/lv2plug.in/ns/ext/port-props/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/port-props/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/presets/ext.pc.in b/lv2/lv2plug.in/ns/ext/presets/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/presets/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/presets/waf b/lv2/lv2plug.in/ns/ext/presets/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/presets/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/resize-port/ext.pc.in b/lv2/lv2plug.in/ns/ext/resize-port/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/resize-port/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/resize-port/waf b/lv2/lv2plug.in/ns/ext/resize-port/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/resize-port/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/state/ext.pc.in b/lv2/lv2plug.in/ns/ext/state/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/state/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/state/waf b/lv2/lv2plug.in/ns/ext/state/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/state/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/time/ext.pc.in b/lv2/lv2plug.in/ns/ext/time/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/time/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/time/waf b/lv2/lv2plug.in/ns/ext/time/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/time/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/uri-map/ext.pc.in b/lv2/lv2plug.in/ns/ext/uri-map/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/uri-map/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/uri-map/waf b/lv2/lv2plug.in/ns/ext/uri-map/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/uri-map/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/urid/ext.pc.in b/lv2/lv2plug.in/ns/ext/urid/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/urid/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/urid/waf b/lv2/lv2plug.in/ns/ext/urid/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/urid/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/worker/ext.pc.in b/lv2/lv2plug.in/ns/ext/worker/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/ext/worker/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/ext/worker/waf b/lv2/lv2plug.in/ns/ext/worker/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/ext/worker/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/extensions/ui/ext.pc.in b/lv2/lv2plug.in/ns/extensions/ui/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/extensions/ui/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/extensions/ui/waf b/lv2/lv2plug.in/ns/extensions/ui/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/extensions/ui/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/extensions/units/ext.pc.in b/lv2/lv2plug.in/ns/extensions/units/ext.pc.in
deleted file mode 120000
index 03dd044..0000000
--- a/lv2/lv2plug.in/ns/extensions/units/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/extensions/units/waf b/lv2/lv2plug.in/ns/extensions/units/waf
deleted file mode 120000
index 5235032..0000000
--- a/lv2/lv2plug.in/ns/extensions/units/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../waf \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/lv2core/AUTHORS b/lv2/lv2plug.in/ns/lv2core/AUTHORS
deleted file mode 100644
index 64febf8..0000000
--- a/lv2/lv2plug.in/ns/lv2core/AUTHORS
+++ /dev/null
@@ -1,13 +0,0 @@
-LV2 is written and maintained by:
-
-David Robillard <d@drobilla.net>
-Steve Harris <steve@plugin.org.uk>
-
-with the input and help of many others.
-
-LV2 is based on LADSPA, which was by:
- Paul Barton-Davis
- Richard W.E. Furse
- Stefan Westerfeld
-
-Thanks to all members of the free software community who made LV2 possible.
diff --git a/lv2/lv2plug.in/ns/lv2core/INSTALL b/lv2/lv2plug.in/ns/lv2core/INSTALL
deleted file mode 100644
index 16b1427..0000000
--- a/lv2/lv2plug.in/ns/lv2core/INSTALL
+++ /dev/null
@@ -1,41 +0,0 @@
-This software requires only Python to build. The build system, based on waf,
-is included in this source distribution.
-
-
-LV2Core
-=======
-
-This package contains everything necessary to compile against and/or use LV2
-plugins and extensions: a header file, pkg-config file, and LV2 bundle (with
-Turtle files).
-
-The configure option --bundle-only can be used to install only the lv2core.lv2
-bundle. This is useful for installing the bundle to a project-specific or
-user-specific location (e.g. ~/.lv2).
-
-See README for details on how to correctly package LV2, and how to depend on
-LV2 in other projects.
-
-
-Generic Waf Instructions
-========================
-
-As with most build systems, building and installing a project with waf is done
-in three separate stages:
-
- 1. ./waf configure [OPTIONS]
- 2. ./waf build
- 3. ./waf install
-
-The default command is build. For example:
-
- ./waf configure --prefix=/some/where
- ./waf -j2
- sudo ./waf install
-
-The environment variable DESTDIR can be used to add a prefix to all install
-paths (useful for packaging), for example:
-
- DESTDIR=./lv2core.pkg ./waf install
-
-Run './waf --help' for detailed option information.
diff --git a/lv2/lv2plug.in/ns/people/ext.pc.in b/lv2/lv2plug.in/ns/people/ext.pc.in
deleted file mode 120000
index 82b50df..0000000
--- a/lv2/lv2plug.in/ns/people/ext.pc.in
+++ /dev/null
@@ -1 +0,0 @@
-../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/lv2plug.in/ns/people/waf b/lv2/lv2plug.in/ns/people/waf
deleted file mode 120000
index b955110..0000000
--- a/lv2/lv2plug.in/ns/people/waf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../waf \ No newline at end of file
diff --git a/waf b/waf
index 56ec822..f1dfd13 100755
--- a/waf
+++ b/waf
Binary files differ
diff --git a/wscript b/wscript
index f370ee9..f73c912 100644
--- a/wscript
+++ b/wscript
@@ -12,12 +12,9 @@ import waflib.Logs as Logs
import waflib.Options as Options
import waflib.Scripting as Scripting
-# Version of this package (even if built as a child)
-LV2EXT_VERSION = datetime.date.isoformat(datetime.datetime.now()).replace('-', '.')
-
# Variables for 'waf dist'
APPNAME = 'lv2'
-VERSION = LV2EXT_VERSION
+VERSION = '0.1.0'
# Mandatory variables
top = '.'
@@ -27,8 +24,13 @@ def options(opt):
opt.load('compiler_cc')
opt.load('compiler_cxx')
autowaf.set_options(opt)
- opt.add_option('--test', action='store_true', default=False, dest='build_tests',
- help="Build unit tests")
+ opt.add_option('--test', action='store_true', default=False,
+ dest='build_tests', help="Build unit tests")
+ opt.add_option('--plugins', action='store_true', default=True,
+ dest='build_plugins', help="Build example plugins")
+ opt.add_option('--copy-headers', action='store_true', default=False,
+ dest='copy_headers',
+ help='Copy headers instead of linking to bundle')
for i in ['lv2/lv2plug.in/ns/lv2core']:
opt.recurse(i)
@@ -42,13 +44,33 @@ def get_subdirs(with_plugins=True):
return subdirs
def configure(conf):
- conf.load('compiler_cc')
- conf.load('compiler_cxx')
+ try:
+ conf.load('compiler_c')
+ conf.load('compiler_cxx')
+ except:
+ Options.options.build_tests = False
+ Options.options.build_plugins = False
+
autowaf.configure(conf)
autowaf.set_recursive()
conf.env.append_unique('CFLAGS', '-std=c99')
+ conf.env['BUILD_TESTS'] = Options.options.build_tests
+ conf.env['COPY_HEADERS'] = Options.options.copy_headers
+
+ if not hasattr(os.path, 'relpath') and not Options.options.copy_headers:
+ conf.fatal(
+ 'os.path.relpath missing, get Python 2.6 or use --copy-headers')
+
+ # Check for gcov library (for test coverage)
+ if conf.env['BUILD_TESTS'] and not conf.is_defined('HAVE_GCOV'):
+ if conf.env['MSVC_COMPILER']:
+ conf.env.append_unique('CFLAGS', ['-TP', '-MD'])
+ else:
+ conf.env.append_unique('CFLAGS', '-std=c99')
+ conf.check_cc(lib='gcov', define_name='HAVE_GCOV', mandatory=False)
+
subdirs = get_subdirs()
for i in subdirs:
@@ -56,6 +78,11 @@ def configure(conf):
conf.env['LV2_SUBDIRS'] = subdirs
+ autowaf.configure(conf)
+ autowaf.display_header('LV2 Configuration')
+ autowaf.display_msg(conf, 'Bundle directory', conf.env['LV2DIR'])
+ autowaf.display_msg(conf, 'Version', VERSION)
+
# Rule for copying a file to the build directory
def copy(task):
shutil.copy(task.inputs[0].abspath(), task.outputs[0].abspath())
@@ -232,7 +259,7 @@ def build(bld):
index_files = []
- # Generate .htaccess files (and directory skeleton)
+ # Prepare spec output directories
for i in bld.env['LV2_SUBDIRS']:
if i.startswith('lv2/lv2plug.in'):
# Copy spec files to build dir
@@ -244,8 +271,6 @@ def build(bld):
base = i[len('lv2/lv2plug.in'):]
name = os.path.basename(i[:len(i)-1])
- index_file = os.path.join('index_rows', name)
- index_files += [index_file]
# Generate .htaccess file
obj = bld(features = 'subst',
@@ -255,7 +280,14 @@ def build(bld):
NAME = name,
BASE = base)
- bld.add_group()
+ # Call lv2specgen for each spec
+ for i in bld.env['LV2_SUBDIRS']:
+ if i.startswith('lv2/lv2plug.in'):
+ name = os.path.basename(i[:len(i)-1])
+ index_file = os.path.join('index_rows', name)
+ index_files += [index_file]
+
+ bld.add_group() # Barrier (don't call lv2specgen in parallel)
# Call lv2specgen to generate spec docs
obj = bld(rule = specgen,
@@ -265,6 +297,7 @@ def build(bld):
index_file])
index_files.sort()
+ bld.add_group() # Barrier (wait for lv2specgen to build index)
# Build extension index
obj = bld(rule = build_index,
19' href='#n2119'>2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443