radare2/make.bat

24 lines
544 B
Batchfile
Raw Normal View History

:: Build (and eventually install) r2 for windows
2021-08-17 20:18:43 +00:00
@echo off
ninja --version > NUL 2> NUL
if %ERRORLEVEL% == 0 (
if EXIST b (
ninja -C b
if %ERRORLEVEL% == 0 (
echo Installing r2 in %CD%\prefix
set DESTDIR=%CD%\prefix
ninja -C b install > NUL
copy /y %DESTDIR%\bin\radare2.exe %DESTDIR%\bin\r2.exe
2021-09-13 09:54:20 +00:00
copy /y C:\WINDOWS\System32\vcruntime140.dll %DESTDIR%\bin\vcruntime140.dll
) else (
exit /b 1
)
2021-08-17 20:18:43 +00:00
) else (
echo Please run configure before make
exit /b 1
)
) else (
echo Please run preconfigure
exit /b 1
)