aboutsummaryrefslogtreecommitdiffstats
path: root/wscript.template
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-26 22:55:49 +0000
committerDavid Robillard <d@drobilla.net>2011-05-26 22:55:49 +0000
commit5efc8a0f538fdc7d62e7846a2344b326c3344637 (patch)
tree77f87cc0bce24fa544e50c45092c9263201fd4ff /wscript.template
parent33548f495c6d49726e8f996c2482073ae2385e88 (diff)
downloadlv2-5efc8a0f538fdc7d62e7846a2344b326c3344637.tar.xz
Add automatic extension release generation script
Diffstat (limited to 'wscript.template')
-rw-r--r--wscript.template33
1 files changed, 33 insertions, 0 deletions
diff --git a/wscript.template b/wscript.template
new file mode 100644
index 0000000..b2e5912
--- /dev/null
+++ b/wscript.template
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+from waflib.extras import autowaf as autowaf
+import waflib.Logs as Logs
+
+# Variables for 'waf dist'
+APPNAME = 'lv2-@NAME@'
+VERSION = '@MINOR@.@MICRO@'
+
+# Mandatory variables
+top = '.'
+out = 'build'
+
+def options(opt):
+ autowaf.set_options(opt)
+
+def configure(conf):
+ autowaf.configure(conf)
+ autowaf.display_msg(conf, "LV2 bundle directory",
+ conf.env['LV2DIR'])
+ print('')
+
+def build(bld):
+ bld.install_files('${LV2DIR}/@NAME@.lv2',
+ bld.path.ant_glob('*.*'))
+
+ bld.add_post_fun(warn_lv2config)
+
+def warn_lv2config(ctx):
+ if ctx.cmd == 'install':
+ Logs.warn('''
+* LV2 Extension Installed
+* You need to run lv2config to update extension headers
+''')