Remove support for building a SDL3 library from gradle
This commit is contained in:
parent
349540f73f
commit
0c5bb532c3
1 changed files with 5 additions and 23 deletions
|
@ -1,17 +1,11 @@
|
||||||
def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE');
|
plugins {
|
||||||
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
|
id 'com.android.application'
|
||||||
def buildAsApplication = !buildAsLibrary
|
|
||||||
if (buildAsApplication) {
|
|
||||||
apply plugin: 'com.android.application'
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
apply plugin: 'com.android.library'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE');
|
||||||
|
|
||||||
android {
|
android {
|
||||||
if (buildAsApplication) {
|
namespace "org.libsdl.app"
|
||||||
namespace "org.libsdl.app"
|
|
||||||
}
|
|
||||||
compileSdkVersion 34
|
compileSdkVersion 34
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 19
|
minSdkVersion 19
|
||||||
|
@ -61,18 +55,6 @@ android {
|
||||||
lint {
|
lint {
|
||||||
abortOnError false
|
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 {
|
dependencies {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue