Meson script improvements

This commit is contained in:
xarkes 2017-10-13 16:45:48 +02:00
parent 25f8f8262d
commit d0b1e63e33
2 changed files with 2 additions and 1 deletions

View File

@ -65,6 +65,7 @@ IF "%BUILD%"=="project" GOTO BUILDPROJECT
rem Creating build directory with correct parameters
IF EXIST %BUILDDIR% GOTO BUILD
ECHO [ R2 MESON GENERATING PROJECT ]
python meson.py --prefix=%CD% %BUILDDIR% %RELEASE% %DEFAULT_LIBRARY% --backend %BACKEND%
:BUILD

View File

@ -49,7 +49,7 @@ def handle_folder(folder):
def main():
# Create sdb binary
r = os.system('{meson} {sdbdir} {builddir}'.format(meson=MESON, sdbdir=SDBDIR, builddir=BUILDDIR))
r = os.system('{meson} --prefix=%CD% {sdbdir} {builddir}'.format(meson=MESON, sdbdir=SDBDIR, builddir=BUILDDIR))
if r: exit(r)
r = os.system('{ninja} -C {builddir}'.format(ninja=NINJA, builddir=BUILDDIR))
if r: exit(r)