cutter/prepare_r2.bat
xarkes 0b5b514c0b
Updated r2 (#428)
* Updated r2
2018-04-03 22:15:17 +02:00

27 lines
771 B
Batchfile

@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
FOR /F %%i in ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i
IF "%PLATFORM%" == "x64" (
SET BITS=64
) ELSE (
SET BITS=32
)
SET "PATH=%CD%;%PATH%"
ECHO Building radare2 (%BITS%)
CD radare2
git clean -xfd
RMDIR /S /Q ..\dist%BITS%
python sys\meson.py --release --install=..\dist%BITS% --shared
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
COPY /Y build\r_userconf.h ..\dist%BITS%\include\libr\
COPY /Y build\r_version.h ..\dist%BITS%\include\libr\
COPY /Y build\shlr\libr2sdb.a ..\dist%BITS%\lib\r_sdb.lib
CD ..
MOVE /Y dist%BITS%\lib\*.lib cutter_win32\radare2\lib%BITS%\
ECHO Copying relevant files in cutter_win32
XCOPY /S /Y dist%BITS%\include\libr cutter_win32\radare2\include\libr\