forked from radareorg/radare2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
31 lines (30 loc) · 745 Bytes
/
make.bat
File metadata and controls
31 lines (30 loc) · 745 Bytes
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
:: Build (and eventually install) r2 for windows
@echo off
if "%*" == "clean" (
rmdir /s /q b 2> NUL
rmdir /s /q vs 2> NUL
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 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
)