2018-01-03 18:46:30 +00:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
2017-10-15 19:19:48 +00:00
|
|
|
|
2018-03-12 07:15:31 +00:00
|
|
|
FOR /F %%i in ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i
|
|
|
|
IF "%PLATFORM%" == "x64" (
|
2018-02-27 08:57:53 +00:00
|
|
|
SET BITS=64
|
2018-02-09 19:51:30 +00:00
|
|
|
) ELSE (
|
2018-02-27 08:57:53 +00:00
|
|
|
SET BITS=32
|
2018-01-03 18:46:30 +00:00
|
|
|
)
|
2017-10-15 19:19:48 +00:00
|
|
|
|
2018-03-11 13:18:30 +00:00
|
|
|
SET "PATH=%CD%;%PATH%"
|
|
|
|
|
2018-02-09 19:51:30 +00:00
|
|
|
ECHO Building radare2 (%BITS%)
|
2018-01-03 18:46:30 +00:00
|
|
|
CD radare2
|
2017-10-15 19:19:48 +00:00
|
|
|
git clean -xfd
|
2018-02-09 19:51:30 +00:00
|
|
|
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%\
|
2018-02-09 19:51:30 +00:00
|
|
|
|
|
|
|
ECHO Copying relevant files in cutter_win32
|
|
|
|
XCOPY /S /Y dist%BITS%\include\libr cutter_win32\radare2\include\libr\
|