skia2/modules/audioplayer/BUILD.gn
Jorge Betancourt f607dbbbe8 implement SkAudioPLayer for Android
move SkAudioPlayer for Android to proper module
refine playback features for the Android AudioPlayer

Change-Id: I1906c3b3ef91fa4173f66c2c068dc40a3cf824ca
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319037
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>
2020-12-15 00:12:48 +00:00

30 lines
735 B
Plaintext

# Copyright 2020 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gn/skia.gni")
component("audioplayer") {
public = [ "SkAudioPlayer.h" ]
sources = [ "SkAudioPlayer.cpp" ]
deps = [ "../..:skia" ]
if (is_mac) {
sources += [ "SkAudioPlayer_mac.mm" ]
frameworks = [ "AVFoundation.framework" ]
} else if (is_linux && skia_use_sfml) {
sources += [ "SkAudioPlayer_sfml.cpp" ]
libs = [
"sfml-system",
"sfml-audio",
]
} else if (is_android) {
sources += [ "SkAudioPlayer_oboe.cpp" ]
deps += [ "../../third_party/oboe" ]
libs = [ "OpenSLES" ]
} else {
sources += [ "SkAudioPlayer_none.cpp" ]
}
}