|
@@ -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)
|