radare2/meson.bat

39 lines
957 B
Batchfile
Raw Normal View History

2017-05-05 02:49:29 +02:00
@ECHO OFF
2017-05-29 22:35:59 +02:00
IF EXIST shlr\capstone GOTO START
2017-05-31 13:38:47 +02:00
ECHO [ R2 MESON CLONING CAPSTONE ]
2017-05-29 22:35:59 +02:00
git clone -b next --depth 10 http://github.com/aquynh/capstone.git shlr\capstone
2017-06-03 04:43:46 +02:00
cd shlr\capstone
rem FOR /r %%p IN (..\capstone-patches\*) DO git apply %%p
git apply ..\capstone-patches\add-mips2.patch
cd ..\..
2017-06-08 05:32:17 +02:00
2017-05-29 22:35:59 +02:00
:START
2017-05-31 13:38:47 +02:00
IF "%1"=="-p" GOTO BUILDPROJECT
IF "%1"=="-p2" GOTO BUILDPROJECT2
2017-05-31 13:38:47 +02:00
IF "%1"=="-r" GOTO REBUILD
2017-05-05 02:49:29 +02:00
IF EXIST build GOTO BUILD
2017-05-31 13:38:47 +02:00
python meson.py --prefix=%CD% build
2017-06-08 05:32:17 +02:00
2017-05-05 02:49:29 +02:00
:BUILD
2017-05-31 13:38:47 +02:00
ECHO [ R2 MESON NINJA BUILD ]
2017-05-29 22:35:59 +02:00
copy shlr\spp\config.def.h shlr\spp\config.h
2017-05-05 02:49:29 +02:00
ninja -C build
2017-06-08 05:32:17 +02:00
exit /b %errorlevel%
2017-05-31 13:38:47 +02:00
:BUILDPROJECT
ECHO [ R2 MESON BUILDING VS2015 SLN]
IF EXIST build rd /s /q build
python meson.py --prefix=%CD% build --backend=vs2015
GOTO EXIT
2017-06-08 05:32:17 +02:00
:BUILDPROJECT2
ECHO [ R2 MESON BUILDING VS2017 SLN]
IF EXIST build rd /s /q build
python meson.py --prefix=%CD% build --backend=vs2017
GOTO EXIT
2017-05-31 13:38:47 +02:00
:REBUILD
python.exe meson.py --internal regenerate %CD% "%CD%\build" --backend ninja
2017-06-08 05:32:17 +02:00
2017-06-03 04:43:46 +02:00
:EXIT