From 9456359f329a3ae8e7564fbce7cedd8474294cd3 Mon Sep 17 00:00:00 2001 From: pheonixfirewingz Date: Wed, 9 Oct 2024 03:40:48 +0100 Subject: [PATCH] LibMedia: Disable ffmpeg on windows Also don't try to find_package the library on Android while we're here. --- Userland/Libraries/LibMedia/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibMedia/CMakeLists.txt b/Userland/Libraries/LibMedia/CMakeLists.txt index 5227f2cc34d..b20e0640f91 100644 --- a/Userland/Libraries/LibMedia/CMakeLists.txt +++ b/Userland/Libraries/LibMedia/CMakeLists.txt @@ -1,5 +1,7 @@ -include(ffmpeg) -include(pulseaudio) +if (NOT ANDROID AND NOT WIN32) + include(ffmpeg) + include(pulseaudio) +endif() set(SOURCES Audio/Loader.cpp @@ -17,14 +19,14 @@ set(SOURCES serenity_lib(LibMedia media) target_link_libraries(LibMedia PRIVATE LibCore LibCrypto LibRIFF LibIPC LibGfx LibThreading LibUnicode) -if (NOT ANDROID) +if (NOT ANDROID AND NOT WIN32) target_sources(LibMedia PRIVATE Audio/FFmpegLoader.cpp FFmpeg/FFmpegVideoDecoder.cpp ) target_link_libraries(LibMedia PRIVATE PkgConfig::AVCODEC PkgConfig::AVFORMAT PkgConfig::AVUTIL) else() - # FIXME: Need to figure out how to build or replace ffmpeg libs on Android + # FIXME: Need to figure out how to build or replace ffmpeg libs on Android and Windows target_sources(LibMedia PRIVATE FFmpeg/FFmpegVideoDecoderStub.cpp) endif()