Build: Support building with older ffmpeg precompiled libraries

For more convenient bisecting
This commit is contained in:
Brecht Van Lommel
2024-06-17 11:50:20 +02:00
parent 832918f9d8
commit cddcef6500

View File

@@ -313,15 +313,15 @@ if(WITH_CODEC_FFMPEG)
vorbis vorbisenc vorbisfile ogg
vpx
x264
x265
)
if(DEFINED LIBDIR)
if(EXISTS ${LIBDIR}/ffmpeg/lib/libaom.a)
list(APPEND FFMPEG_FIND_COMPONENTS aom)
endif()
if(EXISTS ${LIBDIR}/ffmpeg/lib/libxvidcore.a)
list(APPEND FFMPEG_FIND_COMPONENTS xvidcore)
endif()
if(EXISTS ${LIBDIR}/ffmpeg/lib/libx265.a)
list(APPEND FFMPEG_FIND_COMPONENTS x265)
endif()
if(EXISTS ${LIBDIR}/ffmpeg/lib/libaom.a)
list(APPEND FFMPEG_FIND_COMPONENTS aom)
endif()
if(EXISTS ${LIBDIR}/ffmpeg/lib/libxvidcore.a)
list(APPEND FFMPEG_FIND_COMPONENTS xvidcore)
endif()
elseif(FFMPEG)
# Old cache variable used for root dir, convert to new standard.