Remove support for building a SDL3 library from gradle

This commit is contained in:
Anonymous Maarten 2024-08-01 17:46:55 +02:00 committed by Anonymous Maarten
parent 349540f73f
commit 0c5bb532c3
1 changed files with 5 additions and 23 deletions

View File

@ -1,17 +1,11 @@
def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE');
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
def buildAsApplication = !buildAsLibrary
if (buildAsApplication) {
apply plugin: 'com.android.application'
}
else {
apply plugin: 'com.android.library'
plugins {
id 'com.android.application'
}
def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE');
android {
if (buildAsApplication) {
namespace "org.libsdl.app"
}
namespace "org.libsdl.app"
compileSdkVersion 34
defaultConfig {
minSdkVersion 19
@ -61,18 +55,6 @@ android {
lint {
abortOnError false
}
if (buildAsLibrary) {
libraryVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith(".aar")) {
def fileName = "org.libsdl.app.aar";
output.outputFile = new File(outputFile.parent, fileName);
}
}
}
}
}
dependencies {