summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-09-13 09:48:32 -0700
committerGitHub <noreply@github.com>2023-09-13 09:48:32 -0700
commitd2466a602774fcaec063e2f8cdbf86fd5e160a21 (patch)
tree13d453cbf79c51ddba4131453da89055fe9740af /premake5.lua
parentc0a77c360436c4f1ec4d284e331063c35bdf95ad (diff)
Add all RayQuery SPIRV Intrinsics. (#3204)
* Add all RayQuery SPIRV Intrinsics. * Fix * Fix. * fix. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index d946ec22f..3e4ac1100 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -698,6 +698,10 @@ function tool(name)
-- default.
--
kind "ConsoleApp"
+
+ if not targetInfo.isWindows then
+ links { "pthread" }
+ end
end
-- "Standard" projects will be those that go to make the binary
@@ -725,6 +729,10 @@ function toolSharedLibrary(name)
defines { "SLANG_SHARED_LIBRARY_TOOL" }
kind "SharedLib"
+
+ if not targetInfo.isWindows then
+ links { "pthread" }
+ end
end
function exampleLibrary(name)
@@ -771,6 +779,10 @@ function example(name)
-- rather than in each example.
links { "example-base", "slang", "gfx", "gfx-util", "platform", "core" }
+ if not targetInfo.isWindows then
+ links { "pthread" }
+ end
+
if targetInfo.isWindows then
else
if enableXlib then
@@ -809,6 +821,10 @@ function generatorProject(name, sourcePath, projectKind)
else
kind (projectKind)
end
+
+ if not targetInfo.isWindows then
+ links { "pthread" }
+ end
end
--
@@ -944,6 +960,7 @@ standardProject("slang-rt", "source/slang-rt")
addSourceDir "source/core/windows"
else
addSourceDir "source/core/unix"
+ links { "pthread" }
end
--
@@ -1241,6 +1258,9 @@ standardProject("slangc", "source/slangc")
uuid "D56CBCEB-1EB5-4CA8-AEC4-48EA35ED61C7"
kind "ConsoleApp"
links { "core", "slang" }
+ if not targetInfo.isWindows then
+ links { "pthread" }
+ end
function getBuildDir(isArm64)
return "%{cfg.targetdir}"
@@ -1519,6 +1539,9 @@ if enableEmbedStdLib then
"prelude/slang-cpp-host-prelude.h.cpp",
"prelude/slang-torch-prelude.h.cpp"
}
+ if not targetInfo.isWindows then
+ links { "pthread" }
+ end
end
if enableEmbedStdLib then
@@ -1675,6 +1698,10 @@ standardProject("slang", "source/slang")
defines { "SLANG_ENABLE_IR_BREAK_ALLOC=1" }
filter {}
+ if not targetInfo.isWindows then
+ links { "pthread" }
+ end
+
toolSharedLibrary "gfx-unit-test"
uuid "092DAB9F-1DA5-4538-ADD7-1A8D1DBFD519"
includedirs { "." }