Changeset 55e44d4 in nscp
- Timestamp:
- 10/04/09 23:40:03 (4 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 2e8b33f
- Parents:
- 1fc246c
- Files:
-
- 1 added
- 7 edited
-
AutoBuild.h (modified) (1 diff)
-
Jamroot (modified) (4 diffs)
-
NSClient++.cpp (modified) (2 diffs)
-
bjam/zip.jam (modified) (1 diff)
-
build.bat (modified) (1 diff)
-
helpers/build-archive/Jamfile (modified) (1 diff)
-
helpers/build-source/Jamfile (added)
-
release-build.bat (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
AutoBuild.h
r1fc246c r55e44d4 3 3 // change the FALSE to TRUE for autoincrement of build number 4 4 #define INCREMENT_VERSION TRUE 5 #define FILEVER 0,3,7, 3476 #define PRODUCTVER 0,3,7, 3477 #define STRFILEVER _T("0.3.7. 347")8 #define STRPRODUCTVER _T("0.3.7. 347")9 #define STRPRODUCTDATE _T("2009- 09-20")5 #define FILEVER 0,3,7,422 6 #define PRODUCTVER 0,3,7,422 7 #define STRFILEVER _T("0.3.7.422") 8 #define STRPRODUCTVER _T("0.3.7.422") 9 #define STRPRODUCTDATE _T("2009-10-04") 10 10 #endif // AUTOBUILD_H -
Jamroot
r1fc246c r55e44d4 208 208 all-modules = $(result) ; 209 209 } 210 for local l in $(all-modules)211 {210 all-modules-text = "" ; 211 for local l in $(all-modules) { 212 212 alias $(l) 213 213 : # sources … … 218 218 <dependency>$(target) 219 219 ; 220 echo "Adding module: $(l)" ;221 220 explicit $(l) ; 222 } 223 for local l in $(all-scripts) 221 all-modules-text = "$(all-modules-text) $(l)" ; 222 } 223 echo "Building modules: $(all-modules-text)" ; 224 for local l in $(all-scripts) { 225 all-scripts-lst = $(all-scripts-lst) scripts/$(l) ; 226 } 227 } else { 228 all-installers = 229 [ MATCH .*helpers/(.*)/.* : [ glob helpers/*installer/Jamfile ] ] 230 ; 231 all-installers-text = "" ; 232 for local l in $(all-installers) 224 233 { 225 #make scripts-$(l) : scripts/$(l) : common.copy ; 226 #explicit scripts/$(l) ; 227 228 #alias scripts-$(l) : scripts/$(l) ; 229 #explicit scripts-$(l) ; 230 231 all-scripts-lst = $(all-scripts-lst) scripts/$(l) ; 232 233 echo "Adding script: $(l)" ; 234 } 235 } 236 237 all-installers = 238 [ MATCH .*helpers/(.*)/.* : [ glob helpers/*installer/Jamfile ] ] 239 ; 240 for local l in $(all-installers) 241 { 242 alias $(l) : helpers/$(l) ; 243 echo "Adding installer target for: $(l)" ; 244 explicit $(l) ; 234 alias $(l) : helpers/$(l) ; 235 explicit $(l) ; 236 all-installers-text = "$(all-installers-text) $(l)" ; 237 } 238 echo "Building installers: $(all-installers-text)" ; 245 239 } 246 240 … … 280 274 rule get-root-prefix ( properties * ) 281 275 { 276 tag = "UNKNOWN" ; 282 277 if <architecture>ia64 in $(properties) { 283 return IA64 ;278 tag = "IA64" ; 284 279 } else { 285 if <address-model>64 in $(properties) { return x64 ; } 286 else { return Win32 ; } 287 } 280 if <address-model>64 in $(properties) { 281 tag = "x64" ; 282 } else { 283 tag = "Win32" ; 284 } 285 } 286 if <variant>debug in $(properties) { 287 tag = "$(tag)-debug" ; 288 } 289 return $(tag) ; 288 290 } 289 291 rule generate-binary-location ( properties * ) … … 327 329 explicit build-archives ; 328 330 329 330 331 alias build-installer : all-installer-targets : <location>$(BOOST_STAGE_LOCATE)/installer ; 331 332 explicit build-installer ; 332 333 333 334 334 alias source-archive : helpers/build-source : <location>$(BOOST_STAGE_LOCATE)/archive ; 335 explicit source-archive ; 336 337 -
NSClient++.cpp
r308b6f5 r55e44d4 25 25 #include <remote_processes.hpp> 26 26 #include <Lmcons.h> 27 //#ifdef DEBUG 28 #include <assert.h> 29 //#endif 27 30 28 31 NSClient mainClient(SZSERVICENAME); // Global core instance. … … 451 454 std::wcout << _T("Reattaching to session 0") << std::endl; 452 455 mainClient.startTrayIcon(0); 456 //#ifdef DEBUG 457 } else if (s == _T("assert")) { 458 assert(false); 459 //#endif 453 460 } else if (std::cin.peek() < 15) { 454 461 buff += s; -
bjam/zip.jam
r1d53fe0 r55e44d4 5 5 6 6 feature source-folder : : path free ; 7 feature exclude : : free ; 8 feature recursive : off on : propagated ; 7 9 8 10 type.register ZIP : zip ; 9 11 generators.register-composing bjam/zip.make-zip : : ZIP ; 10 12 flags bjam/zip.make-zip SOURCE_FOLDER <source-folder> ; 13 flags bjam/zip.make-zip EXCLUDES <exclude> : -x ; 14 flags bjam/zip.make-zip FLAGS <recursive>on : -r ; 11 15 12 16 actions make-zip { 13 echo 7z.exe a -tzip -bd "$(<)" "$( SOURCE_FOLDER)"14 7z.exe a -tzip -bd "$(<)" "$( SOURCE_FOLDER)"17 echo 7z.exe a -tzip -bd "$(<)" "$(FLAGS)" "$(SOURCE_FOLDER)" "-x!$(EXCLUDES)" 18 7z.exe a -tzip -bd "$(<)" "$(FLAGS)" "$(SOURCE_FOLDER)" "-x!$(EXCLUDES)" 15 19 } -
build.bat
r358cda1 r55e44d4 2 2 @call env.bat 3 3 4 SET cmdline=%jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE% %* build-binaries 5 %jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE% warnings=off %* build-binaries4 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.log 5 %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 6 6 if %ERRORLEVEL% == 1 goto :error 7 echo :: Result: %ERRORLEVEL% >> build.log 7 8 8 SET cmdline=%jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE% warnings=off %* build-archives 9 %jam% --toolset=msvc --with-lua=%LUA_SOURCE% --with-openssl --include-path=%NSCP_INCLUDE% --with-boost --with-cryptopp=%CRYPTOPP_SOURCE%warnings=off %* build-archives9 echo :: %jam% --toolset=msvc warnings=off %* build-archives >> build.log 10 %jam% --toolset=msvc warnings=off %* build-archives 10 11 if %ERRORLEVEL% == 1 goto :error 12 echo :: Result: %ERRORLEVEL% >> build.log 11 13 12 SET cmdline=%jam% --toolset=wix %* build-installer 13 %jam% --toolset=wix %* build-installer14 echo :: %jam% --toolset=wix "--wix=%WIX_PATH%" %* build-installer >> build.log 15 %jam% --toolset=wix "--wix=%WIX_PATH%" %* build-installer 14 16 if %ERRORLEVEL% == 1 goto :error 17 echo :: Result: %ERRORLEVEL% >> build.log 15 18 16 exit /b 119 exit /b 0 17 20 goto :eof 18 21 19 22 :error 23 echo :: Error: %ERRORLEVEL% >> build.log 20 24 echo ************* 21 25 echo * E R R O R * 22 26 echo ************* 23 echo %cmdline%24 echo *************25 27 26 28 exit /b -1 -
helpers/build-archive/Jamfile
r1fc246c r55e44d4 13 13 { 14 14 local properties = [ $(property-set).raw ] ; 15 if <architecture>ia64 in $(properties) { 16 tag = IA64 ; 17 } else { 18 if <address-model>64 in $(properties) { tag = x64 ; } 19 else { tag = Win32 ; } 20 } 15 local tag = [ get-root-prefix $(properties) ] ; 21 16 local date = [ SHELL "perl helpers/perl/echo_date.pl" ] ; 22 17 local version = [ SHELL "perl helpers/perl/echo_version.pl $(TOP)/../../AutoBuild.h" ] ; -
release-build.bat
re7dbac9 r55e44d4 1 1 @echo off 2 3 2 @call env.bat 4 3 5 SET version=crypto_hdr 6 SET cmdline=%jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers 4 SET _ERROR= 5 echo Starting build > build.log 6 7 echo %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers >> build.log 7 8 %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers 8 9 if %ERRORLEVEL% == -1 goto :error 10 echo :: Result: %ERRORLEVEL% >> build.log 9 11 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%" 12 echo %jam% --toolset=msvc source-archive >> build.log 13 %jam% --toolset=msvc source-archive 14 14 if %ERRORLEVEL% == -1 goto :error 15 echo :: Result: %ERRORLEVEL% >> build.log 15 16 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 17 call :build_one variant=debug address-model=32 "--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%" 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%" 24 IF DEFINED _ERROR goto :error 25 25 rem call build.bat runtime-link=static variant=release architecture=ia64 --library-path=%TARGET_LIB_IA64_DIR% 26 rem if %ERRORLEVEL% == -1 goto :error27 26 28 27 echo ************* … … 31 30 echo * * 32 31 echo ************* 33 34 32 goto :eof 35 33 36 :error 34 :build_one 35 echo build.bat runtime-link=static %* >> build.log 36 call build.bat runtime-link=static %* 37 if %ERRORLEVEL% == -1 goto :error_one 38 echo Result: %ERRORLEVEL% >> build.log 39 goto :eof 40 41 :error_one 37 42 echo ********************* 38 43 echo * * 39 44 echo * E R R O R * 40 45 echo * * 41 echo * When building %version% * 46 echo ********************* 47 set _ERROR=1 48 exit /b -1 49 goto :eof 50 51 :error 52 echo :: Error: %ERRORLEVEL% >> build.log 53 echo ********************* 54 echo * * 55 echo * E R R O R * 42 56 echo * * 43 57 echo ********************* 44 echo %cmdline% 58 type build.log
Note: See TracChangeset
for help on using the changeset viewer.








