-
Notifications
You must be signed in to change notification settings - Fork 64
/
build.bat
45 lines (37 loc) · 850 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
if exist build (
cd build
) else (
mkdir build && cd build
)
conan remote add iteale http://conan.iteale.com:19479
conan install .. -g cmake_multi -s arch=x86_64 -s build_type=Debug -s compiler.runtime=MDd --build missing
conan install .. -g cmake_multi -s arch=x86_64 -s build_type=Release -s compiler.runtime=MD --build missing
if %errorlevel% == 0 (
cmake .. -G "Visual Studio 16"
) else (
goto ExitLabelFailure
)
if %errorlevel% == 0 (
cmake --build . --config Debug
cmake --build . --config Release
) else (
goto ExitLabelFailure
)
if %errorlevel% == 0 (
where makensis
if %errorlevel% == 0 (
makensis ../samples/unreal/nsis/install.nsi
)
) else (
goto ExitLabelFailure
)
:ExitLabelSuccess
cd ..
echo Success Compilation
goto EndLabel
:ExitLabelFailure
cd ..
echo Error Compilation
goto EndLabel
:EndLabel
pause