You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/Src4/ffmpeg.pri

53 lines
2.2 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# PEBI动画导出使用的可选FFmpeg n1.1开发包。
# nmSubWxs默认启用;其他目标可通过CONFIG显式选择是否接入。
contains(CONFIG, nm_ffmpeg_video_export) {
FFMPEG_11_ROOT = $${geoHome}/3rd/FFmpeg-1.1
FFMPEG_11_VS2010_COMPAT = $${FFMPEG_11_ROOT}/compat/vs2010
FFMPEG_11_RUNTIME_DLLS = \
$${FFMPEG_11_ROOT}/bin/avformat-54.dll \
$${FFMPEG_11_ROOT}/bin/avcodec-54.dll \
$${FFMPEG_11_ROOT}/bin/avutil-52.dll \
$${FFMPEG_11_ROOT}/bin/swscale-2.dll
!exists($${FFMPEG_11_ROOT}/include/libavformat/avformat.h) {
error(FFmpeg n1.1 headers were not found in $${FFMPEG_11_ROOT}/include)
}
!exists($${FFMPEG_11_ROOT}/include/libavcodec/avcodec.h) {
error(FFmpeg n1.1 avcodec headers were not found)
}
!exists($${FFMPEG_11_ROOT}/include/libavutil/avutil.h) {
error(FFmpeg n1.1 avutil headers were not found)
}
!exists($${FFMPEG_11_ROOT}/include/libswscale/swscale.h) {
error(FFmpeg n1.1 swscale headers were not found)
}
!exists($${FFMPEG_11_ROOT}/lib/avformat.lib) {
error(FFmpeg n1.1 avformat import library was not found)
}
!exists($${FFMPEG_11_ROOT}/lib/avcodec.lib) {
error(FFmpeg n1.1 avcodec import library was not found)
}
!exists($${FFMPEG_11_ROOT}/lib/avutil.lib) {
error(FFmpeg n1.1 avutil import library was not found)
}
!exists($${FFMPEG_11_ROOT}/lib/swscale.lib) {
error(FFmpeg n1.1 swscale import library was not found)
}
!exists($${FFMPEG_11_VS2010_COMPAT}/inttypes.h) {
error(FFmpeg n1.1 VS2010 compatibility header inttypes.h was not found)
}
DEFINES += NM_ENABLE_FFMPEG_VIDEO_EXPORT
INCLUDEPATH += $${FFMPEG_11_VS2010_COMPAT}
INCLUDEPATH += $${FFMPEG_11_ROOT}/include
LIBS += -L$${FFMPEG_11_ROOT}/lib
LIBS += -lavformat -lavcodec -lavutil -lswscale
for(FFMPEG_11_RUNTIME_DLL, FFMPEG_11_RUNTIME_DLLS) {
!exists($${FFMPEG_11_RUNTIME_DLL}) {
error(FFmpeg runtime DLL was not found: $${FFMPEG_11_RUNTIME_DLL})
}
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($${FFMPEG_11_RUNTIME_DLL}) $$quote($${DESTDIR}) $$escape_expand(\\n\\t)
}
}