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

Indexes created Thu Nov 07 10:32:03 CST 2024