2020-08-13 16:03:37 +00:00
|
|
|
# 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" ]
|
2020-08-13 18:12:10 +00:00
|
|
|
} else if (is_linux && skia_use_sfml) {
|
|
|
|
sources += [ "SkAudioPlayer_sfml.cpp" ]
|
|
|
|
libs = [
|
|
|
|
"sfml-system",
|
|
|
|
"sfml-audio",
|
|
|
|
]
|
2020-08-13 16:03:37 +00:00
|
|
|
} else {
|
|
|
|
sources += [ "SkAudioPlayer_none.cpp" ]
|
|
|
|
}
|
|
|
|
}
|