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
60 lines
1.7 KiB
REM Parameters:
|
|
REM 1 - O
|
|
REM 2 - Binplace root directory
|
|
REM 3 - Source directory for the binaries
|
|
REM 4 - Triplets of "filename placeroot language"
|
|
|
|
setlocal
|
|
set O=%1
|
|
set BinplaceRootDirectory=%2
|
|
set BinarySourceDir=%3
|
|
set AsmDropPath=asms\6000\msft\vcrtlint
|
|
set TargetMan=vcrtlint.man
|
|
set ARCH=REM just so it lines up with genmuiasms.cmd
|
|
set CD=REM just so it lines up with genmuiasms.cmd
|
|
set Cat=vcrtlint.cat
|
|
set PREPROCESSOR_DASH_I_ARG=vcrtl.intl.manifest
|
|
set SXS_ASSEMBLY_NAME=Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries.Resources
|
|
|
|
call :HamOnwards %~4
|
|
|
|
endlocal
|
|
goto :EOF
|
|
|
|
:HamOnwards
|
|
REM
|
|
REM
|
|
REM 1 is like mfc42cht.dll
|
|
REM 2 is like chh
|
|
REM 3 is like zh-TW
|
|
REM
|
|
if "%1" == "" goto DoneDoingIt
|
|
|
|
REM
|
|
REM Process the manifest
|
|
REM
|
|
set tempdir=%O%\%3
|
|
mkdir %tempdir%
|
|
|
|
set PREPROCESSOR_COMMAND=preprocessor -i %PREPROCESSOR_DASH_I_ARG% -o %tempdir%\%targetman% -reptags -DSXS_PROCESSOR_ARCHITECTURE=%_BUILDARCH%
|
|
set PREPROCESSOR_COMMAND=%PREPROCESSOR_COMMAND% -DINT_ASM_NAME=%SXS_ASSEMBLY_NAME% -DINT_LANGUAGE=%3 -DINT_DLL_NAME=%1
|
|
%PREPROCESSOR_COMMAND%
|
|
|
|
REM
|
|
REM Get the binary locally
|
|
REM
|
|
|
|
set BINPLACE_DEST=%BinplaceRootDirectory%\%2\%AsmDropPath%
|
|
set OBJ_MAN_FILE=%tempdir%\%targetman%
|
|
set OBJ_DLL_FILE=%tempdir%\%1
|
|
copy %BinarySourceDir%\%1 %OBJ_DLL_FILE%
|
|
|
|
binplace -R %_NTTREE% -S %_NTTREE%\Symbols -n %_NTTREE%\Symbols.Pri -:DBG -j -:dest %BINPLACE_DEST% -xa -ChangeAsmsToRetailForSymbols %OBJ_MAN_FILE% %OBJ_DLL_FILE%
|
|
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 -
|
|
|
|
shift
|
|
shift
|
|
shift
|
|
goto :HamOnwards
|
|
:DoneDoingIt
|
|
goto :Eof
|