From 969df1c6c3eab0aab45ec6e1a1044e30a9a10081 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Thu, 5 Nov 2020 14:47:45 +0800 Subject: [PATCH] fix glfw on mingw --- packages/g/glfw/xmake.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/g/glfw/xmake.lua b/packages/g/glfw/xmake.lua index 1a77fa56b..48c16f48a 100644 --- a/packages/g/glfw/xmake.lua +++ b/packages/g/glfw/xmake.lua @@ -11,13 +11,11 @@ package("glfw") add_deps("cmake") - if is_plat("macosx") then + if is_host("macosx") then add_frameworks("Cocoa", "IOKit") - elseif is_plat("windows") then + elseif is_host("windows") then add_syslinks("user32", "shell32", "gdi32") - elseif is_plat("mingw@windows") then - add_syslinks("gdi32") - elseif is_plat("linux") then + elseif is_host("linux") then -- TODO: add wayland support add_deps("libx11", "libxrandr", "libxrender", "libxinerama", "libxcursor", "libxi", "libxext") add_syslinks("dl", "pthread")