diff options
author | David Robillard <d@drobilla.net> | 2011-10-14 21:03:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-14 21:03:00 +0000 |
commit | 0ab849bc2b570d2e3c56ad853f1347a2e4f6a39b (patch) | |
tree | ff043f822c1cfb46def83180b46bb84411150a62 /wscript.template | |
parent | 177470d9efdbdf18118d1bacd55b5573a5dd36d5 (diff) | |
download | lv2-0ab849bc2b570d2e3c56ad853f1347a2e4f6a39b.tar.xz |
Generate pkg-config files for extensions.
Port genwscript.py to rdflib (pure python).
Diffstat (limited to 'wscript.template')
-rw-r--r-- | wscript.template | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/wscript.template b/wscript.template index eba53b0..725d0b5 100644 --- a/wscript.template +++ b/wscript.template @@ -6,7 +6,7 @@ import waflib.Options as Options # Variables for 'waf dist' APPNAME = 'lv2-@NAME@' -VERSION = '1.2' +VERSION = '@VERSION@' # Mandatory variables top = '.' @@ -31,6 +31,13 @@ def build(bld): bundle_dir = os.path.join(bld.env['LV2DIR'], '@NAME@.lv2') include_dir = os.path.join(bld.env['INCLUDEDIR'], 'lv2', include_base) + # Pkgconfig file + obj = bld(features = 'subst', + source = '@PKGCONFIG_NAME@.pc.in', + target = '@PKGCONFIG_NAME@.pc', + install_path = '${LIBDIR}/pkgconfig', + INCLUDEDIR = bld.env['INCLUDEDIR']) + # Install bundle bld.install_files(bundle_dir, bld.path.ant_glob('?*.*')) |