|
@@ -7,7 +7,9 @@ package("mint")
|
|
add_urls("https://github.com/Chuyu-Team/MINT/archive/refs/tags/$(version).tar.gz",
|
|
add_urls("https://github.com/Chuyu-Team/MINT/archive/refs/tags/$(version).tar.gz",
|
|
"https://github.com/Chuyu-Team/MINT.git")
|
|
"https://github.com/Chuyu-Team/MINT.git")
|
|
|
|
|
|
- add_versions("2023.0","cb5a87c0af09243444a71bd04b267e0656d815cecd9512062ecd5680f6610b94")
|
|
|
|
|
|
+ add_versions("2024.1", "3d77d9df1c724c98b6251f8c5c25cdf131143a80a226614a668d779db05d25e5")
|
|
|
|
+ add_versions("2024.0", "620cad4f1c071ba841d5b5d64a8b674bfe2f98a8db74ac81d93c8d8bff712ef2")
|
|
|
|
+ add_versions("2023.0", "cb5a87c0af09243444a71bd04b267e0656d815cecd9512062ecd5680f6610b94")
|
|
|
|
|
|
add_configs("namespace", {description = "use separate namespace", default = false, type = "boolean"})
|
|
add_configs("namespace", {description = "use separate namespace", default = false, type = "boolean"})
|
|
|
|
|
|
@@ -20,7 +22,12 @@ package("mint")
|
|
end)
|
|
end)
|
|
|
|
|
|
on_install("windows", function (package)
|
|
on_install("windows", function (package)
|
|
- os.cp("MINT.h", package:installdir("include"))
|
|
|
|
|
|
+ if package:version():ge("2024.0") then
|
|
|
|
+ os.cp("Mint/**", package:installdir("include"))
|
|
|
|
+ else
|
|
|
|
+ raise()
|
|
|
|
+ os.cp("MINT.h", package:installdir("include"))
|
|
|
|
+ end
|
|
end)
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|
|
on_test(function (package)
|