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.

60 lines
1.7 KiB

  1. REM Parameters:
  2. REM 1 - O
  3. REM 2 - Binplace root directory
  4. REM 3 - Source directory for the binaries
  5. REM 4 - Triplets of "filename placeroot language"
  6. setlocal
  7. set O=%1
  8. set BinplaceRootDirectory=%2
  9. set BinarySourceDir=%3
  10. set AsmDropPath=asms\6000\msft\vcrtlint
  11. set TargetMan=vcrtlint.man
  12. set ARCH=REM just so it lines up with genmuiasms.cmd
  13. set CD=REM just so it lines up with genmuiasms.cmd
  14. set Cat=vcrtlint.cat
  15. set PREPROCESSOR_DASH_I_ARG=vcrtl.intl.manifest
  16. set SXS_ASSEMBLY_NAME=Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries.Resources
  17. call :HamOnwards %~4
  18. endlocal
  19. goto :EOF
  20. :HamOnwards
  21. REM
  22. REM
  23. REM 1 is like mfc42cht.dll
  24. REM 2 is like chh
  25. REM 3 is like zh-TW
  26. REM
  27. if "%1" == "" goto DoneDoingIt
  28. REM
  29. REM Process the manifest
  30. REM
  31. set tempdir=%O%\%3
  32. mkdir %tempdir%
  33. set PREPROCESSOR_COMMAND=preprocessor -i %PREPROCESSOR_DASH_I_ARG% -o %tempdir%\%targetman% -reptags -DSXS_PROCESSOR_ARCHITECTURE=%_BUILDARCH%
  34. set PREPROCESSOR_COMMAND=%PREPROCESSOR_COMMAND% -DINT_ASM_NAME=%SXS_ASSEMBLY_NAME% -DINT_LANGUAGE=%3 -DINT_DLL_NAME=%1
  35. %PREPROCESSOR_COMMAND%
  36. REM
  37. REM Get the binary locally
  38. REM
  39. set BINPLACE_DEST=%BinplaceRootDirectory%\%2\%AsmDropPath%
  40. set OBJ_MAN_FILE=%tempdir%\%targetman%
  41. set OBJ_DLL_FILE=%tempdir%\%1
  42. copy %BinarySourceDir%\%1 %OBJ_DLL_FILE%
  43. binplace -R %_NTTREE% -S %_NTTREE%\Symbols -n %_NTTREE%\Symbols.Pri -:DBG -j -:dest %BINPLACE_DEST% -xa -ChangeAsmsToRetailForSymbols %OBJ_MAN_FILE% %OBJ_DLL_FILE%
  44. echo SXS_ASSEMBLY_NAME="%SXS_ASSEMBLY_NAME%" SXS_ASSEMBLY_VERSION="6.0.0.0" SXS_ASSEMBLY_LANGUAGE="%3" SXS_MANIFEST="%BINPLACE_DEST%\%targetman%" | appendtool.exe -file %BINPLACE_LOG%-sxs -
  45. shift
  46. shift
  47. shift
  48. goto :HamOnwards
  49. :DoneDoingIt
  50. goto :Eof