From 0ab849bc2b570d2e3c56ad853f1347a2e4f6a39b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Oct 2011 21:03:00 +0000 Subject: Generate pkg-config files for extensions. Port genwscript.py to rdflib (pure python). --- wscript.template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'wscript.template') 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('?*.*')) -- cgit v1.2.1