1 # Copyright 2020 Google Inc.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 import("../../gn/skia.gni")
8 component("audioplayer") {
9 public = [ "SkAudioPlayer.h" ]
10 sources = [ "SkAudioPlayer.cpp" ]
11 deps = [ "../..:skia" ]
14 sources += [ "SkAudioPlayer_mac.mm" ]
15 frameworks = [ "AVFoundation.framework" ]
16 } else if (is_linux && skia_use_sfml) {
17 sources += [ "SkAudioPlayer_sfml.cpp" ]
22 } else if (is_android) {
23 sources += [ "SkAudioPlayer_oboe.cpp" ]
24 deps += [ "../../third_party/oboe" ]
27 sources += [ "SkAudioPlayer_none.cpp" ]