mirror of
https://github.com/ruffle-rs/ruffle-android.git
synced 2024-11-26 23:20:22 +00:00
Allow specifying which cargo-ndk targets are built, inside local.properties
This commit is contained in:
parent
3b4bd0db6f
commit
918df5fc78
@ -1,6 +1,9 @@
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
|
||||
import com.github.willir.rust.CargoNdkBuildTask
|
||||
import org.jetbrains.kotlin.konan.properties.hasProperty
|
||||
import org.jetbrains.kotlin.konan.properties.propertyList
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.androidApplication)
|
||||
@ -135,4 +138,10 @@ cargoNdk {
|
||||
module = "."
|
||||
apiLevel = 26
|
||||
buildType = "release"
|
||||
|
||||
val localProperties = gradleLocalProperties(rootDir, providers)
|
||||
|
||||
if (localProperties.hasProperty("ndkTargets")) {
|
||||
targets = ArrayList(localProperties.propertyList("ndkTargets"))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user