diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-11 12:58:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-11 12:58:45 +0100 |
| commit | 51701447357322a6e76b2ba1c2f3e884e72da51f (patch) | |
| tree | ab5cdc7148ed42f8c0c99b3d9c6565112d094181 /src | |
| parent | d5e446291f60eb203796389d4b0f726efca2befe (diff) | |
Enable static build.
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') + |
