From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- .../SDL-3.2.20/android-project/app/build.gradle | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/contrib/SDL-3.2.20/android-project/app/build.gradle (limited to 'src/contrib/SDL-3.2.20/android-project/app/build.gradle') diff --git a/src/contrib/SDL-3.2.20/android-project/app/build.gradle b/src/contrib/SDL-3.2.20/android-project/app/build.gradle new file mode 100644 index 0000000..f44cf26 --- /dev/null +++ b/src/contrib/SDL-3.2.20/android-project/app/build.gradle @@ -0,0 +1,62 @@ +plugins { + id 'com.android.application' +} + +def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE'); + +android { + namespace = "org.libsdl.app" + compileSdkVersion 35 + defaultConfig { + minSdkVersion 21 + targetSdkVersion 35 + versionCode 1 + versionName "1.0" + externalNativeBuild { + ndkBuild { + arguments "APP_PLATFORM=android-21" + // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' + abiFilters 'arm64-v8a' + } + cmake { + arguments "-DANDROID_PLATFORM=android-21", "-DANDROID_STL=c++_static", "-DAPP_SUPPORT_FLEXIBLE_PAGE_SIZES=true" + // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' + abiFilters 'arm64-v8a' + } + } + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } + applicationVariants.all { variant -> + tasks["merge${variant.name.capitalize()}Assets"] + .dependsOn("externalNativeBuild${variant.name.capitalize()}") + } + if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) { + sourceSets.main { + jniLibs.srcDir 'libs' + } + externalNativeBuild { + if (buildWithCMake) { + cmake { + path 'jni/CMakeLists.txt' + } + } else { + ndkBuild { + path 'jni/Android.mk' + } + } + } + + } + lint { + abortOnError = false + } +} + +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') +} -- cgit v1.2.3