summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorSimon Kallweit <simon.kallweit@gmail.com>2024-05-27 06:03:13 -0700
committerGitHub <noreply@github.com>2024-05-27 15:03:13 +0200
commitd9443d670ef8413971fe7c3f02368b60a7fc5904 (patch)
tree001e763846b23814b0e4960991fc457d7b580a0f /premake5.lua
parent4f1cbf6f4d561320b8e3c73b871cc95dd13c6207 (diff)
[gfx] metal backend skeleton (#4223)
* add metal-cpp submodule * add metal-cpp cmake target * gfx metal backend skeleton * add premake support * add foundation framework * add metal-cpp include to premake * update vs project file --------- Co-authored-by: Simon Kallweit <skallweit@nvidia.com> Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com>
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/premake5.lua b/premake5.lua
index 28dacf6b5..f06c2c81c 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -1140,7 +1140,7 @@ tool "gfx"
defines { "SLANG_GFX_DYNAMIC", "SLANG_GFX_DYNAMIC_EXPORT" }
- includedirs { ".", "external", "external/vulkan/include", "source" }
+ includedirs { ".", "external", "external/vulkan/include", "external/metal-cpp", "source" }
files {"slang-gfx.h"}
@@ -1209,6 +1209,7 @@ tool "gfx"
-- Don't support any render techs...
elseif os.target() == "macosx" then
addSourceDir "tools/gfx/vulkan"
+ addSourceDir "tools/gfx/metal"
else
-- Linux like
addSourceDir "tools/gfx/vulkan"
@@ -1221,7 +1222,7 @@ tool "gfx"
end
if os.target() == "macosx" then
- links { "Cocoa.framework", "QuartzCore.framework" }
+ links { "Foundation.framework", "Cocoa.framework", "QuartzCore.framework", "Metal.framework" }
end
if enableXlib then
@@ -1283,7 +1284,7 @@ tool "platform"
if targetInfo.isWindows then
systemversion "latest"
elseif os.target() == "macosx" then
- links { "Cocoa.framework", "QuartzCore.framework" }
+ links { "Foundation.framework", "Cocoa.framework", "QuartzCore.framework" }
else
if enableXlib then
defines { "SLANG_ENABLE_XLIB" }