diff options
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.in | 38 |
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 | |||
| 4 | set(PACKAGE_VERSION "@<@PROJECT_VERSION@>@") | ||
| 5 | |||
| 6 | if(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() | ||
| 15 | else() | ||
| 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() | ||
| 24 | endif() | ||
| 25 | |||
| 26 | # if the using project doesn't have CMAKE_SIZEOF_VOID_P set, fail. | ||
| 27 | if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "") | ||
| 28 | set(PACKAGE_VERSION_UNSUITABLE TRUE) | ||
| 29 | endif() | ||
| 30 | |||
| 31 | include("${CMAKE_CURRENT_LIST_DIR}/sdlcpu.cmake") | ||
| 32 | SDL_DetectTargetCPUArchitectures(_detected_archs) | ||
| 33 | |||
| 34 | # check that the installed version has a compatible architecture as the one which is currently searching: | ||
| 35 | if(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) | ||
| 38 | endif() | ||
