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.

115 lines
2.9 KiB

  1. @echo off
  2. set __FULL_BUILD=TRUE
  3. REM This does not catch all possible invocations for a non-full build
  4. REM it does, however, catch the bz alias which is the most common.
  5. if %1 == -Z (
  6. set __FULL_BUILD=FALSE
  7. echo Minimal build
  8. ) else (
  9. echo Full build
  10. )
  11. set __SHIMDBC_OPT=
  12. if "%SHIMDBC_STRICT%" == "" goto ShimdbcNoStrict
  13. @echo ShimDBC: Strict compile
  14. set __SHIMDBC_OPT=-s
  15. :ShimdbcNoStrict
  16. if defined SHIMDBC_LANG goto ShimdbcUserSpecifiedLang
  17. set SHIMDBC_LANG=USA
  18. :ShimdbcUserSpecifiedLang
  19. rd /s /q obj
  20. if not exist obj mkdir obj
  21. if not exist obj\i386 mkdir obj\i386
  22. if not exist obj\i386\drvmain mkdir obj\i386\drvmain
  23. del /q obj\i386\*
  24. del /q obj\i386\drvmain\*
  25. call %SDXROOT%\windows\appcompat\db\copyreqfiles.cmd obj\i386
  26. pushd obj\i386
  27. shimdbc custom %__SHIMDBC_OPT% -ov 5.0 -l %SHIMDBC_LANG% -x %SDXROOT%\windows\appcompat\package\win2k\makefile.xml
  28. if errorlevel 1 goto HandleError
  29. type %SDXROOT%\windows\appcompat\package\win2k\apcompat.inx >apcompat.inf
  30. copy %SDXROOT%\windows\appcompat\package\win2k\postcopy.cmd
  31. copy %SDXROOT%\tools\testroot.cer
  32. copy %SDXROOT%\tools\x86\certmgr.exe
  33. copy %SDXROOT%\tools\x86\chktrust.exe
  34. copy %SDXROOT%\tools\x86\kill.exe
  35. copy %SDXROOT%\tools\x86\sleep.exe
  36. if %__FULL_BUILD% == TRUE (
  37. pushd %SDXROOT%\windows\appcompat\tools\fcopy
  38. build -cZ
  39. popd
  40. set NT_SIGNCODE=1
  41. pushd %SDXROOT%\windows\appcompat\shimengines\engiat\win2k
  42. build -cZ
  43. popd
  44. pushd %SDXROOT%\windows\appcompat\shims\lib
  45. build -cZ
  46. popd
  47. pushd %SDXROOT%\windows\appcompat\shims\Layer\win2k
  48. build -cZ
  49. popd
  50. pushd %SDXROOT%\windows\appcompat\shims\Specific\win2k
  51. build -cZ
  52. popd
  53. pushd %SDXROOT%\windows\appcompat\shims\General\win2k
  54. build -cZ
  55. popd
  56. pushd %SDXROOT%\windows\appcompat\shims\External\win2k
  57. build -cZ
  58. popd
  59. pushd %SDXROOT%\windows\appcompat\shims\Verifier\win2k
  60. build -cZ
  61. popd
  62. pushd %SDXROOT%\windows\appcompat\slayerui\win2k
  63. build -cZ
  64. popd
  65. )
  66. copy %SDXROOT%\windows\appcompat\tools\fcopy\obj\i386\fcopy.exe
  67. copy %SDXROOT%\windows\appcompat\shimengines\engiat\win2k\obj\i386\shim.dll shim.dl_
  68. copy %SDXROOT%\windows\appcompat\slayerui\win2k\obj\i386\slayerui.dll slayerui.dl_
  69. copy %SDXROOT%\windows\appcompat\shims\layer\win2k\obj\i386\AcLayers.dll AcLayers.dl_
  70. copy %SDXROOT%\windows\appcompat\shims\specific\win2k\obj\i386\AcSpecfc.dll AcSpecfc.dl_
  71. copy %SDXROOT%\windows\appcompat\shims\general\win2k\obj\i386\AcGenral.dll AcGenral.dl_
  72. copy %SDXROOT%\windows\appcompat\shims\external\win2k\obj\i386\AcXtrnal.dll AcXtrnal.dl_
  73. regsvr32 /s %SDXROOT%\windows\appcompat\buildtools\x86\itcc.dll
  74. %SDXROOT%\windows\appcompat\buildtools\x86\hhc apps.hhp
  75. ren sysmain.sdb *.sd_
  76. %SDXROOT%\windows\appcompat\package\bin\iexpress /N /M %SDXROOT%\windows\appcompat\package\win2k\AppFix.sed
  77. goto FinishBuild
  78. :HandleError
  79. @echo Errors during compilation... exiting
  80. goto FinishBuild
  81. :FinishBuild
  82. set __FULL_BUILD=
  83. set __SHIMDBC_OPT=
  84. popd