switch is_host to is_plat

pull/103/head
xq114 4 years ago
parent cb298341f2
commit b3642370f9
  1. 8
      packages/g/glfw/xmake.lua

@ -11,11 +11,13 @@ package("glfw")
add_deps("cmake")
if is_host("macosx") then
if is_plat("macosx") then
add_frameworks("Cocoa", "IOKit")
elseif is_host("windows") then
elseif is_plat("windows") then
add_syslinks("user32", "shell32", "gdi32")
elseif is_host("linux") then
elseif is_plat("mingw") then
add_syslinks("gdi32")
elseif is_plat("linux") then
-- TODO: add wayland support
add_deps("libx11", "libxrandr", "libxrender", "libxinerama", "libxcursor", "libxi", "libxext")
add_syslinks("dl", "pthread")

Loading…
Cancel
Save