소스 검색

fix sdl android build (#4976)

* fix sdl android build

* Update xmake.lua
c8ef 1 년 전
부모
커밋
cf7f6f78b1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/l/libsdl/xmake.lua

+ 1 - 0
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"))