From 98f472cae25f173f0f409551e465153eb63fdf93 Mon Sep 17 00:00:00 2001 From: Richard Schwarting Date: Thu, 21 Jul 2011 14:44:21 -0400 Subject: [PATCH] * add rule to build .pc so I can easily use gxml for other software * add hacky call to valadoc, finally something that works --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 9f455a36..9b347a1f 100644 --- a/wscript +++ b/wscript @@ -6,6 +6,7 @@ # the following two variables are used by the target "waf dist" VERSION = '0.0.2' +SHORTVERSION= '0.0' APPNAME = 'gxml' # these variables are mandatory ('/' are converted automatically) @@ -27,11 +28,14 @@ def configure(conf): conf.env.CFLAGS = ['-g'] conf.check_tool ('gcc vala') # do we need to do this? only saw it in the valadoc example - #conf.check_tool ('valadoc') + conf.check_tool ('valadoc') def build(bld): bld.recurse('gxml test') + bld(source="gxml.pc.in", install_path="${LIBDIR}/pkgconfig/", SHORTVERSION=SHORTVERSION, VERSION=VERSION) bld(rule="cp ${SRC} ${TGT}", source="test/test.xml", target="build/test/") + bld(rule="rm -rf doc; valadoc --package-name=" + APPNAME + " --package-version=" + VERSION + " --pkg libxml-2.0 --pkg gio-2.0 --pkg gee-1.0 ../gxml/*.vala -o doc"); + ## want to call valadoc, but TypeError encountered by WAF, sigh # bld(features='valadoc', # output_dir = './doc', -- GitLab