Преглед на файлове

Fix opengl and glfw link for msys (#6075)

* opengl: fix link for msys

* glfw: fix link for msys
RimuruChan преди 7 месеца
родител
ревизия
aa72d472b1
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      packages/g/glfw/xmake.lua
  2. 1 1
      packages/o/opengl/xmake.lua

+ 1 - 1
packages/g/glfw/xmake.lua

@@ -29,7 +29,7 @@ package("glfw")
         add_frameworks("Cocoa", "IOKit")
     elseif is_plat("windows") then
         add_syslinks("user32", "shell32", "gdi32")
-    elseif is_plat("mingw") then
+    elseif is_plat("mingw", "msys") then
         add_syslinks("gdi32")
     elseif is_plat("linux") then
         add_syslinks("dl", "pthread")

+ 1 - 1
packages/o/opengl/xmake.lua

@@ -7,7 +7,7 @@ package("opengl")
         -- we always get it from compiler toolchain
         if package:is_plat("macosx") then
             return {frameworks = "OpenGL", defines = "GL_SILENCE_DEPRECATION"}
-        elseif package:is_plat("windows", "mingw") then
+        elseif package:is_plat("windows", "mingw", "msys") then
             return {links = "opengl32"}
         end
         if opt.system then