pull/101/head
ruki 4 years ago
parent f8dc70f9cc
commit 9d78caecc0
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 7
      packages/g/glfw/xmake.lua

@ -42,7 +42,6 @@ package("glfw")
package:add("links", "glfw3")
if package:is_plat("windows") then
package:add("syslinks", "user32", "shell32")
package:add("cxflags", "/MD")
end
package:add("syslinks", "gdi32")
elseif package:is_plat("macosx") then
@ -103,5 +102,9 @@ package("glfw")
end)
on_test(function (package)
assert(package:has_cfuncs("glfwInit", {includes = "GLFW/glfw3.h"}))
local cxflags
if not package:config("shared") and package:is_plat("windows") then
cxflags = "/MD"
end
assert(package:has_cfuncs("glfwInit", {includes = "GLFW/glfw3.h", configs = {cxflags = cxflags}}))
end)

Loading…
Cancel
Save