Set windows meson default to static libraries (#7840)

This commit is contained in:
xarkes 2017-06-29 10:57:20 +02:00 committed by radare
parent c31d81da26
commit 3ee2bd5ede
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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\