RetroShare/build_scripts/Windows-msys2/tools/depends.bat
hunbernd c05f5e8329 Use ntldd instead of depends.exe
Check all exe and dll for dependencies
Deploy cmark.dll
2020-05-23 16:53:59 +02:00

22 lines
360 B
Batchfile

:: Usage:
:: call depends.bat file
if "%1"=="" (
echo Usage: %~nx0 File
exit /B 1
)
setlocal
pushd %~dp1
%EnvMSYS2Cmd% "ntldd --recursive $0 | cut -f1 -d"=" | awk '{$1=$1};1'" %~nx1 > %~sdp0depends.tmp
for /F %%A in (%~sdp0depends.tmp) do (
echo %%~A
)
if exist "%~dp0depends.tmp" del /Q "%~dp0depends.tmp"
popd
endlocal
exit /B 0