Merge pull request #65 from Biobots/glew-support-mingw

enable glew on mingw platform
pull/67/head
ruki 5 years ago committed by GitHub
commit 0c946fde15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      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)

Loading…
Cancel
Save