-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_dependencies.bat
More file actions
63 lines (56 loc) · 1.57 KB
/
setup_dependencies.bat
File metadata and controls
63 lines (56 loc) · 1.57 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@echo off
echo ========================================
echo Racing Engine - Dependency Setup
echo ========================================
echo.
cd external
echo [1/4] Cloning GLM...
if not exist "glm" (
git clone https://github.com/g-truc/glm.git
echo GLM downloaded successfully!
) else (
echo GLM already exists, skipping...
)
echo.
echo [2/4] Cloning GLFW...
if not exist "glfw" (
git clone https://github.com/glfw/glfw.git
echo GLFW downloaded successfully!
) else (
echo GLFW already exists, skipping...
)
echo.
echo [3/4] Downloading stb_image...
if not exist "stb" mkdir stb
cd stb
if not exist "stb_image.h" (
powershell -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/nothings/stb/master/stb_image.h' -OutFile 'stb_image.h'"
echo stb_image.h downloaded successfully!
) else (
echo stb_image.h already exists, skipping...
)
cd ..
echo.
echo [4/4] Downloading Vulkan Memory Allocator...
if not exist "vma" mkdir vma
cd vma
if not exist "vk_mem_alloc.h" (
powershell -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/master/include/vk_mem_alloc.h' -OutFile 'vk_mem_alloc.h'"
echo vk_mem_alloc.h downloaded successfully!
) else (
echo vk_mem_alloc.h already exists, skipping...
)
cd ..
cd ..
echo.
echo ========================================
echo All dependencies downloaded!
echo ========================================
echo.
echo Next steps:
echo 1. mkdir build
echo 2. cd build
echo 3. cmake ..
echo 4. cmake --build . --config Release
echo.
pause