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.

134 lines
3.4 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. if %1 == -ZP (
  10. set __FULL_BUILD=FALSE
  11. echo Minimal build
  12. ) else (
  13. echo Full build
  14. ))
  15. set __SHIMDBC_OPT=
  16. if "%SHIMDBC_STRICT%" == "" goto ShimdbcNoStrict
  17. @echo ShimDBC: Strict compile
  18. set __SHIMDBC_OPT=-s
  19. :ShimdbcNoStrict
  20. if defined SHIMDBC_LANG goto ShimdbcUserSpecifiedLang
  21. set SHIMDBC_LANG=USA
  22. :ShimdbcUserSpecifiedLang
  23. rd /s /q obj
  24. if not exist obj mkdir obj
  25. if not exist obj\i386 mkdir obj\i386
  26. if not exist obj\i386\drvmain mkdir obj\i386\drvmain
  27. del /q obj\i386\*
  28. del /q obj\i386\drvmain\*
  29. call %SDXROOT%\windows\appcompat\db\copyreqfiles.cmd obj\i386
  30. pushd obj\i386
  31. shimdbc custom %__SHIMDBC_OPT% -ov 5.1 -l %SHIMDBC_LANG% -x %SDXROOT%\windows\appcompat\db\makefile.xml
  32. if errorlevel 1 goto HandleError
  33. if not exist temp mkdir temp
  34. copy sysmain.sdb temp
  35. call deltacat.cmd %SDXROOT%\windows\appcompat\package\obj\i386\temp
  36. copy temp\delta.* delta1.*
  37. del /f /q temp\*.*
  38. copy apphelp.sdb temp
  39. call deltacat.cmd %SDXROOT%\windows\appcompat\package\obj\i386\temp
  40. copy temp\delta.* delta2.*
  41. del /f /q temp\*.*
  42. copy msimain.sdb temp
  43. call deltacat.cmd %SDXROOT%\windows\appcompat\package\obj\i386\temp
  44. copy temp\delta.* delta3.*
  45. del /f /q temp\*.*
  46. type %SDXROOT%\windows\appcompat\package\apcompat.inx >apcompat.inf
  47. copy %SDXROOT%\windows\appcompat\package\postcopy.cmd
  48. copy %SDXROOT%\tools\testroot.cer
  49. copy %SDXROOT%\tools\x86\certmgr.exe
  50. copy %SDXROOT%\tools\x86\chktrust.exe
  51. if %__FULL_BUILD% == TRUE (
  52. pushd %SDXROOT%\windows\appcompat\tools\fcopy
  53. build -cZ
  54. popd
  55. set NT_SIGNCODE=1
  56. pushd %SDXROOT%\windows\appcompat\shims\lib
  57. build -cZ
  58. popd
  59. pushd %SDXROOT%\windows\appcompat\shims\Layer
  60. build -cZ
  61. popd
  62. pushd %SDXROOT%\windows\appcompat\shims\lua
  63. build -cZ
  64. popd
  65. pushd %SDXROOT%\windows\appcompat\shims\Specific
  66. build -cZ
  67. popd
  68. pushd %SDXROOT%\windows\appcompat\shims\General
  69. build -cZ
  70. popd
  71. pushd %SDXROOT%\windows\appcompat\shims\External
  72. build -cZ
  73. popd
  74. pushd %SDXROOT%\windows\appcompat\shims\Verifier
  75. build -cZ
  76. popd
  77. )
  78. copy %SDXROOT%\windows\appcompat\tools\fcopy\obj\i386\fcopy.exe
  79. copy %SDXROOT%\windows\appcompat\shims\layer\whistler\obj\i386\AcLayers.dll AcLayers.dl_
  80. copy %SDXROOT%\windows\appcompat\shims\lua\whistler\obj\i386\AcLua.dll AcLua.dl_
  81. copy %SDXROOT%\windows\appcompat\shims\specific\whistler\obj\i386\AcSpecfc.dll AcSpecfc.dl_
  82. copy %SDXROOT%\windows\appcompat\shims\general\whistler\obj\i386\AcGenral.dll AcGenral.dl_
  83. copy %SDXROOT%\windows\appcompat\shims\external\whistler\obj\i386\AcXtrnal.dll AcXtrnal.dl_
  84. copy %SDXROOT%\windows\appcompat\shims\verifier\whistler\obj\i386\AcVerfyr.dll AcVerfyr.dl_
  85. regsvr32 /s %SDXROOT%\windows\appcompat\buildtools\x86\itcc.dll
  86. %SDXROOT%\windows\appcompat\buildtools\x86\hhc apps.hhp
  87. ren sysmain.sdb *.sd_
  88. ren apphelp.sdb *.sd_
  89. ren msimain.sdb *.sd_
  90. %SDXROOT%\windows\appcompat\package\bin\iexpress /N /M %SDXROOT%\windows\appcompat\package\AppFix.sed
  91. goto FinishBuild
  92. :HandleError
  93. @echo Errors during compilation... exiting
  94. goto FinishBuild
  95. :FinishBuild
  96. set __FULL_BUILD=
  97. set __SHIMDBC_OPT=
  98. popd