diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-25 00:07:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-25 00:07:45 +0100 |
| commit | 948069a23d9c1b2a97d1f3d6a2c856396de205e3 (patch) | |
| tree | 3c008357d440feae598902fdac9a7a4b651f860d /src | |
| parent | 833fbe007db587961b99553a43f1af8076c52eb5 (diff) | |
| parent | 1162697d2568bd5fa01b62f03916783eeb5d5b50 (diff) | |
Merge.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wscript | 8 |
1 files changed, 7 insertions, 1 deletions
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') + |
