source: nscp/release-build.bat @ b21f30b

0.4.00.4.10.4.2
Last change on this file since b21f30b was d5356c1, checked in by Michael Medin <michael@…>, 4 years ago

tried boost::asio in the NRPECLient and split settings to a new file (reduces build time)

  • Property mode set to 100644
File size: 3.1 KB
Line 
1@echo off
2@call env.bat
3
4SET _ERROR=
5SET w32=0
6SET x64=0
7SET IA64=0
8SET hdr=0
9SET src=0
10SET clean=0
11SET upload=0
12echo Starting build > build.log
13
14if "%1" == "" goto args_build_all
15
16:args_loop
17if "%1" == "" goto args_done
18if "%1" == "w32" set w32=1
19if "%1" == "x64" set x64=1
20if "%1" == "ia64" set ia64=1
21if "%1" == "hdr" set hdr=1
22if "%1" == "src" set hdr=1
23if "%1" == "clean" set clean=1
24if "%1" == "upload" set upload=1
25shift
26goto args_loop
27
28:args_build_all
29echo ### BUILDING ALL ### : %1 --
30SET w32=1
31SET x64=1
32SET IA64=1
33SET hdr=1
34SET src=1
35
36:args_done
37
38
39if not "%clean%" == "1" goto no_build_clean
40@del/S/Q stage
41@del/S/Q bjam-tmp-build
42@del/S/Q bin
43:no_build_clean
44
45if not "%hdr%" == "1" goto no_build_hdr
46echo %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers >> build.log
47%jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers
48if %ERRORLEVEL% == -1 goto :error
49echo :: Result: %ERRORLEVEL% >> build.log
50:no_build_hdr
51
52if not "%src%" == "1" goto no_build_src
53echo %jam% --toolset=msvc source-archive >> build.log
54%jam% --toolset=msvc source-archive
55if %ERRORLEVEL% == -1 goto :error
56echo :: Result: %ERRORLEVEL% >> build.log
57:no_build_src
58
59if not "%w32%" == "1" goto no_build_x86
60call :build_one address-model=32 variant=release debug-symbols=on debug-store=database --build-type=complete "--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%"
61IF DEFINED _ERROR goto :error
62:no_build_x86
63
64if not "%x64%" == "1" goto no_build_x64
65call :build_one address-model=64 variant=release debug-symbols=on debug-store=database --build-type=complete "--library-path=%TARGET_LIB_x64_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x64%"
66IF DEFINED _ERROR goto :error
67:no_build_x64
68rem call build.bat runtime-link=static variant=release architecture=ia64 --library-path=%TARGET_LIB_IA64_DIR%
69
70if not "%ia64%" == "1" goto no_build_ia64
71call :build_one address-model=64 architecture=ia64 variant=release debug-symbols=on debug-store=database --build-type=complete "--library-path=%TARGET_LIB_IA64_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_IA64%"
72IF DEFINED _ERROR goto :error
73:no_build_ia64
74
75
76if not "%upload%" == "1" goto no_build_upload
77pscp.exe "stage\archive\*.zip" "stage\installer\*.msi" nscp@nsclient.org:/var/nsclient/www/files/nightly/
78:no_build_upload
79
80echo *************
81echo *           *
82echo *    O K    *
83echo *           *
84echo *************
85goto :eof
86
87:build_one
88echo build.bat runtime-link=static %* >> build.log
89call build.bat runtime-link=static %*
90if %ERRORLEVEL% == -1 goto :error_one
91echo Result: %ERRORLEVEL% >> build.log
92goto :eof
93
94:error_one
95echo *********************
96echo *                   *
97echo *    E R R O R      *
98echo *                   *
99echo *********************
100set _ERROR=1
101exit /b -1
102goto :eof
103
104:error
105echo :: Error: %ERRORLEVEL% >> build.log
106echo *********************
107echo *                   *
108echo *    E R R O R      *
109echo *                   *
110echo *********************
111type build.log
Note: See TracBrowser for help on using the repository browser.