forked from nvpro-samples/vk_mini_samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-Deploy.bat
46 lines (37 loc) · 817 Bytes
/
1-Deploy.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
@echo off
setlocal enabledelayedexpansion
set nc[0]="../nvpro_core"
set nc[1]="../../nvpro_core"
set nc[2]="./nvpro_core"
set found=0
for %%a in (0,1,2) do (
if exist !nc[%%a]! (
echo Found nvpro-sample at: !nc[%%a]!
set found=1
set nvpro_core_path=!nc[%%a]!
)
)
if not %found% == 1 (
echo Cloning nvpro-sample
git clone https://github.com/nvpro-samples/nvpro_core.git --recurse-submodules --shallow-submodules
) else (
echo Updating %nvpro_core_path%
pushd %nvpro_core_path%
git submodule update --init --recursive
popd
)
@REM Updating current
git submodule update --init --recursive
mkdir build
cd build
del CMakeCache.txt
cmake .. -A x64
if %ERRORLEVEL% neq 0 call :ErrorOccured
pause
exit /b 0
:ErrorOccured
echo.
echo %~1
echo.
pause
exit /b 1