Source code of Windows XP (NT5)
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.

81 lines
2.0 KiB

  1. @echo off
  2. REM
  3. REM Put this file in c:\bin.
  4. REM
  5. REM
  6. REM SetEnvironment.cmd
  7. REM
  8. REM Set the NT build environment, on a system with multiple enlistments.
  9. REM All binaries and postbuild goes to drive X:, in a subdir that is
  10. REM unique per enlistment. (easily changed from X: to the drive with the enlistment)
  11. REM
  12. REM %1 is the fullpath of our caller
  13. REM usually something like z:\nt\env.cmd or y:\lab6\nt\env.cmd
  14. REM
  15. REM %2 is optionally win64 or free
  16. REM %3 is optionally win64 or free
  17. REM
  18. REM JayKrell
  19. REM
  20. set JAYK_ENLISTMENT_DRIVE=%~d1
  21. set JAYK_ENLISTMENT_DIR=%~p1
  22. set JAYK_PER_ENLISTMENT_DIR=%JAYK_ENLISTMENT_DRIVE::=%%JAYK_ENLISTMENT_DIR:\=_%
  23. REM
  24. REM wipe out everything
  25. REM
  26. call %~dp0ClearEnvironment.cmd
  27. REM
  28. REM get compression in postbuild even on slower machines
  29. REM
  30. REM set PB_COMP=TRUE
  31. REM
  32. REM create fewer postbuild processes/threads
  33. REM
  34. set HORSE_POWER=1
  35. REM
  36. REM get x86 binaries from my own x86 build
  37. REM Use this when introducing Wow64 binary interface changes.
  38. REM
  39. set JAYK_USE_SELF_WOWBINS=true
  40. REM
  41. REM All of my binaries go on drive X.
  42. REM
  43. REM set JAYK_BINARIES_DRIVE=X
  44. REM
  45. REM Binaries go in, for example, \bin.x86chk on the drive that has the source.
  46. REM
  47. set JAYK_BINARIES_DRIVE=%JAYK_ENLISTMENT_DRIVE::=%
  48. call %JAYK_ENLISTMENT_DRIVE%%JAYK_ENLISTMENT_DIR%tools\razzle %2 %3 binaries_dir %JAYK_BINARIES_DRIVE%:\%JAYK_PER_ENLISTMENT_DIR%bin
  49. REM
  50. REM use objd for checked, obj for free
  51. REM
  52. REM This does not work. 1) build.exe is buggy 2) sources/makefile.incs are buggy
  53. REM
  54. REM if "%_BuildType%"=="chk" set BUILD_ALT_DIR=d
  55. REM
  56. REM Propagate JAYK_USE_SELF_WOWBINS to _NTWoWBinsTREE and _NTRemoteBootTREE.
  57. REM
  58. if not "%JAYK_USE_SELF_WOWBINS%"=="" if not "%_NTia64TREE%"=="" set _NTWoWBinsTREE=%_NTia64TREE:ia64=x86%
  59. set _NTRemoteBootTREE=%_NTWoWBinsTREE%
  60. set _NTTscBinsTREE=%_NTWoWBinsTREE%
  61. REM
  62. REM clear our temporaries
  63. REM
  64. set JAYK_USE_SELF_WOWBINS=
  65. set JAYK_ENLISTMENT_DRIVE=
  66. set JAYK_ENLISTMENT_DRIVE=
  67. set JAYK_PER_ENLISTMENT_DIR=
  68. set JAYK_BINARIES_DRIVE=
  69. set JAYK_ENLISTMENT_DIR=