aboutsummaryrefslogtreecommitdiffstats
path: root/core.lv2/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-10-04 18:21:08 +0000
committerDavid Robillard <d@drobilla.net>2010-10-04 18:21:08 +0000
commitcef9811dac46a9d54dab0f0d82ce5c3ae032fc7c (patch)
tree632b911da25fc24b6b3d331d7ceffc22606b8e5b /core.lv2/wscript
parent61842745ab15454ee66be54a6f3bcc148a75406f (diff)
downloadlv2-cef9811dac46a9d54dab0f0d82ce5c3ae032fc7c.tar.xz
Initial import of lv2plug.in universe.
Diffstat (limited to 'core.lv2/wscript')
-rw-r--r--core.lv2/wscript41
1 files changed, 41 insertions, 0 deletions
diff --git a/core.lv2/wscript b/core.lv2/wscript
new file mode 100644
index 0000000..4c3b10e
--- /dev/null
+++ b/core.lv2/wscript
@@ -0,0 +1,41 @@
+#!/usr/bin/env python
+import sys
+import autowaf
+import Options
+
+# Version of this package (even if built as a child)
+LV2CORE_VERSION = '4.0'
+
+# Variables for 'waf dist'
+APPNAME = 'lv2core'
+VERSION = LV2CORE_VERSION
+
+# Mandatory variables
+srcdir = '.'
+blddir = 'build'
+
+def set_options(opt):
+ opt.add_option('--bundle-only', action='store_true', default=False, dest='bundle_only',
+ help="Only install LV2 bundle (not header or pkg-config file)")
+ autowaf.set_options(opt)
+
+def configure(conf):
+ autowaf.configure(conf)
+
+def build(bld):
+ # Header "library"
+ obj = bld.new_task_gen()
+ obj.export_incdirs = ['.']
+ obj.name = 'liblv2core'
+ obj.target = 'lv2core'
+
+ if not Options.options.bundle_only:
+ # Header
+ bld.install_files('${INCLUDEDIR}', 'lv2.h')
+
+ # Pkgconfig file
+ autowaf.build_pc(bld, 'LV2CORE', LV2CORE_VERSION, [])
+
+ # Bundle (data)
+ bld.install_files('${LV2DIR}/lv2core.lv2', 'lv2.ttl manifest.ttl')
+