mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 00:51:19 +00:00
Set windows meson default to static libraries (#7840)
This commit is contained in:
parent
c31d81da26
commit
3ee2bd5ede
@ -4,6 +4,7 @@ SET BACKEND=ninja
|
||||
SET REGEN=
|
||||
SET RELEASE=
|
||||
SET BUILDDIR=build
|
||||
SET DEFAULT_LIBRARY=--default-library static
|
||||
|
||||
:PARSEARGS
|
||||
IF NOT "%1"=="" (
|
||||
@ -37,7 +38,7 @@ IF "%REGEN%"=="1" GOTO REBUILD
|
||||
IF NOT "%BACKEND%"=="ninja" GOTO BUILDPROJECT
|
||||
|
||||
IF EXIST %BUILDDIR% GOTO BUILD
|
||||
python meson.py --prefix=%CD% %BUILDDIR% %RELEASE%
|
||||
python meson.py --prefix=%CD% %BUILDDIR% %RELEASE% %DEFAULT_LIBRARY%
|
||||
|
||||
:BUILD
|
||||
ECHO [ R2 MESON NINJA BUILD ]
|
||||
@ -48,10 +49,10 @@ exit /b %errorlevel%
|
||||
:BUILDPROJECT
|
||||
ECHO [ R2 MESON BUILDING %BACKEND% SLN]
|
||||
IF EXIST %BUILDDIR% rd /s /q %BUILDDIR%
|
||||
python meson.py --prefix=%CD% %BUILDDIR% --backend=%BACKEND% %RELEASE%
|
||||
python meson.py --prefix=%CD% %BUILDDIR% --backend=%BACKEND% %RELEASE% %DEFAULT_LIBRARY%
|
||||
GOTO EXIT
|
||||
|
||||
:REBUILD
|
||||
python.exe meson.py --internal regenerate %CD% "%CD%\%BUILDDIR%" --backend %BACKEND% %RELEASE%
|
||||
python.exe meson.py --internal regenerate %CD% "%CD%\%BUILDDIR%" --backend %BACKEND% %RELEASE% %DEFAULT_LIBRARY%
|
||||
|
||||
:EXIT
|
||||
|
@ -8,8 +8,8 @@ ninja.exe -C build install
|
||||
|
||||
ECHO [ R2 WINDIST FOLDER CREATION ]
|
||||
MKDIR %DIST%
|
||||
MOVE bin\* %DIST%\
|
||||
MOVE lib\* %DIST%\
|
||||
MOVE bin\*.exe %DIST%\
|
||||
MOVE lib\*.dll %DIST%\
|
||||
XCOPY /S /I shlr\www %DIST%\www
|
||||
MKDIR %DIST%\share\radare2\%VERSION%\magic
|
||||
XCOPY /S libr\magic\d\default\* %DIST%\share\radare2\%VERSION%\magic\
|
||||
|
Loading…
Reference in New Issue
Block a user