mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
android: Support custom build profiles (#44182)
Pass the build directory to gradle via an environment variable, to support custom profiles. Building the custom profiles already works, but follow-up commands expect the artifact at the location of the profile. This allows switching the android release build to production (in a follow-up PR). Testing: We don't run any runtime tests for android in CI --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7b6f2e5a39
commit
2cb556a87a
@@ -23,7 +23,10 @@ fun Project.getNativeTargetDir(debug: Boolean, arch: String): String {
|
||||
}
|
||||
|
||||
fun getSubTargetDir(debug: Boolean, arch: String): String {
|
||||
return getRustTarget(arch) + "/" + if (debug) "debug" else "release"
|
||||
val buildTypeDirectory = System.getenv("SERVO_TARGET_DIR")
|
||||
?.let { File(it).name }
|
||||
?: if (debug) "debug" else "release"
|
||||
return getRustTarget(arch) + "/" + buildTypeDirectory
|
||||
}
|
||||
|
||||
fun Project.getJniLibsPath(debug: Boolean, arch: String): String =
|
||||
|
||||
Reference in New Issue
Block a user