android: android release binary should only contain a shared SDL3 library

This commit is contained in:
Anonymous Maarten
2024-06-10 16:41:17 +02:00
parent dd0bb25f66
commit 657c0135b1
2 changed files with 9 additions and 22 deletions

View File

@@ -90,6 +90,8 @@ The following components are available, to be used as an argument of `find_packa
| SDL3 | The SDL3 library, available through the `SDL3::SDL3` target. This is an alias of `SDL3::SDL3-shared` or `SDL3::SDL3-static`. This component is always available. |
| Headers | The SDL3 headers, available through the `SDL3::Headers` target. This component is always available. |
SDL's CMake support guarantees a `SDL3::SDL3` target.
Neither `SDL3::SDL3-shared` nor `SDL3::SDL3-static` are guaranteed to exist.
### Using a vendored SDL
@@ -337,7 +339,7 @@ endif()
# 2. Try using a vendored SDL library
if(NOT SDL3_FOUND AND EXISTS "${CMAKE_CURRENT_LIST_DIR}/SDL/CMakeLists.txt")
add_subdirectory(SDL)
add_subdirectory(SDL EXCLUDE_FROM_ALL)
message(STATUS "Using SDL3 via add_subdirectory")
set(SDL3_FOUND TRUE)
endif()