Commit 006d9da9 authored by Alvin Wong's avatar Alvin Wong

Windows deps: Add prebuilt ffmpeg by Zeranoe

Maniphest Tasks: T8803
parent b33f82e1
......@@ -207,6 +207,7 @@ endif (ENABLE_PYTHON_DEPS OR NOT MINGW)
if (MSVC OR MINGW)
add_subdirectory( ext_drmingw )
add_subdirectory( ext_ffmpeg )
endif (MSVC OR MINGW)
if (NOT APPLE)
......
SET(PREFIX_ext_ffmpeg "${EXTPREFIX}" )
if(MSVC OR MINGW)
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
ExternalProject_Add( ext_ffmpeg
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-4.0-win64-static.zip
URL_MD5 bf496481c6991c529e2e94a8e0fa3113
INSTALL_DIR ${PREFIX_ext_ffmpeg}
CONFIGURE_COMMAND ""
BUILD_COMMAND ${CMAKE_COMMAND} -E echo deploying ffmpeg3 64-bit binary
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/bin/ffmpeg.exe ${PREFIX_ext_ffmpeg}/bin/ffmpeg.exe
COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/LICENSE.txt ${PREFIX_ext_ffmpeg}/bin/ffmpeg_LICENSE.txt
COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/README.txt ${PREFIX_ext_ffmpeg}/bin/ffmpeg_README.txt
UPDATE_COMMAND ""
)
else("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
ExternalProject_Add( ext_ffmpeg
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-4.0-win32-static.zip
URL_MD5 a969a969e3404fe35100e85a37186e5f
INSTALL_DIR ${PREFIX_ext_ffmpeg}
CONFIGURE_COMMAND ""
BUILD_COMMAND ${CMAKE_COMMAND} -E echo deploying ffmpeg3 32-bit binary
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/bin/ffmpeg.exe ${PREFIX_ext_ffmpeg}/bin/ffmpeg.exe
COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/LICENSE.txt ${PREFIX_ext_ffmpeg}/bin/ffmpeg_LICENSE.txt
COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/README.txt ${PREFIX_ext_ffmpeg}/bin/ffmpeg_README.txt
UPDATE_COMMAND ""
)
endif("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
endif()
......@@ -707,7 +707,7 @@ echo.
set EXT_TARGETS=patch png2ico gettext qt zlib boost eigen3 exiv2 fftw3 ilmbase
set EXT_TARGETS=%EXT_TARGETS% jpeg lcms2 ocio openexr png tiff gsl vc libraw
set EXT_TARGETS=%EXT_TARGETS% giflib freetype poppler kwindowsystem drmingw gmic
set EXT_TARGETS=%EXT_TARGETS% python sip pyqt
set EXT_TARGETS=%EXT_TARGETS% python sip pyqt ffmpeg
for %%a in (%EXT_TARGETS%) do (
echo Building ext_%%a...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment