-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
31 lines (26 loc) · 806 Bytes
/
build.bat
File metadata and controls
31 lines (26 loc) · 806 Bytes
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
31
@echo off
set config=%1
echo "[INFO]: Generating makefiles.."
premake5 gmake2
if %ERRORLEVEL% == 0 (
echo "[INFO]: Finished generating makefiles!"
echo "[INFO]: Building application.."
pushd build
make -j13 config=%config%_x86_64
popd
if %ERRORLEVEL% == 0 (
echo "[INFO]: Finished building application!"
) else (
echo "[ERROR]: Failed to build application.."
exit /B 1
)
echo "[INFO]: Copying assets into bin folder.."
REM /MIR to mirror the directory, all /N* are to silence the tool output
robocopy "res" "bin/%config%/res" /MIR /NP /NFL /NDL /NJH /NJS /NS /NC
xcopy "lib\Shared\*.dll" "bin\%config%\" /s /i /y
xcopy "lib\%config%\*.dll" "bin\%config%\" /s /i /y
echo "[INFO]: Completed full build process."
) else (
echo "[ERROR]: Failed to generate makefiles.."
exit /B 1
)