Changeset 2e8b33f in nscp
- Timestamp:
- 10/07/09 06:57:53 (4 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- dbc22d8
- Parents:
- 55e44d4
- Files:
-
- 1 added
- 13 edited
-
AutoBuild.h (modified) (1 diff)
-
Jamroot (modified) (1 diff)
-
bjam/psdk.jam (modified) (3 diffs)
-
bjam/zip.jam (modified) (1 diff)
-
build.bat (modified) (2 diffs)
-
env.bat (modified) (1 diff)
-
helpers/build-archive/Jamfile (modified) (1 diff)
-
helpers/build-archive/test.foo (added)
-
helpers/installer_dll/Jamfile (modified) (2 diffs)
-
helpers/installer_dll_fw/Jamfile (modified) (2 diffs)
-
helpers/installer_dll_fw/precomp.h (modified) (1 diff)
-
release-build.bat (modified) (1 diff)
-
x64-build.bat (modified) (2 diffs)
-
x86-build.bat (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
AutoBuild.h
r55e44d4 r2e8b33f 3 3 // change the FALSE to TRUE for autoincrement of build number 4 4 #define INCREMENT_VERSION TRUE 5 #define FILEVER 0,3,7,4 226 #define PRODUCTVER 0,3,7,4 227 #define STRFILEVER _T("0.3.7.4 22")8 #define STRPRODUCTVER _T("0.3.7.4 22")9 #define STRPRODUCTDATE _T("2009-10-0 4")5 #define FILEVER 0,3,7,452 6 #define PRODUCTVER 0,3,7,452 7 #define STRFILEVER _T("0.3.7.452") 8 #define STRPRODUCTVER _T("0.3.7.452") 9 #define STRPRODUCTDATE _T("2009-10-07") 10 10 #endif // AUTOBUILD_H -
Jamroot
r55e44d4 r2e8b33f 255 255 explicit installer_dll ; 256 256 257 all-helpers = installer_dll ; 258 alias all-helpers-targets : $(all-helpers) ; 257 alias all-helpers-targets : installer_dll ; 259 258 explicit all-helpers-targets ; 260 259 -
bjam/psdk.jam
r358cda1 r2e8b33f 115 115 : # source 116 116 : # requirements 117 <name>Msi118 117 <conditional>@requirements 118 : # default-build 119 119 : # usage-requirements 120 120 <conditional>@usage-requirements … … 124 124 : # source 125 125 : # requirements 126 <name>bufferoverflowu127 126 <conditional>@requirements 127 : # default-build 128 128 : # usage-requirements 129 129 <conditional>@usage-requirements … … 133 133 : # source 134 134 : # requirements 135 <conditional>@requirements 136 : # default-build 135 137 : # usage-requirements 136 138 <conditional>@usage-requirements -
bjam/zip.jam
r55e44d4 r2e8b33f 9 9 10 10 type.register ZIP : zip ; 11 generators.register-composing bjam/zip.make-zip : : ZIP ; 11 type.register FOO : foo ; 12 13 generators.register-composing bjam/zip.make-zip : FOO : ZIP ; 12 14 flags bjam/zip.make-zip SOURCE_FOLDER <source-folder> ; 13 15 flags bjam/zip.make-zip EXCLUDES <exclude> : -x ; -
build.bat
r55e44d4 r2e8b33f 2 2 @call env.bat 3 3 4 echo :: %jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE% warnings=off --with-psdk="%PLATTFORM_SDK_INCLUDE%" %* build-binaries >> build.log5 %jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE% warnings=off --with-psdk="%PLATTFORM_SDK_INCLUDE%" %* build-binaries4 echo :: %jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE% runtime-link=static warnings=off --with-psdk="%PLATTFORM_SDK_INCLUDE%" %* build-binaries >> build.log 5 %jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE% runtime-link=static warnings=off --with-psdk="%PLATTFORM_SDK_INCLUDE%" %* build-binaries 6 6 if %ERRORLEVEL% == 1 goto :error 7 7 echo :: Result: %ERRORLEVEL% >> build.log … … 12 12 echo :: Result: %ERRORLEVEL% >> build.log 13 13 14 echo :: %jam% --toolset=wix "--wix=%WIX_PATH%" % *build-installer >> build.log15 %jam% --toolset=wix "--wix=%WIX_PATH%" % *build-installer14 echo :: %jam% --toolset=wix "--wix=%WIX_PATH%" %1=%2 %3=%4 build-installer >> build.log 15 %jam% --toolset=wix "--wix=%WIX_PATH%" %1=%2 %3=%4 build-installer 16 16 if %ERRORLEVEL% == 1 goto :error 17 17 echo :: Result: %ERRORLEVEL% >> build.log -
env.bat
r308b6f5 r2e8b33f 13 13 rem SET BOOST_BUILD_PATH=D:\tools\boost-build 14 14 SET BOOST_BUILD_PATH=C:\src\lib-src\boost_1_39_0\tools\build\v2 15 rem SET BOOST_BUILD_PATH=C:\src\tools\beta\boost-build 15 16 rem BOOST_BUILD_PATH=D:\source\boost-build 16 17 rem # -
helpers/build-archive/Jamfile
r55e44d4 r2e8b33f 27 27 use-project master : ../.. ; 28 28 29 zip $(target) : /master//NSClient++: <tag>@tag <conditional>@generate-binary-location ;29 zip $(target) : test.foo : <tag>@tag <conditional>@generate-binary-location ; 30 30 31 31 explicit $(target) ; -
helpers/installer_dll/Jamfile
r358cda1 r2e8b33f 1 1 local target = installer_dll ; 2 2 local source = main_dll ; 3 4 #project5 # : requirements6 # <find-static-library>Msi7 # <library-path>"D:/Program/Microsoft Platform SDK for Windows Server 2003 R2/Lib"8 # ;9 10 11 12 #local lib = [ MATCH "^--psdk-lib=(.*)" : [ modules.peek : ARGV ] ] ;13 #echo "PSDK lib path: $(lib) (change with --psdk-lib=<other path>" ;14 15 #lib Msi : : <name>Msi <search>$(lib) ;16 #lib bufferoverflowu : : <name>bufferoverflowu <search>$(lib) ;17 #lib secchk : : <name>secchk <search>$(lib) ;18 #lib secchk : : <name>secchk ;19 3 20 4 lib $(target) … … 22 6 $(source).cpp 23 7 ../../include/ServiceCmd.cpp 8 /psdk//Msi 9 /psdk//bufferoverflowu 24 10 : # requirements 25 <source>/psdk//Msi26 <source>/psdk//bufferoverflowu27 11 <def-file>$(source).def 28 12 <user-interface>gui 29 13 <runtime-link>static 30 14 <threading>multi 31 32 15 : # default build 33 16 : # usage requirements -
helpers/installer_dll_fw/Jamfile
re7dbac9 r2e8b33f 8 8 firewall.cpp 9 9 /psdk//hnetcfg 10 /psdk//bufferoverflowu 10 11 /psdk//Msi 11 /psdk//bufferoverflowu12 12 : # requirements 13 13 <def-file>firewall.def … … 15 15 <runtime-link>static 16 16 <threading>multi 17 <include>"D:/Program/Microsoft Platform SDK for Windows Server 2003 R2/Include"18 # <include>"C:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Include/Atl"19 20 17 : # default build 21 18 : # usage requirements -
helpers/installer_dll_fw/precomp.h
r8170e81 r2e8b33f 22 22 #include <msiquery.h> 23 23 //#include <strsafe.h> 24 #ifdef USE_PSDK 24 25 #include <netfw.h> 26 #endif 25 27 26 28 //#include "wcautil.h" -
release-build.bat
r55e44d4 r2e8b33f 15 15 echo :: Result: %ERRORLEVEL% >> build.log 16 16 17 call :build_one variant=debug address-model=32"--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%"17 call :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%" 18 18 IF DEFINED _ERROR goto :error 19 call :build_one variant=release address-model=32 "--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%" 20 IF DEFINED _ERROR goto :error 21 call :build_one variant=debug address-model=64 "--library-path=%TARGET_LIB_x64_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x64%" 22 IF DEFINED _ERROR goto :error 23 call :build_one variant=release address-model=64 "--library-path=%TARGET_LIB_x64_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x64%" 19 call :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%" 24 20 IF DEFINED _ERROR goto :error 25 21 rem call build.bat runtime-link=static variant=release architecture=ia64 --library-path=%TARGET_LIB_IA64_DIR% -
x64-build.bat
r358cda1 r2e8b33f 1 1 @echo off 2 @call env.bat 2 3 3 SET BOOST_BUILD_PATH=D:\tools\boost-build 4 rem SET BOOST_BUILD_PATH=D:\source\libs-c\boost_1_37_0\tools\build\v2 5 rem SET TOOLS_DIR=d:\source\tools\;C:\Program Files\7-Zip\ 6 SET TOOLS_DIR=d:\source\tools\;%ProgramFiles%\7-Zip\ 4 SET _ERROR= 5 echo Starting build > build.log 7 6 8 7 9 SET openssl=D:\source\libs-c\openssl-0.9.8g\include 10 SET boost=D:\source\libs-c\boost_1_34_1 11 rem SET boost=D:\source\libs-c\boost_1_35_0 8 rem call :build_hdrs 9 IF DEFINED _ERROR goto :error 10 rem call :build_src 11 IF DEFINED _ERROR goto :error 12 12 13 set TARGET_LIB_DIR=D:\source\lib 14 set TARGET_LIB_x86_DIR=%TARGET_LIB_DIR%\x86 15 set TARGET_LIB_x64_DIR=%TARGET_LIB_DIR%\x64 16 set TARGET_LIB_IA64_DIR=%TARGET_LIB_DIR%\IA64 17 18 set PATH=%PATH%;%TOOLS_DIR% 19 20 REM build x64 (Amd64, Emt64) binary 21 SET version=x64 22 call build.bat runtime-link=static variant=release address-model=64 --library-path=%TARGET_LIB_x64_DIR% 23 if %ERRORLEVEL% == -1 goto :error 13 call :build_one address-model=64 variant=release debug-symbols=on debug-store=database --build-type=complete "--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%" 14 IF DEFINED _ERROR goto :error 24 15 25 16 echo ************* … … 28 19 echo * * 29 20 echo ************* 30 31 21 goto :eof 32 22 33 :error 23 :build_hdrs 24 echo %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers >> build.log 25 %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers 26 if %ERRORLEVEL% == -1 goto :error_one 27 echo :: Result: %ERRORLEVEL% >> build.log 28 goto :eof 29 30 :build_src 31 echo %jam% --toolset=msvc source-archive >> build.log 32 %jam% --toolset=msvc source-archive 33 if %ERRORLEVEL% == -1 goto :error_one 34 echo :: Result: %ERRORLEVEL% >> build.log 35 goto :eof 36 37 :build_one 38 echo build.bat %* >> build.log 39 call build.bat %* 40 if %ERRORLEVEL% == -1 goto :error_one 41 echo Result: %ERRORLEVEL% >> build.log 42 goto :eof 43 44 :error_one 34 45 echo ********************* 35 46 echo * * 36 47 echo * E R R O R * 37 48 echo * * 38 echo * When building %version% * 49 echo ********************* 50 set _ERROR=1 51 exit /b -1 52 goto :eof 53 54 :error 55 echo :: Error: %ERRORLEVEL% >> build.log 56 echo ********************* 57 echo * * 58 echo * E R R O R * 39 59 echo * * 40 60 echo ********************* 41 61 type build.log -
x86-build.bat
r358cda1 r2e8b33f 1 1 @echo off 2 @call env.bat 2 3 3 SET BOOST_BUILD_PATH=D:\tools\boost-build 4 rem SET BOOST_BUILD_PATH=D:\source\libs-c\boost_1_37_0\tools\build\v2 5 rem SET TOOLS_DIR=d:\source\tools\;C:\Program Files\7-Zip\ 6 SET TOOLS_DIR=d:\source\tools\;%ProgramFiles%\7-Zip\ 7 SET PLATTFORM_SDK_LIB="D:/Program/Microsoft Platform SDK for Windows Server 2003 R2/Lib" 8 SET PLATTFORM_SDK_LIB_x86=%PLATTFORM_SDK_LIB% 9 SET PLATTFORM_SDK_LIB_x64=%PLATTFORM_SDK_LIB%/AMD64/msi 10 SET PLATTFORM_SDK_LIB_IA64=%PLATTFORM_SDK_LIB%/IA64 4 SET _ERROR= 5 echo Starting build > build.log 11 6 12 7 8 rem call :build_hdrs 9 IF DEFINED _ERROR goto :error 10 rem call :build_src 11 IF DEFINED _ERROR goto :error 13 12 14 SET openssl=D:\source\libs-c\openssl-0.9.8g\include 15 SET boost=D:\source\libs-c\boost_1_34_1 16 rem SET boost=D:\source\libs-c\boost_1_35_0 17 18 set PSDKLIB= 19 set TARGET_LIB_DIR=D:\source\lib 20 set TARGET_LIB_x86_DIR=%TARGET_LIB_DIR%\x86 21 set TARGET_LIB_x64_DIR=%TARGET_LIB_DIR%\x64 22 set TARGET_LIB_IA64_DIR=%TARGET_LIB_DIR%\IA64 23 24 set PATH=%PATH%;%TOOLS_DIR% 25 26 REM build x86 binary 27 SET version=x86 28 SET cmdline=build.bat runtime-link=static variant=release address-model=32 --library-path=%TARGET_LIB_x86_DIR% --psdk-lib=%PLATTFORM_SDK_LIB_x86% 29 call build.bat runtime-link=static variant=release address-model=32 --library-path=%TARGET_LIB_x86_DIR% --psdk-lib=%PLATTFORM_SDK_LIB_x86% 30 if %ERRORLEVEL% == -1 goto :error 13 call :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%" 14 IF DEFINED _ERROR goto :error 31 15 32 16 echo ************* … … 35 19 echo * * 36 20 echo ************* 37 38 21 goto :eof 39 22 40 :error 23 :build_hdrs 24 echo %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers >> build.log 25 %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers 26 if %ERRORLEVEL% == -1 goto :error_one 27 echo :: Result: %ERRORLEVEL% >> build.log 28 goto :eof 29 30 :build_src 31 echo %jam% --toolset=msvc source-archive >> build.log 32 %jam% --toolset=msvc source-archive 33 if %ERRORLEVEL% == -1 goto :error_one 34 echo :: Result: %ERRORLEVEL% >> build.log 35 goto :eof 36 37 :build_one 38 echo build.bat %* >> build.log 39 call build.bat %* 40 if %ERRORLEVEL% == -1 goto :error_one 41 echo Result: %ERRORLEVEL% >> build.log 42 goto :eof 43 44 :error_one 41 45 echo ********************* 42 46 echo * * 43 47 echo * E R R O R * 44 48 echo * * 45 echo * When building %version% * 49 echo ********************* 50 set _ERROR=1 51 exit /b -1 52 goto :eof 53 54 :error 55 echo :: Error: %ERRORLEVEL% >> build.log 56 echo ********************* 57 echo * * 58 echo * E R R O R * 46 59 echo * * 47 60 echo ********************* 48 echo %cmdline% 61 type build.log
Note: See TracChangeset
for help on using the changeset viewer.








