From 51701447357322a6e76b2ba1c2f3e884e72da51f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 11 Apr 2013 12:58:45 +0100 Subject: Enable static build. --- src/wscript | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/wscript') diff --git a/src/wscript b/src/wscript index e1c405a..70f4b27 100644 --- a/src/wscript +++ b/src/wscript @@ -1,5 +1,8 @@ def build(bld): - obj = bld(features = 'cxx cxxshlib') + if bld.env.STATIC: + obj = bld(features = 'cxx cxxstlib') + else: + obj = bld(features = 'cxx cxxshlib') obj.name = 'libcxml' obj.target = 'cxml' obj.export_includes = ['.'] @@ -7,3 +10,6 @@ def build(bld): obj.source = "cxml.cc" bld.install_files('${PREFIX}/include/libcxml', "cxml.h") + if bld.env.STATIC: + bld.install_files('${PREFIX}/lib', 'libcxml.a') + -- cgit v1.2.3