configure: add options --minimal, --typical and --everything; Makefile: install target respects OMIT

This commit is contained in:
Guenter Obiltschnig 2015-10-06 15:41:53 +02:00
parent a856067668
commit 50d31a1b17
3 changed files with 23 additions and 3 deletions

View File

@ -41,7 +41,7 @@ install: libexecs
mkdir -p $(INSTALLDIR)/include/Poco mkdir -p $(INSTALLDIR)/include/Poco
mkdir -p $(INSTALLDIR)/lib mkdir -p $(INSTALLDIR)/lib
mkdir -p $(INSTALLDIR)/bin mkdir -p $(INSTALLDIR)/bin
for comp in $(COMPONENTS) ; do \ for comp in $(filter-out $(foreach f,$(OMIT),$f%),$(COMPONENTS)) ; do \
if [ -d "$(POCO_BASE)/$$comp/include" ] ; then \ if [ -d "$(POCO_BASE)/$$comp/include" ] ; then \
cp -Rf $(POCO_BASE)/$$comp/include/* $(INSTALLDIR)/include/ ; \ cp -Rf $(POCO_BASE)/$$comp/include/* $(INSTALLDIR)/include/ ; \
fi ; \ fi ; \

22
configure vendored
View File

@ -40,6 +40,15 @@ Options:
--no-samples --no-samples
Do not build samples. Do not build samples.
--minimal
Build only Foundation, XML, JSON, Util and Net.
--typical (default)
Build only Foundation, XML, JSON, Util, Net, Crypto, NetSSL, Data/SQLite and Zip.
--everything
Build everything.
--no-wstring --no-wstring
Compile with -DPOCO_NO_WSTRING. Compile with -DPOCO_NO_WSTRING.
Useful if your C++ compiler does not support std::wstring Useful if your C++ compiler does not support std::wstring
@ -126,7 +135,6 @@ cd $build
tests=1 tests=1
samples=1 samples=1
flags="" flags=""
omit=""
includepath="" includepath=""
librarypath="" librarypath=""
odbclib="" odbclib=""
@ -134,6 +142,9 @@ odbcinclude=""
unbundled="" unbundled=""
static="" static=""
shared="" shared=""
omitMinimal="Crypto NetSSL_OpenSSL Zip Data Data/SQLite Data/ODBC Data/MySQL MongoDB PDF CppParser PageCompiler"
omitTypical="Data/ODBC Data/MySQL MongoDB PDF CppParser"
omit=$omitTypical
# parse arguments # parse arguments
while [ $# -ge 1 ]; do while [ $# -ge 1 ]; do
case "$1" in case "$1" in
@ -199,6 +210,15 @@ while [ $# -ge 1 ]; do
unbundled=1 unbundled=1
;; ;;
--minimal)
omit=$omitMinimal ;;
--typical)
omit=$omitTypical ;;
--everything)
omit="" ;;
--static) --static)
static=1 ;; static=1 ;;

View File

@ -241,7 +241,7 @@ install: libexecs
mkdir -p $(INSTALLDIR)/include/Poco mkdir -p $(INSTALLDIR)/include/Poco
mkdir -p $(INSTALLDIR)/lib mkdir -p $(INSTALLDIR)/lib
mkdir -p $(INSTALLDIR)/bin mkdir -p $(INSTALLDIR)/bin
for comp in $(COMPONENTS) ; do \ for comp in $(filter-out $(foreach f,$(OMIT),$f%),$(COMPONENTS)) ; do \
if [ -d "$(POCO_BASE)/$$comp/include" ] ; then \ if [ -d "$(POCO_BASE)/$$comp/include" ] ; then \
cp -Rf $(POCO_BASE)/$$comp/include/* $(INSTALLDIR)/include/ ; \ cp -Rf $(POCO_BASE)/$$comp/include/* $(INSTALLDIR)/include/ ; \
fi ; \ fi ; \