Enable asm optimizations for ffmpeg on macOS

This commit is contained in:
Martin Natano
2022-06-02 07:38:55 -07:00
parent 3eb239ad3b
commit ed4090e2ba
2 changed files with 7 additions and 2 deletions
-1
View File
@@ -33,7 +33,6 @@ if(CMAKE_POSITION_INDEPENDENT_CODE)
endif()
if(MACOSX)
list(APPEND FFMPEG_CONFIGURE "--disable-asm")
list(APPEND FFMPEG_CONFIGURE "--enable-cross-compile")
list(APPEND FFMPEG_CONFIGURE "--enable-videotoolbox")
list(APPEND FFMPEG_CONFIGURE "--extra-cflags=-mmacosx-version-min=11")
+7 -1
View File
@@ -299,6 +299,12 @@ elseif(MACOSX)
find_library(MAC_FRAME_COREMEDIA CoreMedia ${CMAKE_SYSTEM_FRAMEWORK_PATH} REQUIRED)
find_library(MAC_FRAME_COREVIDEO CoreVideo ${CMAKE_SYSTEM_FRAMEWORK_PATH} REQUIRED)
find_library(MAC_FRAME_VIDEOTOOLBOX VideoToolbox ${CMAKE_SYSTEM_FRAMEWORK_PATH} REQUIRED)
if(NOT YASM_FOUND AND NOT NASM_FOUND)
message(FATAL_ERROR
"Neither NASM nor YASM were found. Please install at least one of them."
)
endif()
elseif(LINUX)
if(WITH_GTK3)
find_package("GTK3" 2.0)
@@ -380,7 +386,7 @@ elseif(LINUX)
if(NOT YASM_FOUND AND NOT NASM_FOUND)
message(FATAL_ERROR
"Neither NASM nor YASM were found. Please install at least one of them if you wish for ffmpeg support."
"Neither NASM nor YASM were found. Please install at least one of them."
)
endif()