You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
735 B
30 lines
735 B
4 months ago
|
# 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" ]
|
||
|
}
|
||
|
}
|