forked from radareorg/radare2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
32 lines (32 loc) · 926 Bytes
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
:: Build (and eventually install) r2 for windows
@echo off
if "%*" == "clean" (
wsl rm -rf b vs
exit /b 0
)
call ninja.exe --version > NUL 2> NUL && (
if EXIST b (
REM meson compile -C b
call ninja.exe -C b -j 2 && (
echo Installing r2 in %CD%\prefix
set DESTDIR=%CD%\prefix
rmdir /q /s prefix 2> NUL
REM meson install -C b
call 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
exit /b 0
) || (
echo Ninja compilation has failed
exit /b 1
)
) else (
echo Please run configure before make
exit /b 1
)
) || (
echo Cannot find the ninja. Please run preconfigure
exit /b 1
)