From b6290070cbe2518a41a39dfcb8973e5c520aa774 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Sun, 20 Mar 2022 15:21:20 +0100 Subject: [PATCH] xmake.lua: add molten-vk on MacOS --- xmake.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index c47134eaa..033f38188 100644 --- a/xmake.lua +++ b/xmake.lua @@ -85,6 +85,9 @@ local modules = { Custom = function() -- Set precise floating-points models to ensure shader optimization leads to correct results set_fpmodels("precise") + if is_plat("macosx") then + add_packages("molten-vk") + end end }, Utility = { @@ -103,12 +106,19 @@ local modules = { add_defines("VK_USE_PLATFORM_WAYLAND_KHR") elseif is_plat("macosx") then add_defines("VK_USE_PLATFORM_METAL_EXT") + add_packages("molten-vk") end end }, Widgets = { Deps = {"NazaraGraphics"}, - Packages = {"entt", "kiwisolver"} + Packages = {"entt", "kiwisolver"}, + Custom = function() + if is_plat("macosx") then + add_packages("molten-vk") + end + end + } } @@ -139,6 +149,7 @@ add_requires("newtondynamics", { debug = is_plat("windows") and is_mode("debug") if is_plat("macosx") then add_requires("libx11") + add_requires("molten-vk") end add_rules("mode.asan", "mode.coverage", "mode.debug", "mode.releasedbg")