Merge pull request #217 from BtbN/cmake_changes
CMake changes for new real ffmpeg in debian experimental
This commit is contained in:
commit
254b50f31f
@ -25,17 +25,19 @@ else()
|
||||
find_path(Jansson_INCLUDE_DIR
|
||||
NAMES jansson.h
|
||||
HINTS
|
||||
${_JANSSON_INCLUDE_DIRS}
|
||||
ENV JanssonPath
|
||||
ENV ${JANSSON_PATH_ARCH}
|
||||
${_JANSSON_INCLUDE_DIRS}
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include)
|
||||
|
||||
find_library(Jansson_LIB
|
||||
NAMES jansson libjansson
|
||||
NAMES ${_JANSSON_LIBRARIES} jansson libjansson
|
||||
HINTS
|
||||
${Jansson_INCLUDE_DIR}/../lib
|
||||
${Jansson_INCLUDE_DIR}/lib${_lib_suffix}
|
||||
${_JANSSON_LIBRARY_DIRS}
|
||||
"${Jansson_INCLUDE_DIR}/../lib"
|
||||
"${Jansson_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
if(JANSSON_VERSION)
|
||||
|
@ -28,23 +28,25 @@ else()
|
||||
find_path(FFMPEG_INCLUDE_DIR
|
||||
NAMES libavcodec/avcodec.h
|
||||
HINTS
|
||||
${_AVCODEC_INCLUDE_DIRS}
|
||||
"${CMAKE_SOURCE_DIR}/additional_install_files/include"
|
||||
"$ENV{obsAdditionalInstallFiles}/include"
|
||||
ENV FFmpegPath
|
||||
ENV ${FFMPEG_PATH_ARCH}
|
||||
"${_AVCODEC_INCLUDE_DIRS}"
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include
|
||||
PATH_SUFFIXES ffmpeg libav)
|
||||
|
||||
find_library(AVCODEC_LIB
|
||||
NAMES avcodec
|
||||
NAMES ${_AVCODEC_LIBRARIES} avcodec-ffmpeg avcodec
|
||||
HINTS
|
||||
${_AVCODEC_LIBRARY_DIRS}
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/../libs${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
"${_AVCODEC_LIBRARY_DIRS}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
set(LIBAVCODEC_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIR} CACHE PATH "Libavcodec include dir")
|
||||
|
@ -24,23 +24,25 @@ else()
|
||||
find_path(FFMPEG_INCLUDE_DIR
|
||||
NAMES libavformat/avformat.h
|
||||
HINTS
|
||||
${_AVFORMAT_INCLUDE_DIRS}
|
||||
"${CMAKE_SOURCE_DIR}/additional_install_files/include"
|
||||
"$ENV{obsAdditionalInstallFiles}/include"
|
||||
ENV FFmpegPath
|
||||
ENV ${FFMPEG_PATH_ARCH}
|
||||
"${_AVFORMAT_INCLUDE_DIRS}"
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include
|
||||
PATH_SUFFIXES ffmpeg libav)
|
||||
|
||||
find_library(AVFORMAT_LIB
|
||||
NAMES avformat
|
||||
NAMES ${_AVFORMAT_LIBRARIES} avformat-ffmpeg avformat
|
||||
HINTS
|
||||
${_AVFORMAT_LIBRARY_DIRS}
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/../libs${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
"${_AVFORMAT_LIBRARY_DIRS}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
set(LIBAVFORMAT_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIR} CACHE PATH "Libavformat include dir")
|
||||
|
@ -24,23 +24,25 @@ else()
|
||||
find_path(FFMPEG_INCLUDE_DIR
|
||||
NAMES libavutil/avutil.h
|
||||
HINTS
|
||||
${_AVUTIL_INCLUDE_DIRS}
|
||||
"${CMAKE_SOURCE_DIR}/additional_install_files/include"
|
||||
"$ENV{obsAdditionalInstallFiles}/include"
|
||||
ENV FFmpegPath
|
||||
ENV ${FFMPEG_PATH_ARCH}
|
||||
"${_AVUTIL_INCLUDE_DIRS}"
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include
|
||||
PATH_SUFFIXES ffmpeg libav)
|
||||
|
||||
find_library(AVUTIL_LIB
|
||||
NAMES avutil
|
||||
NAMES ${_AVUTIL_LIBRARIES} avutil-ffmpeg avutil
|
||||
HINTS
|
||||
${_AVUTIL_LIBRARY_DIRS}
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/../libs${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
"${_AVUTIL_LIBRARY_DIRS}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
set(LIBAVUTIL_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIR} CACHE PATH "Libavutil include dir")
|
||||
|
@ -29,24 +29,26 @@ else()
|
||||
find_path(Libfdk_INCLUDE_DIR
|
||||
NAMES fdk-aac/aacenc_lib.h
|
||||
HINTS
|
||||
${_LIBFDK_INCLUDE_DIRS}
|
||||
"${CMAKE_SOURCE_DIR}/additional_install_files/include"
|
||||
"$ENV{obsAdditionalInstallFiles}/include"
|
||||
ENV LibfdkPath
|
||||
ENV FFmpegPath
|
||||
ENV ${LIBFDK_PATH_ARCH}
|
||||
ENV ${FFMPEG_PATH_ARCH}
|
||||
"${_LIBFDK_INCLUDE_DIRS}"
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include)
|
||||
|
||||
find_library(Libfdk_LIB
|
||||
NAMES fdk-aac libfdk-aac
|
||||
NAMES ${_LIBFDK_LIBRARIES} fdk-aac libfdk-aac
|
||||
HINTS
|
||||
${_LIBFDK_LIBRARY_DIRS}
|
||||
"${Libfdk_INCLUDE_DIR}/../lib"
|
||||
"${Libfdk_INCLUDE_DIR}/../lib${_lib_suffix}"
|
||||
"${Libfdk_INCLUDE_DIR}/../libs${_lib_suffix}"
|
||||
"${Libfdk_INCLUDE_DIR}/lib"
|
||||
"${Libfdk_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
"${_LIBFDK_LIBRARY_DIRS}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
set(LIBFDK_INCLUDE_DIRS ${Libfdk_INCLUDE_DIR} CACHE PATH "Libfdk include dir")
|
||||
|
@ -24,23 +24,25 @@ else()
|
||||
find_path(FFMPEG_INCLUDE_DIR
|
||||
NAMES libswresample/swresample.h
|
||||
HINTS
|
||||
${_SWRESAMPLE_INCLUDE_DIRS}
|
||||
"${CMAKE_SOURCE_DIR}/additional_install_files/include"
|
||||
"$ENV{obsAdditionalInstallFiles}/include"
|
||||
ENV FFmpegPath
|
||||
ENV ${FFMPEG_PATH_ARCH}
|
||||
"${_SWRESAMPLE_INCLUDE_DIRS}"
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include
|
||||
PATH_SUFFIXES ffmpeg libav)
|
||||
|
||||
find_library(SWRESAMPLE_LIB
|
||||
NAMES swresample
|
||||
NAMES ${_SWRESAMPLE_LIBRARIES} swresample-ffmpeg swresample
|
||||
HINTS
|
||||
${_SWRESAMPLE_LIBRARY_DIRS}
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/../libs${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
"${_SWRESAMPLE_LIBRARY_DIRS}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
set(LIBSWRESAMPLE_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIR} CACHE PATH "Libswresample include dir")
|
||||
|
@ -24,23 +24,25 @@ else()
|
||||
find_path(FFMPEG_INCLUDE_DIR
|
||||
NAMES libswscale/swscale.h
|
||||
HINTS
|
||||
${_SWSCALE_INCLUDE_DIRS}
|
||||
"${CMAKE_SOURCE_DIR}/additional_install_files/include"
|
||||
"$ENV{obsAdditionalInstallFiles}/include"
|
||||
ENV FFmpegPath
|
||||
ENV ${FFMPEG_PATH_ARCH}
|
||||
"${_SWSCALE_INCLUDE_DIRS}"
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include
|
||||
PATH_SUFFIXES ffmpeg libav)
|
||||
|
||||
find_library(SWSCALE_LIB
|
||||
NAMES swscale
|
||||
NAMES ${_SWSCALE_LIBRARIES} swscale-ffmpeg swscale
|
||||
HINTS
|
||||
${_SWSCALE_LIBRARY_DIRS}
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/../lib${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/../libs${_lib_suffix}"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib"
|
||||
"${FFMPEG_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
"${_SWSCALE_LIBRARY_DIRS}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
set(LIBSWSCALE_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIR} CACHE PATH "Libswscale include dir")
|
||||
|
@ -29,24 +29,26 @@ else()
|
||||
find_path(X264_INCLUDE_DIR
|
||||
NAMES x264.h
|
||||
HINTS
|
||||
${_X264_INCLUDE_DIRS}
|
||||
"${CMAKE_SOURCE_DIR}/additional_install_files/include"
|
||||
"$ENV{obsAdditionalInstallFiles}/include"
|
||||
ENV x264Path
|
||||
ENV FFmpegPath
|
||||
ENV ${X264_PATH_ARCH}
|
||||
ENV ${FFMPEG_PATH_ARCH}
|
||||
"${_X264_INCLUDE_DIRS}"
|
||||
PATHS
|
||||
/usr/include /usr/local/include /opt/local/include /sw/include)
|
||||
|
||||
find_library(X264_LIB
|
||||
NAMES x264 libx264
|
||||
NAMES ${_X264_LIBRARIES} x264 libx264
|
||||
HINTS
|
||||
${_X264_LIBRARY_DIRS}
|
||||
"${X264_INCLUDE_DIR}/../lib"
|
||||
"${X264_INCLUDE_DIR}/../lib${_lib_suffix}"
|
||||
"${X264_INCLUDE_DIR}/../libs${_lib_suffix}"
|
||||
"${X264_INCLUDE_DIR}/lib"
|
||||
"${X264_INCLUDE_DIR}/lib${_lib_suffix}"
|
||||
"${_X264_LIBRARY_DIRS}"
|
||||
PATHS
|
||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib)
|
||||
|
||||
set(LIBX264_INCLUDE_DIRS ${X264_INCLUDE_DIR} CACHE PATH "x264 include dir")
|
||||
|
Loading…
x
Reference in New Issue
Block a user