s3:wscript: make --with-{static,shared}-modules options more flexible
commit43d1c92e6202b27db7f8b8820c55bffb2c486d4b
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Aug 2015 12:22:45 +0000 (13 14:22 +0200)
committerRalph Böhme <slow@samba.org>
Thu, 20 Aug 2015 14:06:21 +0000 (20 16:06 +0200)
tree2984fb2ea903d6e51c2aea65ae5c4b399a71c0b5
parentd830cecd03697c68bdcc5f8eaf325abb7f0c425e
s3:wscript: make --with-{static,shared}-modules options more flexible

'!module' disables a non-required module for a static/shared build.
'!DEFAULT' disables all modules defaulting to a static/shared build.
'!FORCED' disables all (non-required) modules forced to a static/shared build.
'ALL' switches the default for all non forced modules from static to shared
or from shared to static.
The most specific specification wins
e.g.
--with-static-modules='!FORCED,!DEFAULT' --with-shared-modules='!FORCED,!DEFAULT' will only
build modules which are required for the compilation. Might be useful
if someone only wants to use client utils.

--with-static-modules=ALL will build all modules statically linked.

--with-static-modules='!DEFAULT,ALL' --with-shared-modules='!DEFAULT,ALL'
might be useful for testing, it reverses the default build for all modules
which can be build shared or static.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/wscript