fix glfw on mingw

pull/103/head
xq114 4 years ago
parent 1ef98e1a56
commit 969df1c6c3
  1. 8
      packages/g/glfw/xmake.lua

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

Loading…
Cancel
Save