summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-01-24 17:29:09 +0800
committerGitHub <noreply@github.com>2024-01-24 17:29:09 +0800
commit4e7e820c3dda716334ccbe9854379e46d8d332bb (patch)
tree2b1456d26133d901c397bd64391494ed1ac44c41 /premake5.lua
parentba4baf41155afcc4943dcc3887a7c7a324607939 (diff)
Generate lookup tables from cmake (#3461)
* Generate lookup tables from cmake * Correct add_custom_command generator dependencies * set options for lookup table source * include path * use slang_add_target for capability generated targets * vs project regenerate * ci wobble --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/premake5.lua b/premake5.lua
index 51ddbd62c..38fe65889 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -1568,7 +1568,7 @@ if enableEmbedStdLib then
"SLANG_WITHOUT_EMBEDDED_STD_LIB"
}
- includedirs { "external/spirv-headers/include" }
+ includedirs { "external/spirv-headers/include", "source" }
-- Add all of the slang source
addSourceDir "source/slang"
@@ -1593,6 +1593,7 @@ if enableEmbedStdLib then
"prelude/slang-cpp-prelude.h.cpp",
"prelude/slang-cpp-host-prelude.h.cpp",
"prelude/slang-torch-prelude.h.cpp",
+ "source/slang/slang-lookup-glslstd450.cpp",
"source/slang/slang-lookup-capability-defs.cpp"
}
if not targetInfo.isWindows then
@@ -1686,7 +1687,7 @@ standardProject("slang", "source/slang")
defines { "SLANG_WITHOUT_EMBEDDED_STD_LIB" }
end
- includedirs { "external/spirv-headers/include" }
+ includedirs { "external/spirv-headers/include", "source" }
-- On some tests with MSBuild disabling these made build work.
-- flags { "NoIncrementalLink", "NoPCH", "NoMinimalRebuild" }