mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-02 09:49:48 +02:00
fixed mkrelease script to use buildwin
This commit is contained in:
parent
2a26ce18d0
commit
a55726017c
@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
#
|
#
|
||||||
# $Id: //poco/1.3/release/script/mkrelease#3 $
|
# $Id: //poco/1.3/release/script/mkrelease#7 $
|
||||||
#
|
#
|
||||||
# mkrelease
|
# mkrelease
|
||||||
#
|
#
|
||||||
@ -103,8 +103,7 @@ cp ${POCO_BASE}/build/script/makeldpath ${target}/build/script
|
|||||||
cp ${POCO_BASE}/build/script/shlibln ${target}/build/script
|
cp ${POCO_BASE}/build/script/shlibln ${target}/build/script
|
||||||
cp ${POCO_BASE}/build/script/projname ${target}/build/script
|
cp ${POCO_BASE}/build/script/projname ${target}/build/script
|
||||||
cp ${POCO_BASE}/build/vms/* ${target}/build/vms
|
cp ${POCO_BASE}/build/vms/* ${target}/build/vms
|
||||||
cp ${POCO_BASE}/dist/build_vs71.cmd ${target}
|
cp ${POCO_BASE}/dist/buildwin.cmd ${target}
|
||||||
cp ${POCO_BASE}/dist/build_vs80.cmd ${target}
|
|
||||||
cp ${POCO_BASE}/dist/configure ${target}
|
cp ${POCO_BASE}/dist/configure ${target}
|
||||||
cp ${POCO_BASE}/buildvms.com ${target}
|
cp ${POCO_BASE}/buildvms.com ${target}
|
||||||
cp ${POCO_BASE}/libversion ${target}
|
cp ${POCO_BASE}/libversion ${target}
|
||||||
@ -292,21 +291,29 @@ echo "" >>${target}/Makefile
|
|||||||
echo "clean:" >>${target}/Makefile
|
echo "clean:" >>${target}/Makefile
|
||||||
for comp in $comps ;
|
for comp in $comps ;
|
||||||
do
|
do
|
||||||
echo '\t$(MAKE) -C $(POCO_BASE)'/${comp} clean >>${target}/Makefile
|
cat >>${target}/Makefile <<ENDOFSCRIPT
|
||||||
|
\$(MAKE) -C \$(POCO_BASE)/${comp} clean
|
||||||
|
ENDOFSCRIPT
|
||||||
if [ -f ${POCO_BASE}/${comp}/testsuite/Makefile ] ; then
|
if [ -f ${POCO_BASE}/${comp}/testsuite/Makefile ] ; then
|
||||||
echo '\t$(MAKE) -C $(POCO_BASE)'/${comp}/testsuite clean >>${target}/Makefile
|
cat >>${target}/Makefile <<ENDOFSCRIPT
|
||||||
|
\$(MAKE) -C \$(POCO_BASE)/${comp}/testsuite clean
|
||||||
|
ENDOFSCRIPT
|
||||||
fi
|
fi
|
||||||
if [ -f ${POCO_BASE}/${comp}/samples/Makefile ] ; then
|
if [ -f ${POCO_BASE}/${comp}/samples/Makefile ] ; then
|
||||||
echo '\t$(MAKE) -C $(POCO_BASE)'/${comp}/samples clean >>${target}/Makefile
|
cat >>${target}/Makefile <<ENDOFSCRIPT
|
||||||
|
\$(MAKE) -C \$(POCO_BASE)/${comp}/samples clean
|
||||||
|
ENDOFSCRIPT
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "" >>${target}/Makefile
|
cat >>${target}/Makefile <<ENDOFSCRIPT
|
||||||
echo "distclean:" >>${target}/Makefile
|
|
||||||
echo '\trm -rf $(POCO_BUILD)/lib' >>${target}/Makefile
|
distclean:
|
||||||
echo '\tfind $(POCO_BUILD) -name obj -type d -print0 | xargs -0 rm -rf' >>${target}/Makefile
|
rm -rf \$(POCO_BUILD)/lib
|
||||||
echo '\tfind $(POCO_BUILD) -name .dep -type d -print0 | xargs -0 rm -rf' >>${target}/Makefile
|
find \$(POCO_BUILD) -name obj -type d -print0 | xargs -0 rm -rf
|
||||||
echo '\tfind $(POCO_BUILD) -name bin -type d -print0 | xargs -0 rm -rf' >>${target}/Makefile
|
find \$(POCO_BUILD) -name .dep -type d -print0 | xargs -0 rm -rf
|
||||||
|
find \$(POCO_BUILD) -name bin -type d -print0 | xargs -0 rm -rf
|
||||||
|
ENDOFSCRIPT
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -314,159 +321,27 @@ echo '\tfind $(POCO_BUILD) -name bin -type d -print0 | xargs -0 rm -rf' >>${targ
|
|||||||
#
|
#
|
||||||
cat >${target}/build_vs71.cmd <<'ENDOFSCRIPT'
|
cat >${target}/build_vs71.cmd <<'ENDOFSCRIPT'
|
||||||
@echo off
|
@echo off
|
||||||
|
buildwin 71 shared both yes
|
||||||
rem
|
|
||||||
rem build_vs71.cmd
|
|
||||||
rem
|
|
||||||
rem command-line build script for VS 7.1 [generated by mkrelease]
|
|
||||||
rem
|
|
||||||
|
|
||||||
rem Change OPENSSL_DIR to match your setup
|
|
||||||
set OPENSSL_DIR=c:\OpenSSL
|
|
||||||
set OPENSSL_INCLUDE=%OPENSSL_DIR%\include
|
|
||||||
set OPENSSL_LIB=%OPENSSL_DIR%\lib\VC
|
|
||||||
set INCLUDE=%INCLUDE%;%OPENSSL_INCLUDE%
|
|
||||||
set LIB=%LIB%;%OPENSSL_LIB%
|
|
||||||
|
|
||||||
set POCOBASE=%CD%
|
|
||||||
set PATH=%POCOBASE%\bin;%PATH%
|
|
||||||
|
|
||||||
cd CppUnit
|
|
||||||
devenv /useenv /rebuild debug_shared CppUnit_vs71.sln
|
|
||||||
devenv /useenv /rebuild release_shared CppUnit_vs71.sln
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
ENDOFSCRIPT
|
||||||
|
|
||||||
for comp in $comps ;
|
|
||||||
do
|
|
||||||
cat >>${target}/build_vs71.cmd <<ENDOFSCRIPT
|
|
||||||
|
|
||||||
cd ${comp}
|
|
||||||
devenv /useenv /rebuild debug_shared `basename ${comp}_vs71.sln`
|
|
||||||
devenv /useenv /rebuild release_shared `basename ${comp}_vs71.sln`
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
|
||||||
done
|
|
||||||
|
|
||||||
for comp in $comps ;
|
|
||||||
do
|
|
||||||
if [ -d "${POCO_BASE}/${comp}/samples" ] ; then
|
|
||||||
cat >>${target}/build_vs71.cmd <<ENDOFSCRIPT
|
|
||||||
|
|
||||||
cd ${comp}/samples
|
|
||||||
devenv /useenv /rebuild debug_shared samples_vs71.sln
|
|
||||||
devenv /useenv /rebuild release_shared samples_vs71.sln
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create Visual Studio 8 buils script
|
# Create Visual Studio 8 buils script
|
||||||
#
|
#
|
||||||
cat >${target}/build_vs80.cmd <<'ENDOFSCRIPT'
|
cat >${target}/build_vs80.cmd <<'ENDOFSCRIPT'
|
||||||
@echo off
|
@echo off
|
||||||
|
buildwin 80 shared both yes
|
||||||
rem
|
|
||||||
rem build_vs80.cmd
|
|
||||||
rem
|
|
||||||
rem command-line build script for VS 8 [generated by mkrelease]
|
|
||||||
rem
|
|
||||||
|
|
||||||
rem Change OPENSSL_DIR to match your setup
|
|
||||||
set OPENSSL_DIR=c:\OpenSSL
|
|
||||||
set OPENSSL_INCLUDE=%OPENSSL_DIR%\include
|
|
||||||
set OPENSSL_LIB=%OPENSSL_DIR%\lib\VC
|
|
||||||
set INCLUDE=%INCLUDE%;%OPENSSL_INCLUDE%
|
|
||||||
set LIB=%LIB%;%OPENSSL_LIB%
|
|
||||||
|
|
||||||
set POCOBASE=%CD%
|
|
||||||
set PATH=%POCOBASE%\bin;%PATH%
|
|
||||||
|
|
||||||
cd CppUnit
|
|
||||||
devenv /useenv /rebuild debug_shared CppUnit_vs80.sln
|
|
||||||
devenv /useenv /rebuild release_shared CppUnit_vs80.sln
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
ENDOFSCRIPT
|
||||||
|
|
||||||
for comp in $comps ;
|
|
||||||
do
|
|
||||||
cat >>${target}/build_vs80.cmd <<ENDOFSCRIPT
|
|
||||||
|
|
||||||
cd ${comp}
|
|
||||||
devenv /useenv /rebuild debug_shared `basename ${comp}_vs80.sln`
|
|
||||||
devenv /useenv /rebuild release_shared `basename ${comp}_vs80.sln`
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
|
||||||
done
|
|
||||||
|
|
||||||
for comp in $comps ;
|
|
||||||
do
|
|
||||||
if [ -d "${POCO_BASE}/${comp}/samples" ] ; then
|
|
||||||
cat >>${target}/build_vs80.cmd <<ENDOFSCRIPT
|
|
||||||
|
|
||||||
cd ${comp}/samples
|
|
||||||
devenv /useenv /rebuild debug_shared samples_vs80.sln
|
|
||||||
devenv /useenv /rebuild release_shared samples_vs80.sln
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create Visual Studio 9 buils script
|
# Create Visual Studio 9 buils script
|
||||||
#
|
#
|
||||||
cat >${target}/build_vs90.cmd <<'ENDOFSCRIPT'
|
cat >${target}/build_vs90.cmd <<'ENDOFSCRIPT'
|
||||||
@echo off
|
@echo off
|
||||||
|
buildwin 90 shared both yes
|
||||||
rem
|
|
||||||
rem build_vs90.cmd
|
|
||||||
rem
|
|
||||||
rem command-line build script for VS 9 [generated by mkrelease]
|
|
||||||
rem
|
|
||||||
|
|
||||||
rem Change OPENSSL_DIR to match your setup
|
|
||||||
set OPENSSL_DIR=c:\OpenSSL
|
|
||||||
set OPENSSL_INCLUDE=%OPENSSL_DIR%\include
|
|
||||||
set OPENSSL_LIB=%OPENSSL_DIR%\lib\VC
|
|
||||||
set INCLUDE=%INCLUDE%;%OPENSSL_INCLUDE%
|
|
||||||
set LIB=%LIB%;%OPENSSL_LIB%
|
|
||||||
|
|
||||||
set POCOBASE=%CD%
|
|
||||||
set PATH=%POCOBASE%\bin;%PATH%
|
|
||||||
|
|
||||||
cd CppUnit
|
|
||||||
devenv /useenv /rebuild debug_shared CppUnit_vs90.sln
|
|
||||||
devenv /useenv /rebuild release_shared CppUnit_vs90.sln
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
ENDOFSCRIPT
|
||||||
|
|
||||||
for comp in $comps ;
|
|
||||||
do
|
|
||||||
cat >>${target}/build_vs90.cmd <<ENDOFSCRIPT
|
|
||||||
|
|
||||||
cd ${comp}
|
|
||||||
devenv /useenv /rebuild debug_shared `basename ${comp}_vs90.sln`
|
|
||||||
devenv /useenv /rebuild release_shared `basename ${comp}_vs90.sln`
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
|
||||||
done
|
|
||||||
|
|
||||||
for comp in $comps ;
|
|
||||||
do
|
|
||||||
if [ -d "${POCO_BASE}/${comp}/samples" ] ; then
|
|
||||||
cat >>${target}/build_vs90.cmd <<ENDOFSCRIPT
|
|
||||||
|
|
||||||
cd ${comp}/samples
|
|
||||||
devenv /useenv /rebuild debug_shared samples_vs90.sln
|
|
||||||
devenv /useenv /rebuild release_shared samples_vs90.sln
|
|
||||||
cd %POCOBASE%
|
|
||||||
ENDOFSCRIPT
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Fix line endings
|
# Fix line endings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user