mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 07:26:42 +00:00
a4a48386db
Add VS2017 project generation
39 lines
957 B
Batchfile
39 lines
957 B
Batchfile
@ECHO OFF
|
|
IF EXIST shlr\capstone GOTO START
|
|
ECHO [ R2 MESON CLONING CAPSTONE ]
|
|
git clone -b next --depth 10 http://github.com/aquynh/capstone.git shlr\capstone
|
|
cd shlr\capstone
|
|
rem FOR /r %%p IN (..\capstone-patches\*) DO git apply %%p
|
|
git apply ..\capstone-patches\add-mips2.patch
|
|
cd ..\..
|
|
|
|
:START
|
|
IF "%1"=="-p" GOTO BUILDPROJECT
|
|
IF "%1"=="-p2" GOTO BUILDPROJECT2
|
|
IF "%1"=="-r" GOTO REBUILD
|
|
IF EXIST build GOTO BUILD
|
|
python meson.py --prefix=%CD% build
|
|
|
|
:BUILD
|
|
ECHO [ R2 MESON NINJA BUILD ]
|
|
copy shlr\spp\config.def.h shlr\spp\config.h
|
|
ninja -C build
|
|
exit /b %errorlevel%
|
|
|
|
:BUILDPROJECT
|
|
ECHO [ R2 MESON BUILDING VS2015 SLN]
|
|
IF EXIST build rd /s /q build
|
|
python meson.py --prefix=%CD% build --backend=vs2015
|
|
GOTO EXIT
|
|
|
|
:BUILDPROJECT2
|
|
ECHO [ R2 MESON BUILDING VS2017 SLN]
|
|
IF EXIST build rd /s /q build
|
|
python meson.py --prefix=%CD% build --backend=vs2017
|
|
GOTO EXIT
|
|
|
|
:REBUILD
|
|
python.exe meson.py --internal regenerate %CD% "%CD%\build" --backend ninja
|
|
|
|
:EXIT
|