radare2/make.bat
pancake 4c9fac84a0
Generate bin/d the same way as other sdb paths with meson ##build
* Add -Dwasan=true for meson to compile with msvc's address sanitizer
* Clear the prefix dir before installing, so we ensure it's more realistic
2021-11-14 00:57:35 +01:00

29 lines
800 B
Batchfile

:: Build (and eventually install) r2 for windows
@echo off
ninja --version > NUL 2> NUL
if %ERRORLEVEL% == 0 (
if EXIST b (
REM meson compile -C b
ninja -C b
if %ERRORLEVEL% == 0 (
echo Installing r2 in %CD%\prefix
set DESTDIR=%CD%\prefix
rmdir /s prefix
REM meson install -C b
ninja -C b install > NUL
copy /y %DESTDIR%\bin\radare2.exe %DESTDIR%\bin\r2.exe
REM COPY ASAN DLL FROM HERE
REM "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64"
copy /y C:\WINDOWS\System32\vcruntime140.dll %DESTDIR%\bin\vcruntime140.dll
) else (
exit /b 1
)
) else (
echo Please run configure before make
exit /b 1
)
) else (
echo Please run preconfigure
exit /b 1
)