From cf7f6f78b1ba87038dd51cea86a1294727785ed4 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 18 Aug 2024 16:25:44 +0800 Subject: [PATCH] fix sdl android build (#4976) * fix sdl android build * Update xmake.lua --- packages/l/libsdl/xmake.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/l/libsdl/xmake.lua b/packages/l/libsdl/xmake.lua index fff3e6af7..1ccc6fb2b 100644 --- a/packages/l/libsdl/xmake.lua +++ b/packages/l/libsdl/xmake.lua @@ -208,6 +208,7 @@ package("libsdl") end) on_install(function (package) + io.replace("src/sensor/android/SDL_androidsensor.c", "ALooper_pollAll", "ALooper_pollOnce", {plain = true}) local configs = {} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))