Skip to content

Commit ae7c6f7

Browse files
committed
Disable Python bindings for Android build
Add -DBUILD_PYTHON_BINDINGS=OFF to the Android cmake invocation in recipes/flet-libgdal/build.sh so Python bindings are not built when CROSS_VENV_SDK==android. This prevents attempting to compile Python extensions in the Android cross-compile environment.
1 parent d88482c commit ae7c6f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipes/flet-libgdal/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ if [ $CROSS_VENV_SDK == "android" ]; then
2727
-DGDAL_USE_CURL=OFF \
2828
-DGDAL_USE_LIBXML2=OFF \
2929
-DBUILD_APPS=OFF \
30-
-DBUILD_TESTING=OFF
30+
-DBUILD_TESTING=OFF \
31+
-DBUILD_PYTHON_BINDINGS=OFF
3132
else
3233
cmake .. \
3334
-DCMAKE_SYSTEM_NAME=iOS \

0 commit comments

Comments
 (0)