Skip to content

Commit

Permalink
patch android r27 cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Sep 20, 2024
1 parent 3533958 commit a263245
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/p/portaudio/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ package("portaudio")
on_install("!iphoneos", function (package)
io.replace("CMakeLists.txt", [["${ALSA_LIBRARIES}"]], "ALSA::ALSA", {plain = true})

local configs = {"-DPA_BUILD_TESTS=OFF", "-DPA_BUILD_EXAMPLES=OFF"}
local configs = {
"-DPA_BUILD_TESTS=OFF",
"-DPA_BUILD_EXAMPLES=OFF",
"-DCMAKE_POLICY_DEFAULT_CMP0057=NEW",
}
if package:is_debug() then
table.insert(configs, "-DCMAKE_BUILD_TYPE=Debug")
table.insert(configs, "-DPA_ENABLE_DEBUG_OUTPUT=ON")
Expand Down

0 comments on commit a263245

Please sign in to comment.