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.

77 lines
1.9 KiB

  1. @echo off
  2. set __FULL_BUILD=TRUE
  3. set __SHIMDBC_OPT=
  4. if "%SHIMDBC_STRICT%" == "" goto ShimdbcNoStrict
  5. @echo ShimDBC: Strict compile
  6. set __SHIMDBC_OPT=-s
  7. :ShimdbcNoStrict
  8. if defined SHIMDBC_LANG goto ShimdbcUserSpecifiedLang
  9. set SHIMDBC_LANG=USA
  10. :ShimdbcUserSpecifiedLang
  11. rd /s /q obj
  12. if not exist obj mkdir obj
  13. if not exist obj\i386 mkdir obj\i386
  14. if not exist obj\i386\drvmain mkdir obj\i386\drvmain
  15. call %SDXROOT%\windows\appcompat\db\copyreqfiles.cmd obj\i386
  16. pushd obj\i386
  17. shimdbc custom %__SHIMDBC_OPT% -l %SHIMDBC_LANG% -ov 5.1 -x %SDXROOT%\windows\appcompat\db\makefile.xml
  18. if errorlevel 1 goto HandleError
  19. md temp
  20. copy drvmain.sdb temp
  21. call deltacat.cmd %SDXROOT%\windows\appcompat\package\drv\obj\i386\temp
  22. copy temp\delta.* delta1.*
  23. rem del /f /q temp\*.*
  24. copy apphelp.sdb temp
  25. call deltacat.cmd %SDXROOT%\windows\appcompat\package\drv\obj\i386\temp
  26. copy temp\delta.* delta2.*
  27. rem del /f /q temp\*.*
  28. copy %SDXROOT%\windows\appcompat\package\drv\apcompat.inx apcompat.inf
  29. copy %SDXROOT%\windows\appcompat\package\drv\postcopy.cmd
  30. copy %SDXROOT%\tools\testroot.cer
  31. copy %SDXROOT%\tools\x86\certmgr.exe
  32. copy %SDXROOT%\tools\x86\chktrust.exe
  33. copy %SDXROOT%\windows\appcompat\tools\fcopy\obj\i386\fcopy.exe
  34. regsvr32 /s %SDXROOT%\windows\appcompat\buildtools\x86\itcc.dll
  35. %SDXROOT%\windows\appcompat\buildtools\x86\hhc apps.hhp
  36. ren drvmain.sdb *.sd_
  37. ren apphelp.sdb *.sd_
  38. %SDXROOT%\windows\appcompat\package\bin\iexpress /N /M %SDXROOT%\windows\appcompat\package\drv\AppFix.sed
  39. copy /B %_NTTREE%\winnt32\compdata\ntcompat.inf+drvmain\ntcompat_drv.inf ntcompat.inf
  40. pushd drvmain
  41. %SDXROOT%\windows\appcompat\buildtools\x86\hhc drvmain.hhp
  42. popd
  43. copy drvmain\drvmain.chm .
  44. copy drvmain\drvmain.inf .
  45. goto FinishBuild
  46. :HandleError
  47. @echo Errors during compilation... exiting
  48. goto FinishBuild
  49. :FinishBuild
  50. set __FULL_BUILD=
  51. set __SHIMDBC_OPT=
  52. popd