Skip to content

Commit f40fb2e

Browse files
committed
fix build
1 parent 8d20310 commit f40fb2e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/n/nri/xmake.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ package("nri")
3232

3333
add_deps("cmake")
3434

35+
if on_check then
36+
on_check("android", function (package)
37+
assert(package:version() and package:version():lt("180"), "package(nri >=v180): unsupport android")
38+
end)
39+
end
40+
3541
on_load(function(package)
3642
if package:is_plat("windows") and package:config("shared") then
3743
package:add("defines", [[NRI_API=extern "C" __declspec(dllimport)]])

0 commit comments

Comments
 (0)