deps: disable FFmpeg VideoToolbox/AudioToolbox HW-accel on macOS

The static libavcodec.a/avutil.a compiled the auto-detected
videotoolbox/audiotoolbox objects, which reference VideoToolbox
framework symbols (_VTDecompressionSession*). The app link line
happened to satisfy them transitively, but the orca_stubgen module
link (CI-only) failed with undefined symbols. The player decodes in
software (swscale), so disable both HW-accel paths to keep the
static libs self-contained.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Noisyfox
2026-08-15 08:52:52 +08:00
parent 9c7e6711c6
commit 86a63e7e2f

View File

@@ -27,7 +27,10 @@ else ()
"--extra-ldflags=-mmacosx-version-min=${DEP_OSX_TARGET}" "--extra-ldflags=-mmacosx-version-min=${DEP_OSX_TARGET}"
) )
# Static FFmpeg: nothing to bundle into the .app, no rpath handling. # Static FFmpeg: nothing to bundle into the .app, no rpath handling.
set(_link_cmd --enable-static --disable-shared) # Disable the VideoToolbox/AudioToolbox HW-accel paths: the player decodes
# in software (swscale), and the auto-detected HW objects would drag in
# system frameworks that the static libs would then depend on.
set(_link_cmd --enable-static --disable-shared --disable-videotoolbox --disable-audiotoolbox)
if (IS_CROSS_COMPILE) if (IS_CROSS_COMPILE)
set(_cross_cmd --enable-cross-compile) set(_cross_cmd --enable-cross-compile)
set(_pic_cmd --enable-pic) set(_pic_cmd --enable-pic)