Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.3 KiB

  1. @echo off
  2. echo Setting up DirectUser Build environment
  3. set DUSER_DIR=%_NTDRIVE%%_NTROOT%\Windows\AdvCore\DUser
  4. set DEBUG_CRTS=
  5. if /i "%1"=="debug" goto DEBUG
  6. if /i "%1"=="release" goto RELEASE
  7. if /i "%1"=="bbt" goto BBT
  8. if /i "%1"=="icecap" goto ICECAP
  9. if /i "%_BuildType%"=="chk" goto DEBUG
  10. if /i "%_BuildType%"=="fre" goto RELEASE
  11. goto USAGE
  12. :DEBUG
  13. set BUILDTYPE=Debug
  14. set BUILD_ALT_DIR=d
  15. set NTDEBUG=ntsd
  16. rem if "%_BuildArch%"=="x86" set DEBUG_CRTS=1
  17. set MSC_OPTIMIZATION=/Od
  18. goto COMMON
  19. :RELEASE
  20. set BUILDTYPE=Release
  21. set BUILD_ALT_DIR=
  22. set NTDEBUG=ntsdnodbg
  23. goto COMMON
  24. :BBT
  25. set BUILDTYPE=BBT
  26. set BUILD_ALT_DIR=b
  27. set NTDEBUG=ntsd
  28. set NTBBT=1
  29. goto COMMON
  30. :ICECAP
  31. set BUILDTYPE=IceCap
  32. set BUILD_ALT_DIR=i
  33. set NTDEBUG=ntsdnodbg
  34. set PERFFLAGS=
  35. set PERFLIBS=%DUSER_DIR%\Lib\*\icecap.lib
  36. set NTBBT=1
  37. goto COMMON
  38. :COMMON
  39. set path=%_NTPOSTBLD%\DUser;%path%
  40. set BINPLACE_PLACEFILE=%DUSER_DIR%\PlaceFil.txt
  41. set USE_PDB=1
  42. rem Don't split the symbols from the files b/c we need them for IcePick
  43. set NTDBGFILES=
  44. set NTDEBUGTYPE=both
  45. title %BUILDTYPE% %_BuildArch% Build
  46. goto END
  47. :USAGE
  48. echo Usage BldEnv [Mode]
  49. echo where mode=Debug, Release, IceCAP, or BBT
  50. echo if mode is not specified, uses Debug if CHK and Release if FRE
  51. :END