Skip to content

Commit 62eaf67

Browse files
committed
Fix merge conflicts
Signed-off-by: Uilian Ries <[email protected]>
1 parent 6837af9 commit 62eaf67

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

recipes/ffmpeg/all/conanfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ def config_options(self):
256256
del self.options.with_avfoundation
257257
if not self._version_supports_libsvtav1:
258258
self.options.rm_safe("with_libsvtav1")
259+
if self.settings.os == "Android":
260+
del self.options.with_libfdk_aac
261+
# FIXME: https://github.com/conan-io/conan-center-index/issues/23726
262+
self.options.rm_safe("with_libdav1d")
259263

260264
def configure(self):
261265
if self.options.shared:
@@ -280,7 +284,7 @@ def requirements(self):
280284
if self.options.with_openjpeg:
281285
self.requires("openjpeg/2.5.2")
282286
if self.options.with_openh264:
283-
self.requires("openh264/2.3.1")
287+
self.requires("openh264/2.4.1")
284288
if self.options.with_vorbis:
285289
self.requires("vorbis/1.3.7")
286290
if self.options.with_opus:
@@ -297,7 +301,7 @@ def requirements(self):
297301
self.requires("libvpx/1.13.1")
298302
if self.options.with_libmp3lame:
299303
self.requires("libmp3lame/3.100")
300-
if self.options.with_libfdk_aac:
304+
if self.options.get_safe("with_libfdk_aac"):
301305
self.requires("libfdk_aac/2.0.3")
302306
if self.options.with_libwebp:
303307
self.requires("libwebp/1.3.2")
@@ -479,7 +483,7 @@ def opt_append_disable_if_set(args, what, v):
479483
opt_enable_disable("libx265", self.options.with_libx265),
480484
opt_enable_disable("libvpx", self.options.with_libvpx),
481485
opt_enable_disable("libmp3lame", self.options.with_libmp3lame),
482-
opt_enable_disable("libfdk-aac", self.options.with_libfdk_aac),
486+
opt_enable_disable("libfdk-aac", self.options.get_safe("with_libfdk_aac")),
483487
opt_enable_disable("libwebp", self.options.with_libwebp),
484488
opt_enable_disable("libaom", self.options.with_libaom),
485489
opt_enable_disable("openssl", self.options.with_ssl == "openssl"),
@@ -502,7 +506,7 @@ def opt_append_disable_if_set(args, what, v):
502506
"--disable-cuda", # FIXME: CUDA support
503507
"--disable-cuvid", # FIXME: CUVID support
504508
# Licenses
505-
opt_enable_disable("nonfree", self.options.with_libfdk_aac or (self.options.with_ssl and (
509+
opt_enable_disable("nonfree", self.options.get_safe("with_libfdk_aac") or (self.options.with_ssl and (
506510
self.options.with_libx264 or self.options.with_libx265 or self.options.postproc))),
507511
opt_enable_disable("gpl", self.options.with_libx264 or self.options.with_libx265 or self.options.postproc)
508512
]
@@ -818,6 +822,8 @@ def _add_component(name, dependencies):
818822
avdevice.frameworks.append("AVFoundation")
819823
if self.options.get_safe("with_audiotoolbox"):
820824
avdevice.frameworks.append("CoreAudio")
825+
if self.settings.os == "Android" and not self.options.shared:
826+
avdevice.system_libs.extend(["android", "camera2ndk", "mediandk"])
821827

822828
if self.options.avcodec:
823829
if self.options.with_zlib:
@@ -842,7 +848,7 @@ def _add_component(name, dependencies):
842848
avcodec.requires.append("libvpx::libvpx")
843849
if self.options.with_libmp3lame:
844850
avcodec.requires.append("libmp3lame::libmp3lame")
845-
if self.options.with_libfdk_aac:
851+
if self.options.get_safe("with_libfdk_aac"):
846852
avcodec.requires.append("libfdk_aac::libfdk_aac")
847853
if self.options.with_libwebp:
848854
avcodec.requires.append("libwebp::libwebp")

0 commit comments

Comments
 (0)