Initial commit

This commit is contained in:
2025-08-03 20:55:12 +02:00
commit f7d91d55b0
18 changed files with 918 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
@echo off
:: These variables should point to '.exe' files.
set MSVC_DUMPBIN="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\dumpbin.exe"
set MSVC_LIB="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\lib.exe"
exit /b
+43
View File
@@ -0,0 +1,43 @@
@echo off
setlocal
pushd %CD%
cd /D "%~dp0"
call "%~dp0\0_config.cmd"
echo Checking the PATH
IF NOT EXIST %MSVC_LIB% (
echo ^> Unable to find 'lib.exe' as indicated in '%%MSVC_DUMPBIN%%' !
echo ^> Please check the '0_config.cmd' script !
goto end
)
echo ^> Found 'lib.exe' at the given location !
echo Removing old '.lib' files
del /S /Q .\*.lib 2> nul
echo Iterating over all '.def' files in 'libs/' for 'x64', 'x86' and 'arm64'...
for /R ".\" %%i in (*.def) do call :sub-make-lib X64 %%i
for /R ".\" %%i in (*.def) do call :sub-make-lib X86 %%i
for /R ".\" %%i in (*.def) do call :sub-make-lib ARM64 %%i
echo Done !
:end
popd
endlocal
pause
exit /b
:sub-make-lib
echo ^> %2
pushd %~dp2
::set _RAW_DEF_NAME=%~nx2
::set _RAW_DEF_NAME=%_RAW_DEF_NAME:.raw.def=%
::echo lib.exe /nologo /def:%_RAW_DEF_NAME%.raw.def /out:%_RAW_DEF_NAME%.lib /machine:%1
::%MSVC_LIB% /nologo /def:%_RAW_DEF_NAME%.raw.def /out:%_RAW_DEF_NAME%.lib /machine:%1
mkdir .\%1
%MSVC_LIB% /nologo /def:%~nx2 /out:.\%1\%~n2.lib /machine:%1
popd
exit /b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
LIBRARY msvcrt.dll
EXPORTS
GetConsoleProcessList