mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
LibMedia: Disable ffmpeg on windows
Also don't try to find_package the library on Android while we're here.
This commit is contained in:
parent
4d50a16c9b
commit
9456359f32
Notes:
github-actions[bot]
2024-10-11 03:50:16 +00:00
Author: https://github.com/pheonixfirewingz Commit: https://github.com/LadybirdBrowser/ladybird/commit/9456359f329 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1695 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/nico Reviewed-by: https://github.com/vitalyster
1 changed files with 6 additions and 4 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue