make build default action

This commit is contained in:
Aleksandar Fabijanic 2008-09-30 20:24:21 +00:00
parent 523d339296
commit 2045597f3f

View File

@ -8,8 +8,8 @@ rem command-line build script for MS Visual Studio
rem rem
rem Usage: rem Usage:
rem ------ rem ------
rem buildwin VS_VERSION LINKMODE CONFIGURATION SAMPLES rem buildwin VS_VERSION [ACTION] [LINKMODE] [CONFIGURATION] [SAMPLES]
rem buildwin {71|80|90} [static|shared|both] [release|debug|both] [yes|no] rem "buildwin {71|80|90} [build|rebuild|clean] [static|shared|both] [release|debug|both] [yes|no]"
rem rem
rem VS_VERSION is required argument. Default is build all. rem VS_VERSION is required argument. Default is build all.
@ -30,7 +30,10 @@ rem Action [build|rebuild|clean]
set ACTION=%2 set ACTION=%2
if not "%ACTION%"=="build" ( if not "%ACTION%"=="build" (
if not "%ACTION%"=="rebuild" ( if not "%ACTION%"=="rebuild" (
if not "%ACTION%"=="clean" goto usage)) if not "%ACTION%"=="" (
if not "%ACTION%"=="clean" goto usage)))
if "%ACTION%"=="" (set ACTION="build")
rem Link mode [static|shared|both] rem Link mode [static|shared|both]
set LINK_MODE=%3 set LINK_MODE=%3
@ -111,7 +114,9 @@ set DEBUG_SHARED=1
set RELEASE_STATIC=1 set RELEASE_STATIC=1
set RELEASE_SHARED=1))))) set RELEASE_SHARED=1)))))
echo Building: echo Building:
if %DEBUG_SHARED%==1 (echo debug_shared) if %DEBUG_SHARED%==1 (echo debug_shared)
if %RELEASE_SHARED%==1 (echo release_shared) if %RELEASE_SHARED%==1 (echo release_shared)
if %DEBUG_STATIC%==1 (echo debug_static) if %DEBUG_STATIC%==1 (echo debug_static)
@ -183,7 +188,7 @@ goto :EOF
:usage :usage
echo Usage: 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 endlocal