summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2022-07-21 17:10:14 -0400
committerGitHub <noreply@github.com>2022-07-21 17:10:14 -0400
commit91c8c3f32c4b827dedc74d2ecdfe72a3403fc357 (patch)
tree8bc50653dbc9ca839060d51ef597eebca9d0db49 /premake5.lua
parentd118134df5ae76fcc26626e771f4ca03a2fb43f1 (diff)
Upgrade SPIR-V Tools and GLSLANG (#2335)
* #include an absolute path didn't work - because paths were taken to always be relative. * Upgrade of SPIR-V Tools * Use slang-pack to get slang-glslang (previously was in slang-binaries) Update slang-glslang used
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua
index 04649689e..6cad48349 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -1399,13 +1399,15 @@ tool "slangd"
}
end
+ local slangGlslangPath = deps:getProjectRelativePath("slang-glslang", "../../..")
+
-- If we are not building glslang from source, then be
-- sure to copy a binary copy over to the output directory
if not buildGlslang then
filter { "system:linux or macosx or windows" }
local sharedLibName = slangUtil.getSharedLibraryFileName(targetInfo, "slang-glslang")
postbuildcommands {
- "{COPY} ../../../external/slang-binaries/bin/" .. targetName .. "/" .. sharedLibName .. " %{cfg.targetdir}"
+ "{COPY} " .. slangGlslangPath .. "/bin/" .. targetName .. "/release/" .. sharedLibName .. " %{cfg.targetdir}"
}
end