Skip to content

Commit 871d87f

Browse files
committed
Ensure gradle uses custom cross-build dir.
1 parent 1a0edb1 commit 871d87f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Android/testbed/app/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ plugins {
88

99
val ANDROID_DIR = file("../..")
1010
val PYTHON_DIR = ANDROID_DIR.parentFile!!
11-
val PYTHON_CROSS_DIR = file("$PYTHON_DIR/cross-build")
11+
val PYTHON_CROSS_DIR = file(
12+
"$PYTHON_DIR/" + (System.getenv("CROSS_BUILD_DIR") ?: "cross-build")
13+
)
1214
val inSourceTree = (
1315
ANDROID_DIR.name == "Android" && file("$PYTHON_DIR/pyconfig.h.in").exists()
1416
)

0 commit comments

Comments
 (0)