mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-22 23:35:39 +00:00
android: android release binary should only contain a shared SDL3 library
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user