@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 --copylib 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\liblibr2sdb.a ..\dist%BITS%\r_sdb.lib CD .. MOVE /Y dist%BITS%\*.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\