Updated build system to now download and include glm library

This commit is contained in:
2025-07-10 00:45:35 +10:00
parent e4258318ee
commit d9fb50c1a4
3 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ local output_name = "basalt.lib"
local include_dirs = "-I\"" .. table.concat({
"include",
"thirdparty/glfw/include",
"thirdparty/glm",
vulkan_sdk_dir .. "/Include",
vulkan_sdk_dir .. "/Include/vulkan",
}, "\" -I\"") .. '\"'

View File

@@ -1,7 +1,8 @@
local function download_requirements()
-- Git module is not yet implemented, so delegate to the command-line
local argv = {
{"clone https://github.com/glfw/glfw.git thirdparty/glfw"}
{"clone https://github.com/glfw/glfw.git thirdparty/glfw"},
{"clone https://github.com/g-truc/glm.git thirdparty/glm"}
}
local ec, stdout, stderr = platform.exec_parallel("git", 1, argv)
for i,ec in pairs(ec) do

View File

@@ -8,6 +8,7 @@ local output_name = args[1] .. '.exe'
local include_dirs = "-I\"" .. table.concat({
"include",
"thirdparty/glfw/include",
"thirdparty/glm",
vulkan_sdk_dir .. "/Include",
vulkan_sdk_dir .. "/Include/vulkan",
"tests/" .. args[1] .. '/include'