59a3c3be94
For now this relies on system libs and requires explicit opt-in (skia_use_sfml=true). [1] https://www.sfml-dev.org/ TBR= Change-Id: Iff89efdb4494f79530d0d41dee80ff38d4e75671 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/310065 Reviewed-by: Florin Malita <fmalita@google.com> Commit-Queue: Florin Malita <fmalita@google.com>
26 lines
597 B
Plaintext
26 lines
597 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 {
|
|
sources += [ "SkAudioPlayer_none.cpp" ]
|
|
}
|
|
}
|