Browse Source

enable glew on mingw

Signed-off-by: Biobots <[email protected]>
Biobots 5 years ago
parent
commit
1890b7e30e
1 changed files with 9 additions and 0 deletions
  1. 9 0
      packages/g/glew/xmake.lua

+ 9 - 0
packages/g/glew/xmake.lua

@@ -15,6 +15,10 @@ package("glew")
         package:add("links", "glew32s")
     end)
 
+    if is_plat("mingw") then
+        add_deps("cmake")
+    end
+
     on_install("windows", function (package)
         os.cp("include", package:installdir())
         if is_arch("x64") then
@@ -31,3 +35,8 @@ package("glew")
         os.cp("lib", package:installdir())
         os.cp("include", package:installdir())
     end)
+
+    on_install("mingw", function (package)
+        os.cd("build/cmake")
+        import("package.tools.cmake").install(package)
+    end)