forked from KhronosGroup/Vulkan-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_dependencies_windows.bat
More file actions
43 lines (35 loc) · 1.46 KB
/
install_dependencies_windows.bat
File metadata and controls
43 lines (35 loc) · 1.46 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
@echo off
REM Install script for Simple Game Engine dependencies on Windows
REM This script installs all required dependencies for building the Simple Game Engine
echo Installing Simple Game Engine dependencies for Windows...
:: Check if vcpkg is installed
where vcpkg >nul 2>nul
if %ERRORLEVEL% neq 0 (
echo vcpkg not found. Please install vcpkg first.
echo Visit https://github.com/microsoft/vcpkg for installation instructions.
echo Typically, you would:
echo 1. git clone https://github.com/Microsoft/vcpkg.git
echo 2. cd vcpkg
echo 3. .\bootstrap-vcpkg.bat
echo 4. Add vcpkg to your PATH
exit /b 1
)
:: Enable binary caching for vcpkg
echo Enabling binary caching for vcpkg...
set VCPKG_BINARY_SOURCES=clear;files,%TEMP%\vcpkg-cache,readwrite
:: Create cache directory if it doesn't exist
if not exist %TEMP%\vcpkg-cache mkdir %TEMP%\vcpkg-cache
:: Install all dependencies at once using vcpkg in classic mode
echo Installing all dependencies...
vcpkg install glfw3 glm tinyobjloader stb tinygltf nlohmann-json ktx[vulkan] openal-soft --triplet=x64-windows
:: Remind about Vulkan SDK
echo.
echo Don't forget to install the Vulkan SDK from https://vulkan.lunarg.com/
echo.
echo All dependencies have been installed successfully!
echo You can now use CMake to build your Vulkan project.
echo.
echo Example CMake command:
echo cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=[path\to\vcpkg]\scripts\buildsystems\vcpkg.cmake
echo cmake --build build
exit /b 0