Debian Codegraph @

modules/audioplayer/BUILD.gn

raw
1 # Copyright 2020 Google Inc.
2 #
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import("../../gn/skia.gni")
7
8 skia_component("audioplayer") {
9 public = [ "SkAudioPlayer.h" ]
10 sources = [ "SkAudioPlayer.cpp" ]
11 deps = [ "../..:skia" ]
12
13 if (is_mac) {
14 sources += [ "SkAudioPlayer_mac.mm" ]
15 frameworks = [ "AVFoundation.framework" ]
16 } else if (is_linux && skia_use_sfml) {
17 sources += [ "SkAudioPlayer_sfml.cpp" ]
18 libs = [
19 "sfml-system",
20 "sfml-audio",
21 ]
22 } else if (is_android) {
23 sources += [ "SkAudioPlayer_oboe.cpp" ]
24 deps += [ "../../third_party/oboe" ]
25 libs = [ "OpenSLES" ]
26 } else {
27 sources += [ "SkAudioPlayer_none.cpp" ]
28 }
29 }