mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-14 23:07:56 +02:00
windows cmd line build up to 4-levels deep
some VS90 solution and project files fixes
This commit is contained in:
@@ -3,6 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 10.00
|
|||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ExtJS", "ExtJS_VS90.vcproj", "{19FA461F-7419-4653-8A6B-B93002F7DB14}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ExtJS", "ExtJS_VS90.vcproj", "{19FA461F-7419-4653-8A6B-B93002F7DB14}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestSuite", "testsuite\TestSuite_VS90.vcproj", "{AB43A995-70FA-4297-BD01-6C88938AA86D}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestSuite", "testsuite\TestSuite_VS90.vcproj", "{AB43A995-70FA-4297-BD01-6C88938AA86D}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{19FA461F-7419-4653-8A6B-B93002F7DB14} = {19FA461F-7419-4653-8A6B-B93002F7DB14}
|
||||||
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
@@ -71,7 +71,7 @@
|
|||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
AdditionalLibraryDirectories="..\lib"
|
AdditionalLibraryDirectories="..\lib"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
ProgramDatabaseFile="..\bin\Poco(ProjectName)d.pdb"
|
ProgramDatabaseFile="..\bin\Poco$(ProjectName)d.pdb"
|
||||||
SubSystem="1"
|
SubSystem="1"
|
||||||
RandomizedBaseAddress="1"
|
RandomizedBaseAddress="1"
|
||||||
DataExecutionPrevention="0"
|
DataExecutionPrevention="0"
|
||||||
|
67
buildwin.cmd
67
buildwin.cmd
@@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
rem
|
rem
|
||||||
rem buildwin.cmd
|
rem buildwin.cmd
|
||||||
@@ -116,25 +117,20 @@ if %RELEASE_SHARED%==1 (echo release_shared)
|
|||||||
if %DEBUG_STATIC%==1 (echo debug_static)
|
if %DEBUG_STATIC%==1 (echo debug_static)
|
||||||
if %RELEASE_STATIC%==1 (echo release_static)
|
if %RELEASE_STATIC%==1 (echo release_static)
|
||||||
|
|
||||||
rem root level components
|
rem build for up to 4 levels deep
|
||||||
for /f %%G in ('findstr /R /V "./." components') do (
|
for /f %%G in ('findstr /R "." components') do (
|
||||||
if exist %%G\%%G_%VS_VERSION%.sln (
|
|
||||||
cd %%G
|
|
||||||
echo.
|
|
||||||
echo ========== Building %%G ==========
|
|
||||||
if %DEBUG_SHARED%==1 (devenv /useenv /%ACTION% debug_shared %%G_%VS_VERSION%.sln)
|
|
||||||
if %RELEASE_SHARED%==1 (devenv /useenv /%ACTION% release_shared %%G_%VS_VERSION%.sln)
|
|
||||||
if %DEBUG_STATIC%==1 (devenv /useenv /%ACTION% debug_static %%G_%VS_VERSION%.sln)
|
|
||||||
if %RELEASE_STATIC%==1 (devenv /useenv /%ACTION% release_static %%G_%VS_VERSION%.sln)
|
|
||||||
cd %POCOBASE%
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
rem lower level components
|
|
||||||
for /f %%G in ('findstr /R "./." components') do (
|
|
||||||
if exist %%G (
|
if exist %%G (
|
||||||
cd %%G
|
cd %%G
|
||||||
for /f "tokens=1,2 delims=/" %%Q in ("%%G") do (
|
for /f "tokens=1,2,3,4 delims=/" %%Q in ("%%G") do (
|
||||||
|
if exist %%Q_%VS_VERSION%.sln (
|
||||||
|
echo.
|
||||||
|
echo ========== Building %%G ==========
|
||||||
|
if %DEBUG_SHARED%==1 (devenv /useenv /%ACTION% debug_shared %%Q_%VS_VERSION%.sln)
|
||||||
|
if %RELEASE_SHARED%==1 (devenv /useenv /%ACTION% release_shared %%Q_%VS_VERSION%.sln)
|
||||||
|
if %DEBUG_STATIC%==1 (devenv /useenv /%ACTION% debug_static %%Q_%VS_VERSION%.sln)
|
||||||
|
if %RELEASE_STATIC%==1 (devenv /useenv /%ACTION% release_static %%Q_%VS_VERSION%.sln)
|
||||||
|
)
|
||||||
|
|
||||||
if exist %%R_%VS_VERSION%.sln (
|
if exist %%R_%VS_VERSION%.sln (
|
||||||
echo.
|
echo.
|
||||||
echo ========== Building %%G ==========
|
echo ========== Building %%G ==========
|
||||||
@@ -143,30 +139,33 @@ for /f %%G in ('findstr /R "./." components') do (
|
|||||||
if %DEBUG_STATIC%==1 (devenv /useenv /%ACTION% debug_static %%R_%VS_VERSION%.sln)
|
if %DEBUG_STATIC%==1 (devenv /useenv /%ACTION% debug_static %%R_%VS_VERSION%.sln)
|
||||||
if %RELEASE_STATIC%==1 (devenv /useenv /%ACTION% release_static %%R_%VS_VERSION%.sln)
|
if %RELEASE_STATIC%==1 (devenv /useenv /%ACTION% release_static %%R_%VS_VERSION%.sln)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist %%S_%VS_VERSION%.sln (
|
||||||
|
echo.
|
||||||
|
echo ========== Building %%G ==========
|
||||||
|
if %DEBUG_SHARED%==1 (devenv /useenv /%ACTION% debug_shared %%S_%VS_VERSION%.sln)
|
||||||
|
if %RELEASE_SHARED%==1 (devenv /useenv /%ACTION% release_shared %%S_%VS_VERSION%.sln)
|
||||||
|
if %DEBUG_STATIC%==1 (devenv /useenv /%ACTION% debug_static %%S_%VS_VERSION%.sln)
|
||||||
|
if %RELEASE_STATIC%==1 (devenv /useenv /%ACTION% release_static %%S_%VS_VERSION%.sln)
|
||||||
|
)
|
||||||
|
|
||||||
|
if exist %%T_%VS_VERSION%.sln (
|
||||||
|
echo.
|
||||||
|
echo ========== Building %%G ==========
|
||||||
|
if %DEBUG_SHARED%==1 (devenv /useenv /%ACTION% debug_shared %%T_%VS_VERSION%.sln)
|
||||||
|
if %RELEASE_SHARED%==1 (devenv /useenv /%ACTION% release_shared %%T_%VS_VERSION%.sln)
|
||||||
|
if %DEBUG_STATIC%==1 (devenv /useenv /%ACTION% debug_static %%T_%VS_VERSION%.sln)
|
||||||
|
if %RELEASE_STATIC%==1 (devenv /useenv /%ACTION% release_static %%T_%VS_VERSION%.sln)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
cd %POCOBASE%
|
cd %POCOBASE%
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if "%SAMPLES%"=="no" goto :EOF
|
if "%SAMPLES%"=="no" goto :EOF
|
||||||
|
|
||||||
rem root level component samples
|
rem root level component samples
|
||||||
for /f %%G in ('findstr /R /V "./." components') do (
|
for /f %%G in ('findstr /R "." components') do (
|
||||||
if exist %%G\samples\samples_%VS_VERSION%.sln (
|
|
||||||
cd %%G\samples
|
|
||||||
echo.
|
|
||||||
echo ========== Building %%G/samples ==========
|
|
||||||
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%
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
rem lower level component samples
|
|
||||||
for /f %%G in ('findstr /R "./." components') do (
|
|
||||||
if exist %%G\samples\samples_%VS_VERSION%.sln (
|
if exist %%G\samples\samples_%VS_VERSION%.sln (
|
||||||
cd %%G\samples
|
cd %%G\samples
|
||||||
echo.
|
echo.
|
||||||
@@ -186,3 +185,5 @@ echo Usage:
|
|||||||
echo ------
|
echo ------
|
||||||
echo buildwin VS_VERSION ACTION [LINKMODE] [CONFIGURATION] [SAMPLES]
|
echo buildwin VS_VERSION ACTION [LINKMODE] [CONFIGURATION] [SAMPLES]
|
||||||
echo "buildwin {71|80|90} [build|rebuild|clean] [static|shared|both] [release|debug|both] [yes|no]"
|
echo "buildwin {71|80|90} [build|rebuild|clean] [static|shared|both] [release|debug|both] [yes|no]"
|
||||||
|
|
||||||
|
endlocal
|
Reference in New Issue
Block a user