feat: promote linux native audio path
This commit is contained in:
@@ -352,7 +352,22 @@ fun registerCargoNdkBuildTask(profile: String): TaskProvider<*> {
|
||||
).firstOrNull { File(it).resolve("cargo").exists() }
|
||||
val rustupHome = System.getenv("RUSTUP_HOME") ?: "$homeDir/.rustup"
|
||||
val cargoHome = System.getenv("CARGO_HOME") ?: "$homeDir/.cargo"
|
||||
val rustupToolchain = System.getenv("RUSTUP_TOOLCHAIN") ?: "stable-aarch64-apple-darwin"
|
||||
val hostArch = System.getProperty("os.arch").lowercase()
|
||||
val defaultRustupToolchain = when {
|
||||
org.gradle.internal.os.OperatingSystem.current().isMacOsX && hostArch.contains("aarch64") ->
|
||||
"stable-aarch64-apple-darwin"
|
||||
org.gradle.internal.os.OperatingSystem.current().isMacOsX ->
|
||||
"stable-x86_64-apple-darwin"
|
||||
org.gradle.internal.os.OperatingSystem.current().isWindows && hostArch.contains("aarch64") ->
|
||||
"stable-aarch64-pc-windows-msvc"
|
||||
org.gradle.internal.os.OperatingSystem.current().isWindows ->
|
||||
"stable-x86_64-pc-windows-msvc"
|
||||
hostArch.contains("aarch64") || hostArch.contains("arm64") ->
|
||||
"stable-aarch64-unknown-linux-gnu"
|
||||
else ->
|
||||
"stable-x86_64-unknown-linux-gnu"
|
||||
}
|
||||
val rustupToolchain = System.getenv("RUSTUP_TOOLCHAIN") ?: defaultRustupToolchain
|
||||
|
||||
// SDD-118 item 13 (corrected): per-ABI Exec sub-tasks. Each runs an
|
||||
// isolated `cargo ndk -t <abi> ... -- build ...` so ANDROID_ABI is set
|
||||
|
||||
Reference in New Issue
Block a user