Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Jan 30, 2025
1 parent 4baed3f commit 2f7b47a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/r/reactiveplusplus/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ package("reactiveplusplus")

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.2.0") then
local msvc = package:toolchain("msvc")
if msvc then
Expand All @@ -28,12 +33,7 @@ package("reactiveplusplus")
end
end
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")
if package:version():ge("2.2.0") then
raise("package(reactiveplusplus >=2.2.0) unsupported current platform")
end
raise("package(reactiveplusplus >=2.2.0) unsupported current platform")
end
end
end)
Expand Down

0 comments on commit 2f7b47a

Please sign in to comment.