-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.bat
49 lines (37 loc) · 967 Bytes
/
build.bat
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
setlocal enabledelayedexpansion
echo Checking pre-requisites...
:: Check if CMake is installed
cmake --version > nul 2>&1
if %errorlevel% NEQ 0 (
echo Cannot find path to cmake. Is CMake installed? Exiting...
exit /b -1
) else (
echo CMake - Ready.
)
echo Python version:
py --version
echo Python - Ready.
echo Pip version:
pip --version
echo Pip - Ready.
echo Git version:
git --version
echo Git - Ready.
echo Dotnet version:
dotnet --version
echo Dotnet - Ready.
mkdir _build
echo Copiyng external resources...
xcopy resources\imgui.ini _build\apps\EraEditor\ /Q
xcopy resources\imgui.ini _build\apps\EraRuntime\ /Q
xcopy resources\imgui.ini _build\ /Q
xcopy /s /i resources\bin\Debug _build\Debug /Q
xcopy /s /i resources\bin\Release _build\Release /Q
cd _build
echo Creating venv...
py -m venv venv
echo venv created
echo Building project...
cmake -DCMAKE_BUILD_TYPE=Release ..
echo Done.