Skip to content

Commit

Permalink
improve ndk build
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Oct 10, 2024
1 parent ef50efc commit 3ae0b48
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/k/keystone/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ package("keystone")
table.insert(configs, "-DKEYSTONE_BUILD_STATIC_RUNTIME=" .. (package:has_runtime("MT", "MTd") and "ON" or "OFF"))
elseif package:is_plat("android") then
-- support for ndk >= r27
table.insert(configs, "-DCMAKE_POLICY_DEFAULT_CMP0057=NEW")
end
io.insert("CMakeLists.txt", 1, [[if (POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
endif()]])
end
io.replace("CMakeLists.txt", "add_subdirectory(suite/fuzz)", "", {plain = true})
import("package.tools.cmake").install(package, configs)
os.cp("include", package:installdir())
end)
Expand Down

0 comments on commit 3ae0b48

Please sign in to comment.