From dbde6547199980bb2dfb9e791e447c6375d5cf0c Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sat, 10 Nov 2007 18:20:46 +0000 Subject: [PATCH] more stub waf stuff --- docs/wscript_build | 17 +++++++++++++++++ libpackagekit/wscript_build | 11 ++++++++++- wscript | 11 ++++------- 3 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 docs/wscript_build diff --git a/docs/wscript_build b/docs/wscript_build new file mode 100644 index 000000000..0a772fab9 --- /dev/null +++ b/docs/wscript_build @@ -0,0 +1,17 @@ +#! /usr/bin/env python +# encoding: utf-8 +# +# Copyright (C) 2007 Richard Hughes +# +# Licensed under the GNU General Public License Version 2 +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# TODO: we want to build this using xmlto, i.e. doxmlto html-nochunks -m config.xsl pk-reference.xml + +install_files('DATADIR', 'APPNAME/docs', 'pk-reference.html') +install_files('DATADIR', 'APPNAME/docs', 'pk-structure.png') +install_files('DATADIR', 'APPNAME/docs', 'docbook.css') + diff --git a/libpackagekit/wscript_build b/libpackagekit/wscript_build index 6683d6d46..fa6f5a760 100644 --- a/libpackagekit/wscript_build +++ b/libpackagekit/wscript_build @@ -1,4 +1,13 @@ -#!/usr/bin/python +#! /usr/bin/env python +# encoding: utf-8 +# +# Copyright (C) 2007 Richard Hughes +# +# Licensed under the GNU General Public License Version 2 +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. #Marshall file libpackagekit = bld.create_obj('gnome', 'shlib') diff --git a/wscript b/wscript index 0b8e946da..34b14cfdf 100644 --- a/wscript +++ b/wscript @@ -14,7 +14,7 @@ import Params import misc # the following two variables are used by the target "waf dist" -VERSION='0.1.3' +VERSION='0.1.4' APPNAME='PackageKit' # these variables are mandatory ('/' are converted automatically) @@ -84,10 +84,6 @@ def configure(conf): conf.add_define('PK_DB_DIR', os.path.join(conf.env['DATADIR'], 'lib', 'PackageKit')) conf.add_define('PK_PLUGIN_DIR', os.path.join(conf.env['LIBDIR'], 'packagekit-backend')) - #TODO: can we define these here? - #AC_SUBST(PK_PLUGIN_CFLAGS, "-I\$(top_srcdir)/src -I\$(top_srcdir)/libpackagekit $GLIB_CFLAGS $DBUS_CFLAGS $GMODULE_CFLAGS") - #AC_SUBST(PK_PLUGIN_LIBS, "$GLIB_LIBS $DBUS_LIBS $GMODULE_LIBS") - conf.env.append_value('CCFLAGS', '-DHAVE_CONFIG_H') conf.write_config_header('config.h') @@ -104,13 +100,14 @@ def configure(conf): def build(bld): # process subfolders from here # Pending dirs: - # docs man python - bld.add_subdirs('libpackagekit backends client libgbus libselftest etc policy po data src') + # man python + bld.add_subdirs('libpackagekit backends client libgbus libselftest etc policy po data src docs') #set the user in packagekit.pc.in and install obj=bld.create_obj('subst') obj.source = 'packagekit.pc.in' obj.target = 'packagekit.pc' + #TODO: set these correctly obj.dict = {'VERSION': 'dave', 'prefix':'PREFIX', 'exec_prefix':'PREFIX', 'libdir':'usr/lib', 'includedir':'usr/include'} obj.fun = misc.subst_func obj.install_var = 'PREFIX'