src/wscript_build: also install static library
authorPaul Brossier <piem@piem.org>
Sat, 26 Nov 2016 13:52:37 +0000 (14:52 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 26 Nov 2016 13:52:37 +0000 (14:52 +0100)
See this post from waf author:
  https://groups.google.com/forum/#!msg/waf-users/GBHPrmO_lDg/34VWYEaks40J

src/wscript_build

index f2bd2ba..c55d5f2 100644 (file)
@@ -29,6 +29,11 @@ elif ctx.env['DEST_OS'] in ['emscripten']:
 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'],