Skip to content

Commit

Permalink
Factor framework dependencies out of audio_device_impl
Browse files Browse the repository at this point in the history
Bug: None
Change-Id: I7d8d737134bb1a9dcf376cd39e74e73a5a6a0e97
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/147723
Reviewed-by: Mirko Bonadei <[email protected]>
Commit-Queue: Oleh Prypin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#28733}
  • Loading branch information
oprypin authored and Commit Bot committed Aug 1, 2019
1 parent 32eaa7b commit 84de3d9
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions modules/audio_device/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -300,16 +300,9 @@ rtc_source_set("audio_device_impl") {
"mac/audio_mixer_manager_mac.cc",
"mac/audio_mixer_manager_mac.h",
]
deps += [ "../third_party/portaudio:mac_portaudio" ]
libs = [
# Needed for CoreGraphics:
"ApplicationServices.framework",

"AudioToolbox.framework",
"CoreAudio.framework",

# Needed for CGEventSourceKeyState in audio_device_mac.cc:
"CoreGraphics.framework",
deps += [
":audio_device_impl_frameworks",
"../third_party/portaudio:mac_portaudio",
]
}
if (is_win) {
Expand Down Expand Up @@ -340,6 +333,22 @@ rtc_source_set("audio_device_impl") {
}
}

if (is_mac) {
rtc_source_set("audio_device_impl_frameworks") {
visibility = [ ":*" ]
libs = [
# Needed for CoreGraphics:
"ApplicationServices.framework",

"AudioToolbox.framework",
"CoreAudio.framework",

# Needed for CGEventSourceKeyState in audio_device_mac.cc:
"CoreGraphics.framework",
]
}
}

rtc_source_set("mock_audio_device") {
testonly = true
sources = [
Expand Down

0 comments on commit 84de3d9

Please sign in to comment.