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.

48 lines
1.5 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. call :HamOnwards %~4
  13. endlocal
  14. goto :EOF
  15. :HamOnwards
  16. if "%1" == "" goto DoneDoingIt
  17. REM
  18. REM Process the manifest
  19. REM
  20. set tempdir=%O%\%3
  21. mkdir %tempdir%
  22. preprocessor -i vcrtl.intl.manifest -o %tempdir%\%targetman% -reptags -DINT_ASM_NAME=Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries.Resources -DSXS_PROCESSOR_ARCHITECTURE=%_BUILDARCH% -DINT_LANGUAGE=%3 -DINT_DLL_NAME=%1
  23. REM
  24. REM Get the binary locally
  25. REM
  26. echo %1 %BinplaceRootDirectory%\%2\%AsmDropPath% > %tempdir%\placefil.txt
  27. echo %targetman% %BinplaceRootDirectory%\%2\%AsmDropPath% >> %tempdir%\placefil.txt
  28. copy %binarysourcedir%\%1 %tempdir%
  29. binplace -R %_NTTREE% -S %_NTTREE%\Symbols -n %_NTTREE%\Symbols.Pri -:DBG -j -P %tempdir%\placefil.txt -xa -ChangeAsmsToRetailForSymbols %tempdir%\%1
  30. binplace -R %_NTTREE% -S %_NTTREE%\Symbols -n %_NTTREE%\Symbols.Pri -:DBG -j -P %tempdir%\placefil.txt -xa -ChangeAsmsToRetailForSymbols %tempdir%\%targetman%
  31. echo SXS_ASSEMBLY_NAME="Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries.mui" SXS_ASSEMBLY_VERSION="6.0.0.0" SXS_ASSEMBLY_LANGUAGE="%3" SXS_MANIFEST="%BinplaceRootDirectory%\%2\%asmdroppath%\%targetman%" | appendtool.exe -file %_nttree%\build_logs\binplace.log-sxs -
  32. REM rmdir /s /q %tempdir%
  33. shift & shift & shift
  34. goto :HamOnwards
  35. :DoneDoingIt
  36. goto :Eof