mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
added action to build script cmd line
This commit is contained in:
parent
f326c3855e
commit
0178d9c14e
136
buildwin.cmd
136
buildwin.cmd
@ -25,22 +25,28 @@ rem VS version {71|80|90}
|
||||
if "%1"=="" goto usage
|
||||
set VS_VERSION=vs%1
|
||||
|
||||
rem Action [build|rebuild|clean]
|
||||
set ACTION=%2
|
||||
if not "%ACTION%"=="build" (
|
||||
if not "%ACTION%"=="rebuild" (
|
||||
if not "%ACTION%"=="clean" goto usage))
|
||||
|
||||
rem Link mode [static|shared|both]
|
||||
set LINK_MODE=%2
|
||||
set LINK_MODE=%3
|
||||
if not "%LINK_MODE%"=="static" (
|
||||
if not "%LINK_MODE%"=="shared" (
|
||||
if not "%LINK_MODE%"=="" (
|
||||
if not "%LINK_MODE%"=="both" goto usage)))
|
||||
|
||||
rem Configuration [release|debug|both]
|
||||
set CONFIGURATION=%3
|
||||
set CONFIGURATION=%4
|
||||
if not "%CONFIGURATION%"=="release" (
|
||||
if not "%CONFIGURATION%"=="debug" (
|
||||
if not "%CONFIGURATION%"=="" (
|
||||
if not "%CONFIGURATION%"=="both" goto usage)))
|
||||
|
||||
rem Samples [yes|no]
|
||||
set SAMPLES=%4
|
||||
set SAMPLES=%5
|
||||
if "%SAMPLES%"=="" (set SAMPLES=yes)
|
||||
|
||||
set RELEASE_SHARED=0
|
||||
@ -105,110 +111,110 @@ set RELEASE_STATIC=1
|
||||
set RELEASE_SHARED=1)))))
|
||||
|
||||
cd CppUnit
|
||||
if %DEBUG_SHARED%==1 (devenv /useenv /rebuild debug_shared CppUnit_%VS_VERSION%.sln)
|
||||
if %RELEASE_SHARED%==1 (devenv /useenv /rebuild release_shared CppUnit_%VS_VERSION%.sln)
|
||||
if %DEBUG_STATIC%==1 (devenv /useenv /rebuild debug_static CppUnit_%VS_VERSION%.sln)
|
||||
if %RELEASE_STATIC%==1 (devenv /useenv /rebuild release_static CppUnit_%VS_VERSION%.sln)
|
||||
if %DEBUG_SHARED%==1 (devenv /useenv /%ACTION% debug_shared CppUnit_%VS_VERSION%.sln)
|
||||
if %RELEASE_SHARED%==1 (devenv /useenv /%ACTION% release_shared CppUnit_%VS_VERSION%.sln)
|
||||
if %DEBUG_STATIC%==1 (devenv /useenv /%ACTION% debug_static CppUnit_%VS_VERSION%.sln)
|
||||
if %RELEASE_STATIC%==1 (devenv /useenv /%ACTION% release_static CppUnit_%VS_VERSION%.sln)
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Foundation
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared Foundation_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared Foundation_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static Foundation_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static Foundation_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared Foundation_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared Foundation_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static Foundation_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static Foundation_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd XML
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared XML_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared XML_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static XML_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static XML_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared XML_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared XML_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static XML_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static XML_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Util
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared Util_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared Util_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static Util_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static Util_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared Util_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared Util_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static Util_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static Util_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Net
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared Net_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared Net_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static Net_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static Net_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared Net_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared Net_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static Net_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static Net_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd NetSSL_OpenSSL
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static NetSSL_OpenSSL_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Data
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared Data_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared Data_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static Data_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static Data_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared Data_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared Data_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static Data_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static Data_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Data/SQLite
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared SQLite_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared SQLite_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static SQLite_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static SQLite_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared SQLite_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared SQLite_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static SQLite_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static SQLite_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Data/ODBC
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared ODBC_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared ODBC_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static ODBC_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static ODBC_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared ODBC_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared ODBC_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static ODBC_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static ODBC_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
if "%SAMPLES%"=="no" goto :EOF
|
||||
|
||||
cd Foundation/samples
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static samples_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static samples_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd XML/samples
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static samples_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static samples_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Util/samples
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static samples_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static samples_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Net/samples
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static samples_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static samples_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd NetSSL_OpenSSL/samples
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static samples_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static samples_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
cd Data/samples
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /rebuild debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /rebuild release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /rebuild debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /rebuild release_static samples_%VS_VERSION%.sln
|
||||
if %DEBUG_SHARED%==1 devenv /useenv /%ACTION% debug_shared samples_%VS_VERSION%.sln
|
||||
if %RELEASE_SHARED%==1 devenv /useenv /%ACTION% release_shared samples_%VS_VERSION%.sln
|
||||
if %DEBUG_STATIC%==1 devenv /useenv /%ACTION% debug_static samples_%VS_VERSION%.sln
|
||||
if %RELEASE_STATIC%==1 devenv /useenv /%ACTION% release_static samples_%VS_VERSION%.sln
|
||||
cd %POCOBASE%
|
||||
|
||||
goto :EOF
|
||||
@ -216,5 +222,5 @@ goto :EOF
|
||||
:usage
|
||||
echo Usage:
|
||||
echo ------
|
||||
echo buildwin VS_VERSION [LINKMODE] [CONFIGURATION] [SAMPLES]
|
||||
echo "buildwin {71|80|90} [static|shared|both] [release|debug|both] [yes|no]"
|
||||
echo buildwin VS_VERSION ACTION [LINKMODE] [CONFIGURATION] [SAMPLES]
|
||||
echo "buildwin {71|80|90} [build|rebuild|clean] [static|shared|both] [release|debug|both] [yes|no]"
|
Loading…
Reference in New Issue
Block a user