diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2025-11-11 09:57:47 +0100 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2025-11-11 11:07:09 +0100 |
| commit | 541fa28ad2f61cda0170c73eb740b77f20b9b8cc (patch) | |
| tree | d9d869d954c9d93cff482cba7cfcff512a72a9cb /tools/cross_compile_android/main.py | |
| parent | 0fbdc6362523d724034b95304fcb3810cf3090f9 (diff) | |
PySide6-Android: Use ANDROID_API_VERSION for SDK jar location
- For Java packaging, use ANDROID_API_VERSION environment variable if
set, otherwise fall back to CMAKE_ANDROID_API. This enables supporting
the CI which sets ANDROID_API_VERSION to 36 and also local builds
using the latest API level supported by the NDK.
- Added a small comment as to why Qt for Python builds can use API
level of 35 as opposed to Qt which uses 28.
Pick-to: 6.10 6.10.1
Change-Id: Id5cb2d5c6ab235b365c26da79b5e65bbe30c81e9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tools/cross_compile_android/main.py')
| -rw-r--r-- | tools/cross_compile_android/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cross_compile_android/main.py b/tools/cross_compile_android/main.py index 6636d080f..e37ab5117 100644 --- a/tools/cross_compile_android/main.py +++ b/tools/cross_compile_android/main.py @@ -104,6 +104,9 @@ if __name__ == "__main__": parser.add_argument("-v", "--verbose", help="run in verbose mode", action="store_const", dest="loglevel", const=logging.INFO) + # As opposed to Qt, Qt for Python does not require API level 28 because it can be built with a + # higher API for toolchain compatibility, while still remaining compatible with Qt's runtime + # minimum. parser.add_argument("--api-level", type=str, default="35", help="Minimum Android API level to use") parser.add_argument("--ndk-path", type=str, help="Path to Android NDK (Preferred r26b)") |
