mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +00:00
LibCore: Add support for compiling for Android with API Version >= 30
Most changes are around user and group management, which are exposed in the Android NDK differently than other Unices. We require version 30 for memfd_create, version 28 for posix_spawn, and so on. It's possible a shim for memfd_create could be used, but since Google is mandating new apps use API level 30 as of Nov 2022, this seems suitable.
This commit is contained in:
parent
3b15addbc8
commit
d84fc60f96
5 changed files with 16 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
|||
set(SOURCES
|
||||
Account.cpp
|
||||
AnonymousBuffer.cpp
|
||||
ArgsParser.cpp
|
||||
ConfigFile.cpp
|
||||
|
@ -38,6 +37,9 @@ set(SOURCES
|
|||
UDPServer.cpp
|
||||
Version.cpp
|
||||
)
|
||||
if (NOT ANDROID)
|
||||
list(APPEND SOURCES Account.cpp)
|
||||
endif()
|
||||
|
||||
serenity_lib(LibCore core)
|
||||
target_link_libraries(LibCore LibC LibCrypt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue