From 30f41c02aec763d32e62351452da9ef582bc3472 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 6 Mar 2026 13:30:59 -0800 Subject: Move contrib libraries to contrib repo --- .../android-project/app/jni/src/CMakeLists.txt | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 contrib/SDL-3.2.8/android-project/app/jni/src/CMakeLists.txt (limited to 'contrib/SDL-3.2.8/android-project/app/jni/src/CMakeLists.txt') diff --git a/contrib/SDL-3.2.8/android-project/app/jni/src/CMakeLists.txt b/contrib/SDL-3.2.8/android-project/app/jni/src/CMakeLists.txt deleted file mode 100644 index 41a82f2..0000000 --- a/contrib/SDL-3.2.8/android-project/app/jni/src/CMakeLists.txt +++ /dev/null @@ -1,29 +0,0 @@ -cmake_minimum_required(VERSION 3.6) - -project(my_app) - -if(NOT TARGET SDL3::SDL3) - find_package(SDL3 CONFIG) -endif() - -if(NOT TARGET SDL3::SDL3) - find_library(SDL3_LIBRARY NAMES "SDL3") - find_path(SDL3_INCLUDE_DIR NAMES "SDL3/SDL.h") - add_library(SDL3::SDL3 UNKNOWN IMPORTED) - set_property(TARGET SDL3::SDL3 PROPERTY IMPORTED_LOCATION "${SDL3_LIBRARY}") - set_property(TARGET SDL3::SDL3 PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${SDL3_INCLUDE_DIR}") -endif() - -if(NOT TARGET SDL3::SDL3) - message(FATAL_ERROR "Cannot find SDL3. - -Possible ways to fix this: -- Use a SDL3 Android aar archive, and configure gradle to use it: prefab is required. -- Add add_subdirectory(path/to/SDL) to your CMake script, and make sure a vendored SDL is present there. -") -endif() - -add_library(main SHARED - YourSourceHere.c -) -target_link_libraries(main PRIVATE SDL3::SDL3) -- cgit v1.2.3