ref: 8698499e0619b3c2cd0dcf7c880f3bec64bbb876
parent: cb7835dbf0ebbbf950bd9ef3a74b3abd605ec2e5
author: Paul Brossier <piem@piem.org>
date: Sat Nov 26 09:52:37 EST 2016
src/wscript_build: also install static library See this post from waf author: https://groups.google.com/forum/#!msg/waf-users/GBHPrmO_lDg/34VWYEaks40J
--- a/src/wscript_build
+++ b/src/wscript_build
@@ -29,6 +29,11 @@
else: #linux, darwin, android, mingw, ...
build_features = ['cstlib', 'cshlib']
+# also install static lib
+from waflib.Tools.c import cstlib
+from waflib.Tools.fc import fcstlib
+fcstlib.inst_to = cstlib.inst_to = '${LIBDIR}'
+
for target in build_features:
ctx(features = 'c ' + target,
use = uselib + ['lib_objects'],