fix sdl android build (#4976)

* fix sdl android build

* Update xmake.lua
pull/4977/head
c8ef 3 months ago committed by GitHub
parent 84cf8f96ce
commit cf7f6f78b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      packages/l/libsdl/xmake.lua

@ -208,6 +208,7 @@ package("libsdl")
end) end)
on_install(function (package) on_install(function (package)
io.replace("src/sensor/android/SDL_androidsensor.c", "ALooper_pollAll", "ALooper_pollOnce", {plain = true})
local configs = {} local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) 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")) table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

Loading…
Cancel
Save