Build: Support building with older ffmpeg precompiled libraries
For more convenient bisecting
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user