Fix vulkansdk searching for mingw platform #5531 (#5096)

pull/5103/head
yh-sb 3 months ago committed by GitHub
parent 6129db40d3
commit 8a78507c34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/v/vulkansdk/xmake.lua

@ -23,10 +23,10 @@ package("vulkansdk")
if vulkansdk then if vulkansdk then
local result = {includedirs = vulkansdk.includedirs, linkdirs = vulkansdk.linkdirs, links = {}} local result = {includedirs = vulkansdk.includedirs, linkdirs = vulkansdk.linkdirs, links = {}}
local utils = package:config("utils") local utils = package:config("utils")
table.insert(utils, package:is_plat("windows") and "vulkan-1" or "vulkan") table.insert(utils, package:is_plat("windows", "mingw") and "vulkan-1" or "vulkan")
for _, util in ipairs(utils) do for _, util in ipairs(utils) do
if not find_library(util, vulkansdk.linkdirs) then if not find_library(util, vulkansdk.linkdirs, {plat = package:plat()}) then
wprint(format("The library %s for %s is not found!", util, package:arch())) wprint(format("The library %s for %s is not found!", util, package:arch()))
return return
end end

Loading…
Cancel
Save