From 2e13a85e396570d0492ffd9dac9fefee59524da8 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 14 Apr 2012 00:13:57 +0400 Subject: Initial replete commit. Wrappers for libaugeas. aug_insert() and aug_match() are not supported yet. --- wscript | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 wscript (limited to 'wscript') diff --git a/wscript b/wscript new file mode 100644 index 0000000..4dbd829 --- /dev/null +++ b/wscript @@ -0,0 +1,18 @@ +def set_options(opt): + opt.tool_options('compiler_cxx') + +def configure(conf): + conf.check_tool('compiler_cxx') + conf.check_tool('node_addon') + conf.check_cfg(package='augeas', + atleast_version='0.9', + args='--cflags --libs', + mandatory=True) +# TODO: if version >= 0.10 we need libxml (namely -I /usr/include/libxml2) + +def build(bld): + obj = bld.new_task_gen('cxx', 'shlib', 'node_addon') + obj.target = 'libaugeas' + obj.source = 'libaugeas.cc' + obj.uselib = ['AUGEAS'] + -- cgit v1.2.3