mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-06 13:41:31 +01:00
Merge pull request #1057 from Kampbell/MkdocMkrelease
mkdoc & mkrel for Cygwin
This commit is contained in:
commit
a1d07c85de
5
.gitignore
vendored
5
.gitignore
vendored
@ -103,6 +103,7 @@ lib/*
|
|||||||
lib64/*
|
lib64/*
|
||||||
pocomsg.h
|
pocomsg.h
|
||||||
*/testsuite/bin/*
|
*/testsuite/bin/*
|
||||||
|
Util/testsuite/TestConfiguration/
|
||||||
|
|
||||||
# Eclipse generated files #
|
# Eclipse generated files #
|
||||||
######################
|
######################
|
||||||
@ -117,10 +118,12 @@ cmake-build/
|
|||||||
CodeGeneration
|
CodeGeneration
|
||||||
RemotingNG
|
RemotingNG
|
||||||
XSD
|
XSD
|
||||||
|
stage/
|
||||||
|
releases/
|
||||||
|
|
||||||
|
|
||||||
# openssl binaries #
|
# openssl binaries #
|
||||||
####################
|
####################
|
||||||
|
|
||||||
!openssl/win32/bin/debug/*.dll
|
!openssl/win32/bin/debug/*.dll
|
||||||
!openssl/win32/bin/debug/*.lib
|
!openssl/win32/bin/debug/*.lib
|
||||||
!openssl/win32/bin/release/*.dll
|
!openssl/win32/bin/release/*.dll
|
||||||
|
11
.travis.yml
11
.travis.yml
@ -20,7 +20,10 @@ services:
|
|||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
slack: pocoproject:ItIUZvs8aJGyPdaKxIKMnS1t
|
slack:
|
||||||
|
rooms:
|
||||||
|
- pocoproject:ItIUZvs8aJGyPdaKxIKMnS1t
|
||||||
|
- kampbell:v4ARuptk0ETzwUsKDdV6Gspb#travis
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global: TEST_NAME=""
|
global: TEST_NAME=""
|
||||||
@ -99,6 +102,12 @@ matrix:
|
|||||||
# - sudo -E build/script/runtests.sh
|
# - sudo -E build/script/runtests.sh
|
||||||
|
|
||||||
# QA jobs for code analytics and metrics
|
# QA jobs for code analytics and metrics
|
||||||
|
# build documentation and release
|
||||||
|
- env: TEST_NAME="documentation & release"
|
||||||
|
compiler: gcc
|
||||||
|
script:
|
||||||
|
- . env.sh && mkdoc all && mkrel all
|
||||||
|
|
||||||
# static code analysis with cppcheck (we can add --enable=all later)
|
# static code analysis with cppcheck (we can add --enable=all later)
|
||||||
- env: TEST_NAME="cppcheck"
|
- env: TEST_NAME="cppcheck"
|
||||||
script: cppcheck --force --quiet --inline-suppr -j2 -iData/SQLite/src/sqlite3.c .
|
script: cppcheck --force --quiet --inline-suppr -j2 -iData/SQLite/src/sqlite3.c .
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
expat*.h,
|
expat*.h,
|
||||||
zconf.h,
|
zconf.h,
|
||||||
zlib.h,
|
zlib.h,
|
||||||
|
XMLStreamParser.h
|
||||||
</exclude>
|
</exclude>
|
||||||
</files>
|
</files>
|
||||||
<pages>
|
<pages>
|
||||||
@ -32,6 +33,7 @@
|
|||||||
<options>
|
<options>
|
||||||
${Includes},
|
${Includes},
|
||||||
-I/usr/local/mysql/include,
|
-I/usr/local/mysql/include,
|
||||||
|
-I/usr/include/mysql,
|
||||||
-D_DEBUG,
|
-D_DEBUG,
|
||||||
-E,
|
-E,
|
||||||
-C,
|
-C,
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
expat*.h,
|
expat*.h,
|
||||||
zconf.h,
|
zconf.h,
|
||||||
zlib.h,
|
zlib.h,
|
||||||
|
XMLStreamParser.h
|
||||||
${PocoBuild}/Util/include/Poco/Util/Units.h
|
${PocoBuild}/Util/include/Poco/Util/Units.h
|
||||||
</exclude>
|
</exclude>
|
||||||
</files>
|
</files>
|
||||||
@ -33,6 +34,7 @@
|
|||||||
<options>
|
<options>
|
||||||
${Includes},
|
${Includes},
|
||||||
-I/usr/local/mysql/include,
|
-I/usr/local/mysql/include,
|
||||||
|
-I/usr/include/mysql,
|
||||||
-D_DEBUG,
|
-D_DEBUG,
|
||||||
-E,
|
-E,
|
||||||
-C,
|
-C,
|
||||||
|
@ -20,7 +20,7 @@ CXX = g++
|
|||||||
LINK = $(CXX)
|
LINK = $(CXX)
|
||||||
LIB = ar -cr
|
LIB = ar -cr
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
SHLIB = $(CXX) -shared -o $@ -Wl,--out-implib=$(dir $@)$(subst cyg,lib,$(notdir $@)).a -Wl,--export-all-symbols -Wl,--enable-auto-import
|
SHLIB = $(CXX) -shared -o $@
|
||||||
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
||||||
STRIP =
|
STRIP =
|
||||||
DEP = $(POCO_BASE)/build/script/makedepend.gcc
|
DEP = $(POCO_BASE)/build/script/makedepend.gcc
|
||||||
@ -46,9 +46,12 @@ IMPLIBLINKEXT = .dll.a
|
|||||||
CFLAGS =
|
CFLAGS =
|
||||||
CFLAGS32 =
|
CFLAGS32 =
|
||||||
CFLAGS64 =
|
CFLAGS64 =
|
||||||
CXXFLAGS = -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -Wa,-mbig-obj
|
CXXFLAGS = -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING
|
||||||
CXXFLAGS32 =
|
CXXFLAGS32 = -Wa,-mbig-obj
|
||||||
CXXFLAGS64 =
|
CXXFLAGS64 = -Wa,-mbig-obj
|
||||||
|
SHLIBFLAGS = -Wl,--out-implib=$(dir $@)$(subst cyg,lib,$(notdir $@)).a -Wl,--export-all-symbols -Wl,--enable-auto-import
|
||||||
|
SHLIBFLAGS32 =
|
||||||
|
SHLIBFLAGS64 =
|
||||||
LINKFLAGS =
|
LINKFLAGS =
|
||||||
LINKFLAGS32 =
|
LINKFLAGS32 =
|
||||||
LINKFLAGS64 =
|
LINKFLAGS64 =
|
||||||
|
@ -60,6 +60,7 @@ if [ "$OSNAME" = "" ] ; then
|
|||||||
OSNAME=MinGW ;;
|
OSNAME=MinGW ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BINDIR="bin/$OSNAME/$OSARCH/"
|
BINDIR="bin/$OSNAME/$OSARCH/"
|
||||||
|
|
||||||
runs=0
|
runs=0
|
||||||
@ -82,12 +83,12 @@ do
|
|||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "****************************************"
|
echo "****************************************"
|
||||||
echo "*** $comp"
|
echo "*** $OSNAME $OSARCH $comp"
|
||||||
echo "****************************************"
|
echo "****************************************"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
runs=`expr $runs + 1`
|
runs=`expr $runs + 1`
|
||||||
sh -c "cd $POCO_BUILD/$comp/testsuite/$BINDIR && $TESTRUNNER $TESTRUNNERARGS"
|
sh -c "cd $POCO_BUILD/$comp/testsuite/$BINDIR && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH $TESTRUNNER $TESTRUNNERARGS"
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
failures=`expr $failures + 1`
|
failures=`expr $failures + 1`
|
||||||
failedTests="$failedTests $comp"
|
failedTests="$failedTests $comp"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# $Id: //poco/1.4/release/script/mkdoc#2 $
|
# $Id: //poco/1.4/release/script/mkdoc#2 $
|
||||||
#
|
#
|
||||||
@ -19,6 +19,18 @@ if [ "$POCO_BASE" = "" ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
osname=`uname -s | tr ' ' '_'`
|
||||||
|
osarch=`uname -m | tr ' ' '_'`
|
||||||
|
|
||||||
|
if [ ${osname:0:6} = "CYGWIN" ] ; then
|
||||||
|
osname="Cygwin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $osname = "Darwin" ] ; then
|
||||||
|
archpath=`dirname stage/tools/PocoDoc/bin/Darwin/*/PocoDoc`
|
||||||
|
osarch=`basename $archpath`
|
||||||
|
fi
|
||||||
|
|
||||||
spec=""
|
spec=""
|
||||||
docConfig=$POCO_BASE/PocoDoc/cfg/mkdoc-poco.xml
|
docConfig=$POCO_BASE/PocoDoc/cfg/mkdoc-poco.xml
|
||||||
while [ "$1" != "" ] ;
|
while [ "$1" != "" ] ;
|
||||||
@ -59,6 +71,14 @@ if [ "$version" = "" ] ; then
|
|||||||
fi
|
fi
|
||||||
release=$version$tag
|
release=$version$tag
|
||||||
|
|
||||||
|
if [ ! -f libversion ] ; then
|
||||||
|
echo "Error: No libversion file found."
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
if [ "$libversion" = "" ] ; then
|
||||||
|
read libversion <$POCO_BASE/libversion
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build release
|
# Build release
|
||||||
#
|
#
|
||||||
@ -74,16 +94,20 @@ cd $tools
|
|||||||
./configure --no-tests --no-samples
|
./configure --no-tests --no-samples
|
||||||
make -s -j8
|
make -s -j8
|
||||||
|
|
||||||
|
if [ $osname = "Cygwin" ] ; then
|
||||||
|
find $tools -type f -name "cyg*$libversion.dll" > $TMP/dlls
|
||||||
|
rebase -O -T $TMP/dlls
|
||||||
|
rm $TMP/dlls
|
||||||
|
fi
|
||||||
|
|
||||||
cd $POCO_BASE
|
cd $POCO_BASE
|
||||||
|
|
||||||
osname=`uname -s | tr ' ' '_'`
|
if [ $osname = "Cygwin" ] ; then
|
||||||
osarch=`uname -m | tr ' ' '_'`
|
# Poco dlls must be on PATH for Cygwin
|
||||||
|
export PATH=$tools/lib/$osname/$osarch:$PATH
|
||||||
if [ $osname = "Darwin" ] ; then
|
|
||||||
archpath=`dirname stage/tools/PocoDoc/bin/Darwin/*/PocoDoc`
|
|
||||||
osarch=`basename $archpath`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
export PATH=$tools/PocoDoc/bin/$osname/$osarch:$PATH
|
export PATH=$tools/PocoDoc/bin/$osname/$osarch:$PATH
|
||||||
echo PATH=$PATH
|
echo PATH=$PATH
|
||||||
|
|
||||||
|
@ -123,6 +123,7 @@ echo "PocoDoc.output=$docPath" >>$build/PocoDoc.ini
|
|||||||
echo "PocoDoc.version=$docVersion" >> $build/PocoDoc.ini
|
echo "PocoDoc.version=$docVersion" >> $build/PocoDoc.ini
|
||||||
echo "Includes=$includes" >> $build/PocoDoc.ini
|
echo "Includes=$includes" >> $build/PocoDoc.ini
|
||||||
|
|
||||||
|
echo "PocoDoc --config=$docConfig --config=$build/PocoDoc.ini"
|
||||||
PocoDoc --config=$docConfig --config=$build/PocoDoc.ini
|
PocoDoc --config=$docConfig --config=$build/PocoDoc.ini
|
||||||
|
|
||||||
cd $dist
|
cd $dist
|
||||||
|
@ -209,14 +209,63 @@ ifndef POCO_BASE
|
|||||||
$(warning WARNING: POCO_BASE is not defined. Assuming current directory.)
|
$(warning WARNING: POCO_BASE is not defined. Assuming current directory.)
|
||||||
export POCO_BASE=$(shell pwd)
|
export POCO_BASE=$(shell pwd)
|
||||||
endif
|
endif
|
||||||
|
#$(info POCO_BASE = $(POCO_BASE))
|
||||||
|
|
||||||
ifndef POCO_PREFIX
|
ifndef POCO_PREFIX
|
||||||
export POCO_PREFIX=/usr/local
|
export POCO_PREFIX=/usr/local
|
||||||
endif
|
endif
|
||||||
|
#$(info POCO_PREFIX=$(POCO_PREFIX))
|
||||||
|
|
||||||
ifndef POCO_BUILD
|
ifndef POCO_BUILD
|
||||||
export POCO_BUILD=$(POCO_BASE)
|
export POCO_BUILD=$(POCO_BASE)
|
||||||
endif
|
endif
|
||||||
|
#$(info POCO_BUILD = $(POCO_BUILD))
|
||||||
|
|
||||||
|
#
|
||||||
|
# Determine OS
|
||||||
|
#
|
||||||
|
POCO_HOST_OSNAME = $(shell uname)
|
||||||
|
ifeq ($(findstring CYGWIN,$(POCO_HOST_OSNAME)),CYGWIN)
|
||||||
|
POCO_HOST_OSNAME = Cygwin
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(findstring MINGW,$(POCO_HOST_OSNAME)),MINGW)
|
||||||
|
POCO_HOST_OSNAME = MinGW
|
||||||
|
endif
|
||||||
|
#$(info POCO_HOST_OSNAME= $(POCO_HOST_OSNAME))
|
||||||
|
|
||||||
|
POCO_HOST_OSARCH ?= $(subst /,-,$(shell uname -m | tr ' ' _))
|
||||||
|
#$(info POCO_HOST_OSARCH= $(POCO_HOST_OSARCH))
|
||||||
|
|
||||||
|
#
|
||||||
|
# If POCO_CONFIG is not set, use the OS name as configuration name
|
||||||
|
#
|
||||||
|
ifndef POCO_CONFIG
|
||||||
|
POCO_CONFIG = $(POCO_HOST_OSNAME)
|
||||||
|
endif
|
||||||
|
#$(info POCO_CONFIG = $(POCO_CONFIG))
|
||||||
|
|
||||||
|
#
|
||||||
|
# Include System Specific Settings
|
||||||
|
#
|
||||||
|
include $(POCO_BASE)/build/config/$(POCO_CONFIG)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Determine operating system
|
||||||
|
#
|
||||||
|
ifndef POCO_TARGET_OSNAME
|
||||||
|
OSNAME := $(POCO_HOST_OSNAME)
|
||||||
|
else
|
||||||
|
OSNAME := $(POCO_TARGET_OSNAME)
|
||||||
|
endif
|
||||||
|
#$(info OSNAME = $(OSNAME))
|
||||||
|
|
||||||
|
ifndef POCO_TARGET_OSARCH
|
||||||
|
OSARCH := $(POCO_HOST_OSARCH)
|
||||||
|
else
|
||||||
|
OSARCH := $(POCO_TARGET_OSARCH)
|
||||||
|
endif
|
||||||
|
#$(info OSARCH = $(OSARCH))
|
||||||
|
|
||||||
.PHONY: poco all libexecs cppunit tests samples cleans clean distclean install
|
.PHONY: poco all libexecs cppunit tests samples cleans clean distclean install
|
||||||
|
|
||||||
@ -249,8 +298,12 @@ install: libexecs
|
|||||||
find $(POCO_BUILD)/$$comp/bin -perm -700 -type f -exec cp -f {} $(INSTALLDIR)/bin \; ; \
|
find $(POCO_BUILD)/$$comp/bin -perm -700 -type f -exec cp -f {} $(INSTALLDIR)/bin \; ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
done
|
done
|
||||||
find $(POCO_BUILD)/lib -name "libPoco*" -type f -exec cp -f {} $(INSTALLDIR)/lib \;
|
ifeq ($(OSNAME), Cygwin)
|
||||||
find $(POCO_BUILD)/lib -name "libPoco*" -type l -exec cp -Rf {} $(INSTALLDIR)/lib \;
|
find $(POCO_BUILD)/lib/$(OSNAME)/$(OSARCH) -name "cygPoco*" -type f -exec cp -f {} $(INSTALLDIR)/bin \;
|
||||||
|
find $(POCO_BUILD)/lib/$(OSNAME)/$(OSARCH) -name "cygPoco*" -type l -exec cp -Rf {} $(INSTALLDIR)/bin \;
|
||||||
|
endif
|
||||||
|
find $(POCO_BUILD)/lib/$(OSNAME)/$(OSARCH) -name "libPoco*" -type f -exec cp -f {} $(INSTALLDIR)/lib \;
|
||||||
|
find $(POCO_BUILD)/lib/$(OSNAME)/$(OSARCH) -name "libPoco*" -type l -exec cp -Rf {} $(INSTALLDIR)/lib \;
|
||||||
|
|
||||||
ENDOFSCRIPT
|
ENDOFSCRIPT
|
||||||
|
|
||||||
@ -380,7 +433,7 @@ cat >${target}/build_vs100.cmd <<'ENDOFSCRIPT'
|
|||||||
@echo off
|
@echo off
|
||||||
if defined VS100COMNTOOLS (
|
if defined VS100COMNTOOLS (
|
||||||
call "%VS100COMNTOOLS%\vsvars32.bat")
|
call "%VS100COMNTOOLS%\vsvars32.bat")
|
||||||
buildwin 100 build shared both Win32 samples
|
buildwin 100 build shared both Win32 samples devenv
|
||||||
ENDOFSCRIPT
|
ENDOFSCRIPT
|
||||||
|
|
||||||
|
|
||||||
@ -391,7 +444,7 @@ cat >${target}/build_vs110.cmd <<'ENDOFSCRIPT'
|
|||||||
@echo off
|
@echo off
|
||||||
if defined VS110COMNTOOLS (
|
if defined VS110COMNTOOLS (
|
||||||
call "%VS110COMNTOOLS%\vsvars32.bat")
|
call "%VS110COMNTOOLS%\vsvars32.bat")
|
||||||
buildwin 110 build shared both Win32 samples
|
buildwin 110 build shared both Win32 samples devenv
|
||||||
ENDOFSCRIPT
|
ENDOFSCRIPT
|
||||||
|
|
||||||
|
|
||||||
@ -402,7 +455,17 @@ cat >${target}/build_vs120.cmd <<'ENDOFSCRIPT'
|
|||||||
@echo off
|
@echo off
|
||||||
if defined VS120COMNTOOLS (
|
if defined VS120COMNTOOLS (
|
||||||
call "%VS120COMNTOOLS%\vsvars32.bat")
|
call "%VS120COMNTOOLS%\vsvars32.bat")
|
||||||
buildwin 120 build shared both Win32 samples
|
buildwin 120 build shared both Win32 samples devenv
|
||||||
|
ENDOFSCRIPT
|
||||||
|
|
||||||
|
#
|
||||||
|
# Create Visual Studio 14 build script
|
||||||
|
#
|
||||||
|
cat >${target}/build_vs140.cmd <<'ENDOFSCRIPT'
|
||||||
|
@echo off
|
||||||
|
if defined VS140COMNTOOLS (
|
||||||
|
call "%VS140COMNTOOLS%\vsvars32.bat")
|
||||||
|
buildwin 140 build shared both Win32 samples devenv
|
||||||
ENDOFSCRIPT
|
ENDOFSCRIPT
|
||||||
|
|
||||||
|
|
||||||
@ -455,10 +518,11 @@ ENDOFSCRIPT
|
|||||||
# Fix line endings
|
# Fix line endings
|
||||||
#
|
#
|
||||||
if [ "$lineEndConv" != "" ] ; then
|
if [ "$lineEndConv" != "" ] ; then
|
||||||
$lineEndConv ${target}/build_vs71.cmd
|
|
||||||
$lineEndConv ${target}/build_vs80.cmd
|
|
||||||
$lineEndConv ${target}/build_vs90.cmd
|
$lineEndConv ${target}/build_vs90.cmd
|
||||||
$lineEndConv ${target}/build_vs100.cmd
|
$lineEndConv ${target}/build_vs100.cmd
|
||||||
|
$lineEndConv ${target}/build_vs110.cmd
|
||||||
|
$lineEndConv ${target}/build_vs120.cmd
|
||||||
|
$lineEndConv ${target}/build_vs140.cmd
|
||||||
$lineEndConv ${target}/build_CE_vs90.cmd
|
$lineEndConv ${target}/build_CE_vs90.cmd
|
||||||
$lineEndConv ${target}/build_vcexpress2008.cmd
|
$lineEndConv ${target}/build_vcexpress2008.cmd
|
||||||
$lineEndConv ${target}/build_vcexpress2010.cmd
|
$lineEndConv ${target}/build_vcexpress2010.cmd
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
Crypto
|
Crypto
|
||||||
NetSSL_OpenSSL
|
NetSSL_OpenSSL
|
||||||
|
NetSSL_Win
|
||||||
Data
|
Data
|
||||||
Data/SQLite
|
Data/SQLite
|
||||||
Data/ODBC
|
Data/ODBC
|
||||||
Data/MySQL
|
Data/MySQL
|
||||||
MongoDB
|
MongoDB
|
||||||
|
Redis
|
||||||
Zip
|
Zip
|
||||||
PageCompiler
|
PageCompiler
|
||||||
PageCompiler/File2Page
|
PageCompiler/File2Page
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
Crypto
|
Crypto
|
||||||
NetSSL_OpenSSL
|
NetSSL_OpenSSL
|
||||||
|
NetSSL_Win
|
||||||
Data
|
Data
|
||||||
Data/SQLite
|
Data/SQLite
|
||||||
Data/ODBC
|
Data/ODBC
|
||||||
Data/MySQL
|
Data/MySQL
|
||||||
MongoDB
|
MongoDB
|
||||||
|
Redis
|
||||||
Zip
|
Zip
|
||||||
PageCompiler
|
PageCompiler
|
||||||
PageCompiler/File2Page
|
PageCompiler/File2Page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user