mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
CMake: Add missing frameworks for linking static FFMpeg on macOS
This commit is contained in:
parent
8231bc12bf
commit
53b8e52343
@ -89,16 +89,36 @@ if(APPLE)
|
||||
# When statically built for Apple, FFMPEG may have dependencies on these
|
||||
# additional frameworks and libraries.
|
||||
|
||||
find_library(APPLE_AUDIOTOOLBOX_LIBRARY AudioToolbox)
|
||||
if(APPLE_AUDIOTOOLBOX_LIBRARY)
|
||||
list(APPEND FFMPEG_LIBRARIES "${APPLE_AUDIOTOOLBOX_LIBRARY}")
|
||||
endif()
|
||||
|
||||
find_library(APPLE_COREMEDIA_LIBRARY CoreMedia)
|
||||
if(APPLE_COREMEDIA_LIBRARY)
|
||||
list(APPEND FFMPEG_LIBRARIES "${APPLE_COREMEDIA_LIBRARY}")
|
||||
endif()
|
||||
|
||||
find_library(APPLE_COREVIDEO_LIBRARY CoreVideo)
|
||||
if(APPLE_COREVIDEO_LIBRARY)
|
||||
list(APPEND FFMPEG_LIBRARIES "${APPLE_COREVIDEO_LIBRARY}")
|
||||
endif()
|
||||
|
||||
find_library(APPLE_SECURITY_LIBRARY Security)
|
||||
if(APPLE_SECURITY_LIBRARY)
|
||||
list(APPEND FFMPEG_LIBRARIES "${APPLE_SECURITY_LIBRARY}")
|
||||
endif()
|
||||
|
||||
find_library(APPLE_VDA_LIBRARY VideoDecodeAcceleration)
|
||||
if(APPLE_VDA_LIBRARY)
|
||||
list(APPEND FFMPEG_LIBRARIES "${APPLE_VDA_LIBRARY}")
|
||||
endif()
|
||||
|
||||
find_library(APPLE_VIDEOTOOLBOX_LIBRARY VideoToolbox)
|
||||
if(APPLE_VIDEOTOOLBOX_LIBRARY)
|
||||
list(APPEND FFMPEG_LIBRARIES "${APPLE_VIDEOTOOLBOX_LIBRARY}")
|
||||
endif()
|
||||
|
||||
find_library(APPLE_ICONV_LIBRARY iconv)
|
||||
if(APPLE_ICONV_LIBRARY)
|
||||
list(APPEND FFMPEG_LIBRARIES "${APPLE_ICONV_LIBRARY}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user