mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
1b267abf36
This allows us to process container formats in future commits.
14 lines
419 B
CMake
14 lines
419 B
CMake
include_guard()
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(AVCODEC IMPORTED_TARGET libavcodec)
|
|
pkg_check_modules(AVFORMAT IMPORTED_TARGET libavformat)
|
|
|
|
if (AVCODEC_FOUND AND AVFORMAT_FOUND)
|
|
set(HAS_FFMPEG ON CACHE BOOL "" FORCE)
|
|
add_compile_definitions(USE_FFMPEG=1)
|
|
if (AVCODEC_VERSION VERSION_GREATER_EQUAL "59.24.100")
|
|
add_compile_definitions(USE_FFMPEG_CH_LAYOUT=1)
|
|
endif()
|
|
endif()
|