From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- contrib/SDL-3.2.8/android-project/app/build.gradle | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 contrib/SDL-3.2.8/android-project/app/build.gradle (limited to 'contrib/SDL-3.2.8/android-project/app/build.gradle') diff --git a/contrib/SDL-3.2.8/android-project/app/build.gradle b/contrib/SDL-3.2.8/android-project/app/build.gradle new file mode 100644 index 0000000..8946de6 --- /dev/null +++ b/contrib/SDL-3.2.8/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-19" + // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' + abiFilters 'arm64-v8a' + } + cmake { + arguments "-DANDROID_PLATFORM=android-19", "-DANDROID_STL=c++_static" + // 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