Skip to content

Commit 2cdb7ef

Browse files
HuiYuanXin13HYXluadebugstar-hengxing
authored
matplotplusplus: support mingw (#8255)
* matplotplusplus: fix deps, support mingw * matplotplusplus: rollback deps * Update xmake.lua * add checkx --------- Co-authored-by: HYX <13@H.com> Co-authored-by: Saikari <lin@sz.cn.eu.org> Co-authored-by: star9029 <hengxings783@gmail.com>
1 parent 970ca4a commit 2cdb7ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/m/matplotplusplus/xmake.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ package("matplotplusplus")
2828
add_deps("cmake")
2929
add_deps("nodesoup", "cimg")
3030

31-
if is_plat("windows") then
31+
if is_plat("windows", "mingw") then
3232
add_syslinks("user32", "shell32", "gdi32")
3333
end
3434

@@ -40,6 +40,11 @@ package("matplotplusplus")
4040
end
4141
end
4242
end)
43+
on_check("mingw", function (package)
44+
if package:version() and package:version():lt("1.2.0") then
45+
assert(false, "package(matplotplusplus <1.2.0) unsupported version on mingw")
46+
end
47+
end)
4348
end
4449

4550
on_load(function (package)
@@ -50,7 +55,7 @@ package("matplotplusplus")
5055
end
5156
end)
5257

53-
on_install("windows", "macosx", "linux", function (package)
58+
on_install("windows", "mingw", "macosx", "linux", function (package)
5459
if package:is_plat("windows") then
5560
local vs = import("core.tool.toolchain").load("msvc"):config("vs")
5661
if tonumber(vs) < 2019 then

0 commit comments

Comments
 (0)