Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
Collecting
2025-10-30 00:18:39 +00:00
parent 8293b753d0
commit a8af280547

View File

@@ -801,6 +801,23 @@ if(MSVC)
) )
endif() endif()
if(WIN32 AND CITRON_USE_BUNDLED_FFMPEG)
set(FFMPEG_ARCHIVE "${CMAKE_CURRENT_SOURCE_DIR}/externals/ext-windows-bin/ffmpeg/ffmpeg-6.0.7z")
set(FFMPEG_EXTRACT_DIR "${CMAKE_BINARY_DIR}/externals/ffmpeg-6.0")
if(EXISTS "${FFMPEG_ARCHIVE}" AND NOT EXISTS "${FFMPEG_EXTRACT_DIR}")
message(STATUS "Found bundled FFmpeg archive. Extracting to ${FFMPEG_EXTRACT_DIR}...")
execute_process(
COMMAND ${CMAKE_COMMAND} -E tar xf "${FFMPEG_ARCHIVE}"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/externals/"
RESULT_VARIABLE FFMPEG_EXTRACT_RESULT
)
if(NOT FFMPEG_EXTRACT_RESULT EQUAL 0)
message(FATAL_ERROR "Failed to extract bundled FFmpeg archive.")
endif()
endif()
endif()
add_subdirectory(src) add_subdirectory(src)
# Apply the Boost.Process definition to the core target if it was found # Apply the Boost.Process definition to the core target if it was found