Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions cmake/ffmpeg/_main.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# x265.pc will not be installed if their cmake cannot detect the latest tag
# SVT-AV1 cannot determine version if the git history is not available
foreach(repo "x265_git" "SVT-AV1")
execute_process(
COMMAND git -C "${CMAKE_CURRENT_SOURCE_DIR}/third-party/FFmpeg/${repo}" fetch --tags --depth=1
COMMAND_ERROR_IS_FATAL ANY
)
endforeach()

# the destination directory needs to be same level down as the original source directory
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/third-party/FFmpeg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
PATTERN "Vulkan-Loader/tests" EXCLUDE) # vulkan loader test files contain emojis in file names which can fail
Expand Down
6 changes: 6 additions & 0 deletions cmake/ffmpeg/svt_av1.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SVT-AV1 cannot determine version if the git history is not available
execute_process(
COMMAND git -C "${CMAKE_CURRENT_SOURCE_DIR}/third-party/FFmpeg/SVT-AV1" fetch --tags --depth=1
COMMAND_ERROR_IS_FATAL ANY
)

set(SVT_AV1_GENERATED_SRC_PATH ${CMAKE_CURRENT_BINARY_DIR}/FFmpeg/SVT-AV1)

if(BUILD_FFMPEG_ALL_PATCHES OR BUILD_FFMPEG_SVT_AV1_PATCHES)
Expand Down
6 changes: 6 additions & 0 deletions cmake/ffmpeg/x265.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# x265.pc will not be installed if their cmake cannot detect the latest tag
execute_process(
COMMAND git -C "${CMAKE_CURRENT_SOURCE_DIR}/third-party/FFmpeg/x265_git" fetch --tags --depth=1
COMMAND_ERROR_IS_FATAL ANY
)

set(X265_GENERATED_SRC_PATH ${CMAKE_CURRENT_BINARY_DIR}/FFmpeg/x265_git)

file(GLOB X265_GIT_FILES ${CMAKE_CURRENT_SOURCE_DIR}/patches/FFmpeg/x265_git/*.patch)
Expand Down