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.

78 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\apps_sp mkdir obj\i386\apps_sp
  15. if not exist obj\i386\drvmain mkdir obj\i386\drvmain
  16. call %SDXROOT%\windows\appcompat\db\copyreqfiles.cmd obj\i386
  17. pushd obj\i386
  18. shimdbc custom %__SHIMDBC_OPT% -l %SHIMDBC_LANG% -ov 5.1 -x %SDXROOT%\windows\appcompat\db\makefile.xml
  19. if errorlevel 1 goto HandleError
  20. md temp
  21. copy drvmain.sdb temp
  22. call deltacat.cmd %SDXROOT%\windows\appcompat\package\drv\obj\i386\temp
  23. copy temp\delta.* delta1.*
  24. rem del /f /q temp\*.*
  25. copy apphelp.sdb temp
  26. call deltacat.cmd %SDXROOT%\windows\appcompat\package\drv\obj\i386\temp
  27. copy temp\delta.* delta2.*
  28. rem del /f /q temp\*.*
  29. copy %SDXROOT%\windows\appcompat\package\drv\apcompat.inx apcompat.inf
  30. copy %SDXROOT%\windows\appcompat\package\drv\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%\windows\appcompat\tools\fcopy\obj\i386\fcopy.exe
  35. regsvr32 /s %SDXROOT%\windows\appcompat\buildtools\x86\itcc.dll
  36. %SDXROOT%\windows\appcompat\buildtools\x86\hhc apps.hhp
  37. ren drvmain.sdb *.sd_
  38. ren apphelp.sdb *.sd_
  39. %SDXROOT%\windows\appcompat\package\bin\iexpress /N /M %SDXROOT%\windows\appcompat\package\drv\AppFix.sed
  40. copy /B %_NTTREE%\winnt32\compdata\ntcompat.inf+drvmain\ntcompat_drv.inf ntcompat.inf
  41. pushd drvmain
  42. %SDXROOT%\windows\appcompat\buildtools\x86\hhc drvmain.hhp
  43. popd
  44. copy drvmain\drvmain.chm .
  45. copy drvmain\drvmain.inf .
  46. goto FinishBuild
  47. :HandleError
  48. @echo Errors during compilation... exiting
  49. goto FinishBuild
  50. :FinishBuild
  51. set __FULL_BUILD=
  52. set __SHIMDBC_OPT=
  53. popd