Skip to content

Commit 46cc682

Browse files
committed
Update vcpkg.json to restrict dependencies to Windows platform and fix classic mode installation
Change package name to "simple-engine" and add platform specifiers to all dependencies. Update install script to use temporary manifest root directory for proper vcpkg classic mode operation, preventing manifest mode conflicts.
1 parent be6848e commit 46cc682

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

attachments/simple_engine/install_dependencies_windows.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ set VCPKG_BINARY_SOURCES=clear;files,%TEMP%\vcpkg-cache,readwrite
2424
:: Create cache directory if it doesn't exist
2525
if not exist %TEMP%\vcpkg-cache mkdir %TEMP%\vcpkg-cache
2626

27-
:: Install all dependencies at once using vcpkg in classic mode
27+
:: Install all dependencies at once using vcpkg in classic mode by pointing to an empty manifest root
2828
echo Installing all dependencies...
29-
vcpkg install glfw3 glm tinyobjloader stb tinygltf nlohmann-json ktx[vulkan] openal-soft --triplet=x64-windows
29+
if not exist %TEMP%\vcpkg-classic-mode mkdir %TEMP%\vcpkg-classic-mode
30+
vcpkg install glfw3 glm tinyobjloader stb tinygltf nlohmann-json ktx[vulkan] openal-soft --triplet=x64-windows --x-manifest-root=%TEMP%\vcpkg-classic-mode
31+
rmdir %TEMP%\vcpkg-classic-mode
3032

3133
:: Remind about Vulkan SDK
3234
echo.
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
2-
"name": "vulkan-game-engine-tutorial",
2+
"name": "simple-engine",
33
"version": "1.0.0",
44
"dependencies": [
5-
{
6-
"name": "glfw3",
7-
"platform": "!android"
8-
},
9-
"glm",
10-
"openal-soft",
5+
{ "name": "glfw3", "platform": "windows" },
6+
{ "name": "glm", "platform": "windows" },
7+
{ "name": "openal-soft", "platform": "windows" },
8+
{ "name": "tinygltf", "platform": "windows" },
9+
{ "name": "nlohmann-json", "platform": "windows" },
1110
{
1211
"name": "ktx",
12+
"platform": "windows",
1313
"features": [ "vulkan" ]
14-
},
15-
"tinygltf",
16-
"nlohmann-json"
14+
}
1715
]
1816
}

0 commit comments

Comments
 (0)