summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/build-scripts/pkg-support/android/aar/cmake
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
committer3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
commit5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch)
tree8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/build-scripts/pkg-support/android/aar/cmake
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/build-scripts/pkg-support/android/aar/cmake')
-rw-r--r--contrib/SDL-3.2.8/build-scripts/pkg-support/android/aar/cmake/SDL3ConfigVersion.cmake.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/android/aar/cmake/SDL3ConfigVersion.cmake.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/android/aar/cmake/SDL3ConfigVersion.cmake.in
new file mode 100644
index 0000000..3268da7
--- /dev/null
+++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/android/aar/cmake/SDL3ConfigVersion.cmake.in
@@ -0,0 +1,38 @@
1# @<@PROJECT_NAME@>@ CMake version configuration file:
2# This file is meant to be placed in a lib/cmake/@<@PROJECT_NAME@>@ subfolder of a reconstructed Android SDL3 SDK
3
4set(PACKAGE_VERSION "@<@PROJECT_VERSION@>@")
5
6if(PACKAGE_FIND_VERSION_RANGE)
7 # Package version must be in the requested version range
8 if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN)
9 OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX)
10 OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX)))
11 set(PACKAGE_VERSION_COMPATIBLE FALSE)
12 else()
13 set(PACKAGE_VERSION_COMPATIBLE TRUE)
14 endif()
15else()
16 if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
17 set(PACKAGE_VERSION_COMPATIBLE FALSE)
18 else()
19 set(PACKAGE_VERSION_COMPATIBLE TRUE)
20 if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
21 set(PACKAGE_VERSION_EXACT TRUE)
22 endif()
23 endif()
24endif()
25
26# if the using project doesn't have CMAKE_SIZEOF_VOID_P set, fail.
27if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "")
28 set(PACKAGE_VERSION_UNSUITABLE TRUE)
29endif()
30
31include("${CMAKE_CURRENT_LIST_DIR}/sdlcpu.cmake")
32SDL_DetectTargetCPUArchitectures(_detected_archs)
33
34# check that the installed version has a compatible architecture as the one which is currently searching:
35if(NOT(SDL_CPU_X86 OR SDL_CPU_X64 OR SDL_CPU_ARM32 OR SDL_CPU_ARM64))
36 set(PACKAGE_VERSION "${PACKAGE_VERSION} (X86,X64,ARM32,ARM64)")
37 set(PACKAGE_VERSION_UNSUITABLE TRUE)
38endif()