forked from radareorg/radare2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.bat
46 lines (38 loc) · 866 Bytes
/
configure.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
REM call preconfigure.bat
set MESON_FLAGS=-Dsdb_cgen=false
if "%*" == "asan" (
set MESON_FLAGS=%MESON_FLAGS% -Dwasan=true
)
if "%*" == "static" (
set MESON_FLAGS=%MESON_FLAGS% -Dstatic_runtime=true -Dblob=true -Denable_r2r=false -Denable_tests=false
)
if "%*" == "release" (
set MESON_FLAGS=%MESON_FLAGS% --buildtype=release
)
set PATH=%CD%\prefix\bin;%PATH%
set WORKS=0
if EXIST vs (
meson vs %MESON_FLAGS% --backend vs --reconfigure && set WORKS=1
) else (
meson vs %MESON_FLAGS% --backend vs && set WORKS=1
)
if %WORKS% EQU 1 (
echo Done
) else (
echo VS failed Try running 'preconfigure'
exit /b 1
)
set WORKS=0
if EXIST b (
meson b %MESON_FLAGS% --reconfigure && set WORKS=1
) else (
meson b %MESON_FLAGS% && set WORKS=1
)
if %WORKS% EQU 1 (
echo Done
exit /b 0
) else (
echo Try running 'preconfigure'
exit /b 1
)