cutter/prepare_r2.bat

27 lines
771 B
Batchfile
Raw Normal View History

2018-01-03 18:46:30 +00:00
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
2018-03-12 07:15:31 +00:00
FOR /F %%i in ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i
IF "%PLATFORM%" == "x64" (
SET BITS=64
) ELSE (
SET BITS=32
2018-01-03 18:46:30 +00:00
)
SET "PATH=%CD%;%PATH%"
ECHO Building radare2 (%BITS%)
2018-01-03 18:46:30 +00:00
CD radare2
git clean -xfd
RMDIR /S /Q ..\dist%BITS%
2018-04-03 20:15:17 +00:00
python sys\meson.py --release --install=..\dist%BITS% --shared
2018-01-03 18:46:30 +00:00
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
2018-01-23 18:43:49 +00:00
COPY /Y build\r_userconf.h ..\dist%BITS%\include\libr\
COPY /Y build\r_version.h ..\dist%BITS%\include\libr\
2018-04-03 20:15:17 +00:00
COPY /Y build\shlr\libr2sdb.a ..\dist%BITS%\lib\r_sdb.lib
2018-01-03 18:46:30 +00:00
CD ..
2018-04-03 20:15:17 +00:00
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\