From 50f7365696b4757cf7617666a9c7f63f16e746b3 Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Wed, 31 Jul 2024 11:37:10 +0200 Subject: [PATCH] Add Android libs when static linking Signed-off-by: Uilian Ries --- recipes/ffmpeg/all/conanfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/ffmpeg/all/conanfile.py b/recipes/ffmpeg/all/conanfile.py index 75f076c824a67a..9530d0468150f1 100644 --- a/recipes/ffmpeg/all/conanfile.py +++ b/recipes/ffmpeg/all/conanfile.py @@ -835,6 +835,8 @@ def _add_component(name, dependencies): avdevice.frameworks.append("AVFoundation") if self.options.get_safe("with_audiotoolbox"): avdevice.frameworks.append("CoreAudio") + if self.settings.os == "Android" and not self.options.shared: + avdevice.system_libs.extend(["android", "camera2ndk", "mediandk"]) if self.options.avcodec: if self.options.with_zlib: