[Android] buildsystem: use cmake to detect packages with meson
Steve Lhomme
git at videolan.org
Mon Jul 21 16:51:10 UTC 2025
vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul 4 16:49:06 2025 +0200| [3a864dae1f3d322819578c20c89da9c27cf14ca7] | committer: Duncan McNamara
buildsystem: use cmake to detect packages with meson
If cmake is in the path, let's use it too.
> https://code.videolan.org/videolan/vlc-android/commit/3a864dae1f3d322819578c20c89da9c27cf14ca7
---
buildsystem/compile-medialibrary.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/buildsystem/compile-medialibrary.sh b/buildsystem/compile-medialibrary.sh
index 3e8376f714..8bd334494f 100755
--- a/buildsystem/compile-medialibrary.sh
+++ b/buildsystem/compile-medialibrary.sh
@@ -168,6 +168,9 @@ printf 'cpp = '"'"'%s'"'"'\n' "${CLANG_PREFIX}${ANDROID_API}-clang++" >&3
printf 'ar = '"'"'llvm-ar'"'"'\n' >&3
printf 'strip = '"'"'llvm-strip'"'"'\n' >&3
printf 'pkgconfig = '"'"'pkg-config'"'"'\n' >&3
+if [ $(command -v cmake) >/dev/null 2>&1 ]; then
+ printf 'cmake = '"'"'%s'"'"'\n' "$(command -v cmake)" >&3
+fi
printf '\n[host_machine]\n' >&3
printf 'system = '"'"'android'"'"'\n' >&3
More information about the Android
mailing list