Skip to content
Snippets Groups Projects
Commit 98f472ca authored by Richard Schwarting's avatar Richard Schwarting
Browse files

* add rule to build .pc so I can easily use gxml for other software

* add hacky call to valadoc, finally something that works
parent e937c8bb
Branches
Tags
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# the following two variables are used by the target "waf dist" # the following two variables are used by the target "waf dist"
VERSION = '0.0.2' VERSION = '0.0.2'
SHORTVERSION= '0.0'
APPNAME = 'gxml' APPNAME = 'gxml'
# these variables are mandatory ('/' are converted automatically) # these variables are mandatory ('/' are converted automatically)
...@@ -27,11 +28,14 @@ def configure(conf): ...@@ -27,11 +28,14 @@ def configure(conf):
conf.env.CFLAGS = ['-g'] 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 ('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): def build(bld):
bld.recurse('gxml test') 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="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 ## want to call valadoc, but TypeError encountered by WAF, sigh
# bld(features='valadoc', # bld(features='valadoc',
# output_dir = './doc', # output_dir = './doc',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment