mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-11-04 10:13:59 +00:00
chore: configure UniFFI to generate bindings from host library on Linux arm64
This commit is contained in:
parent
2f7eb742cf
commit
d4d8ebd853
@ -550,6 +550,12 @@ run {
|
||||
val isLinuxArm64Host = System.getProperty("os.name").lowercase().contains("linux") &&
|
||||
System.getProperty("os.arch").lowercase() in setOf("aarch64", "arm64")
|
||||
if (isLinuxArm64Host) {
|
||||
// Gobley generates the UniFFI bindings from the first Android build's library by default; use the host's.
|
||||
uniffi {
|
||||
generateFromLibrary {
|
||||
build = GobleyHost.current.rustTarget
|
||||
}
|
||||
}
|
||||
tasks.matching { it.name.startsWith("cargoBuildAndroid") || it.name.startsWith("rustUpTargetAddAndroid") }
|
||||
.configureEach { enabled = false }
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user