message: Factor framework dependencies out of audio_device_impl
  Cr-Commit-Position: refs/heads/master@{#28733}
diff: @@ -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) {
  @@ -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 = [
  