Changeset 55e44d4 in nscp for release-build.bat


Ignore:
Timestamp:
10/04/09 23:40:03 (4 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
2e8b33f
Parents:
1fc246c
Message:

Added new command: assert which causes program to assert (and "crash") which I will use to test the debug builds.
Also reworked the build scripts to work better and such

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-build.bat

    re7dbac9 r55e44d4  
    11@echo off 
    2  
    32@call env.bat 
    43 
    5 SET version=crypto_hdr 
    6 SET cmdline=%jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers 
     4SET _ERROR= 
     5echo Starting build > build.log 
     6 
     7echo %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers >> build.log 
    78%jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers 
    89if %ERRORLEVEL% == -1 goto :error 
     10echo :: Result: %ERRORLEVEL% >> build.log 
    911 
    10 REM build x86 binary 
    11 SET version=x86 
    12 SET cmdline=build.bat runtime-link=static variant=release address-model=32 --library-path="%TARGET_LIB_x86_DIR%" --with-psdk-lib=%"PLATTFORM_SDK_LIB_x86%" --with-psdk="%PLATTFORM_SDK_INCLUDE%" --wix="%WIX_PATH%" 
    13 call build.bat runtime-link=static variant=release address-model=32 --library-path="%TARGET_LIB_x86_DIR%" --with-psdk-lib="%PLATTFORM_SDK_LIB_x86%" --with-psdk="%PLATTFORM_SDK_INCLUDE%" --wix="%WIX_PATH%" 
     12echo %jam% --toolset=msvc source-archive >> build.log 
     13%jam% --toolset=msvc source-archive 
    1414if %ERRORLEVEL% == -1 goto :error 
     15echo :: Result: %ERRORLEVEL% >> build.log 
    1516 
    16 REM build x64 (Amd64, Emt64) binary 
    17  SET version=x64 
    18  SET cmdline=build.bat runtime-link=static variant=release address-model=64 --library-path="%TARGET_LIB_x64_DIR%" --with-psdk-lib="%PLATTFORM_SDK_LIB_x64%" --with-psdk="%PLATTFORM_SDK_INCLUDE%" --wix="%WIX_PATH%" 
    19  call build.bat runtime-link=static variant=release address-model=64 --library-path="%TARGET_LIB_x64_DIR%" --with-psdk-lib="%PLATTFORM_SDK_LIB_x64%" --with-psdk="%PLATTFORM_SDK_INCLUDE%" --wix="%WIX_PATH%" 
    20  if %ERRORLEVEL% == -1 goto :error 
    21  
    22  
    23 REM TODO: Add IA64 version 
    24 rem version=IA64 
     17call :build_one variant=debug address-model=32 "--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%" 
     18IF DEFINED _ERROR goto :error 
     19call :build_one variant=release address-model=32 "--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%" 
     20IF DEFINED _ERROR goto :error 
     21call :build_one variant=debug address-model=64 "--library-path=%TARGET_LIB_x64_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x64%" 
     22IF DEFINED _ERROR goto :error 
     23call :build_one variant=release address-model=64 "--library-path=%TARGET_LIB_x64_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x64%" 
     24IF DEFINED _ERROR goto :error 
    2525rem call build.bat runtime-link=static variant=release architecture=ia64 --library-path=%TARGET_LIB_IA64_DIR% 
    26 rem if %ERRORLEVEL% == -1 goto :error 
    2726 
    2827echo ************* 
     
    3130echo *           * 
    3231echo ************* 
    33  
    3432goto :eof 
    3533 
    36 :error 
     34:build_one 
     35echo build.bat runtime-link=static %* >> build.log 
     36call build.bat runtime-link=static %* 
     37if %ERRORLEVEL% == -1 goto :error_one 
     38echo Result: %ERRORLEVEL% >> build.log 
     39goto :eof 
     40 
     41:error_one 
    3742echo ********************* 
    3843echo *                   * 
    3944echo *    E R R O R      * 
    4045echo *                   * 
    41 echo * When building %version% * 
     46echo ********************* 
     47set _ERROR=1 
     48exit /b -1 
     49goto :eof 
     50 
     51:error 
     52echo :: Error: %ERRORLEVEL% >> build.log 
     53echo ********************* 
     54echo *                   * 
     55echo *    E R R O R      * 
    4256echo *                   * 
    4357echo ********************* 
    44 echo %cmdline% 
     58type build.log 
Note: See TracChangeset for help on using the changeset viewer.