|
@@ -7,13 +7,38 @@ package("reactiveplusplus")
|
|
|
add_urls("https://github.com/victimsnino/ReactivePlusPlus/archive/refs/tags/$(version).tar.gz",
|
|
|
"https://github.com/victimsnino/ReactivePlusPlus.git")
|
|
|
|
|
|
- add_versions("v2.1.1", "0b962478d7c973a1f74062ce7f8d24c2fdcd2733031b1f014e65d252d59ebe6a",
|
|
|
- "v2.1.0", "d84a194ef96b92201ea574f81780837c95e8956bbad09b3dc2dc5cef7c2eef98",
|
|
|
- "v0.2.3", "9542419f8d7da98126ba2c6ae08fab287b4b3798d89cf75ed9bed2a9e3ec1678")
|
|
|
+ add_versions("v2.2.2", "54b2bf457996bd3d22e3b33fb98a8d0a3867dfa2d5e23991718dcd94ba6e4157")
|
|
|
+ add_versions("v2.1.1", "0b962478d7c973a1f74062ce7f8d24c2fdcd2733031b1f014e65d252d59ebe6a")
|
|
|
+ add_versions("v2.1.0", "d84a194ef96b92201ea574f81780837c95e8956bbad09b3dc2dc5cef7c2eef98")
|
|
|
+ add_versions("v0.2.3", "9542419f8d7da98126ba2c6ae08fab287b4b3798d89cf75ed9bed2a9e3ec1678")
|
|
|
|
|
|
add_deps("cmake")
|
|
|
add_includedirs("include/rpp")
|
|
|
|
|
|
+ if on_check then
|
|
|
+ on_check(function (package)
|
|
|
+ if package:is_plat("android") then
|
|
|
+ local ndk = package:toolchain("ndk")
|
|
|
+ local ndkver = ndk:config("ndkver")
|
|
|
+ assert(ndkver and tonumber(ndkver) > 22, "package(reactiveplusplus) require ndk version > 22")
|
|
|
+ end
|
|
|
+ if package:version() and package:version():ge("2.1.0") then
|
|
|
+ local msvc = package:toolchain("msvc")
|
|
|
+ if msvc then
|
|
|
+ local vs_toolset = msvc:config("vs_toolset")
|
|
|
+ if vs_toolset then
|
|
|
+ local vs_toolset_ver = import("core.base.semver").new(vs_toolset)
|
|
|
+ local minor = vs_toolset_ver:minor()
|
|
|
+ assert(minor and minor >= 30, "package(reactiveplusplus >=2.2.0) require vs_toolset >= 14.3")
|
|
|
+ end
|
|
|
+ end
|
|
|
+ if package:is_plat("android") then
|
|
|
+ raise("package(reactiveplusplus >=2.2.0) unsupported current platform")
|
|
|
+ end
|
|
|
+ end
|
|
|
+ end)
|
|
|
+ end
|
|
|
+
|
|
|
on_install(function (package)
|
|
|
import("package.tools.cmake").install(package, configs)
|
|
|
end)
|