File: make.bat

package info (click to toggle)
iaito 6.0.8%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,796 kB
  • sloc: cpp: 45,386; sh: 673; xml: 323; python: 234; makefile: 125; ansic: 9
file content (30 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SET "R2DIR=radare2"
SET "BUILDDIR=build_%PLATFORM%"

ECHO Preparing directory
CD src
meson --buildtype=release %* ..\%BUILDDIR%
CD ..\%BUILDDIR%
ninja -j4
if %ERRORLEVEL% NEQ 0 (
	EXIT /B 1
)
CD ..

ECHO Deploying iaito
IF NOT EXIST release (
	MKDIR release
)
COPY %BUILDDIR%\iaito.exe release\iaito.exe
XCOPY /S /I %R2DIR%\share release\share
XCOPY /S /I %R2DIR%\lib release\lib
DEL release\lib\*.lib
COPY %R2DIR%\bin\*.dll release\
windeployqt release\iaito.exe
FOR %%i in (..\src\translations\*.qm) DO MOVE "%%~fi" release\translations

IF DEFINED CI (
	RENAME release iaito
)

ENDLOCAL