History

configure: Add a dependency for the audiotoolbox outdev

The audiotoolbox outdev uses APIs that only are available on macOS, not on iOS or tvOS. Check for them in configure, and make sure the outdev is disabled otherwise. This allows building for iOS without explicitly having to disable the audiotoolbox outdev.

Martin Storsjö committed 1 year ago

Commit 11299571 parent 4da84d51 file · +5 −1Browse files

Unified · Split

configure+5−1
@@ -3741,7 +3741,7 @@ alsa_outdev_deps="alsa" · 3740 unmodified lines
3741avfoundation_indev_deps="avfoundation corevideo coremedia pthreads"3741avfoundation_indev_deps="avfoundation corevideo coremedia pthreads"
3742avfoundation_indev_suggest="coregraphics applicationservices"3742avfoundation_indev_suggest="coregraphics applicationservices"
3743avfoundation_indev_extralibs="-framework Foundation"3743avfoundation_indev_extralibs="-framework Foundation"
3744audiotoolbox_outdev_deps="audiotoolbox pthreads"3744audiotoolbox_outdev_deps="audiotoolbox pthreads AudioObjectPropertyAddress"
3745audiotoolbox_outdev_extralibs="-framework AudioToolbox -framework CoreAudio"3745audiotoolbox_outdev_extralibs="-framework AudioToolbox -framework CoreAudio"
3746caca_outdev_deps="libcaca"3746caca_outdev_deps="libcaca"
3747decklink_deps_any="libdl LoadLibrary"3747decklink_deps_any="libdl LoadLibrary"
@@ -6727,6 +6727,10 @@ check_apple_framework CoreMedia · 2979 unmodified lines
6727check_apple_framework CoreVideo6727check_apple_framework CoreVideo
6728check_apple_framework CoreAudio6728check_apple_framework CoreAudio
6729 6729
6730enabled audiotoolbox && {
6731 check_type AudioToolbox/AudioToolbox.h AudioObjectPropertyAddress
6732}
6733
6730enabled avfoundation && {6734enabled avfoundation && {
6731 disable coregraphics applicationservices6735 disable coregraphics applicationservices
6732 check_lib coregraphics CoreGraphics/CoreGraphics.h CGGetActiveDisplayList "-framework CoreGraphics" ||6736 check_lib coregraphics CoreGraphics/CoreGraphics.h CGGetActiveDisplayList "-framework CoreGraphics" ||

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t