• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15import("//foundation/multimedia/player_framework/config.gni")
16import("./../../../multimedia_player_framework_aafwk.gni")
17
18ohos_shared_library("soundpool_client") {
19  install_enable = true
20  sources = [
21    "cache_buffer.cpp",
22    "sound_id_manager.cpp",
23    "sound_parser.cpp",
24    "soundpool.cpp",
25    "soundpool_manager.cpp",
26    "stream_id_manager.cpp",
27  ]
28
29  include_dirs = [
30    "${multimedia_player_framework_path}/interfaces/inner_api/native/soundpool/include",
31    "${multimedia_player_framework_path}/services/utils/include",
32    "${av_codec_root_path}/interfaces/inner_api/native",
33    "${multimedia_audio_framework_path}/services/audio_service/client/include",
34    "${multimedia_audio_framework_path}/interfaces/inner_api/native/audiocommon/include",
35    "${multimedia_audio_framework_path}/interfaces/inner_api/native/audiomanager/include",
36    "${av_codec_root_path}/services/utils/include",
37  ]
38
39  deps = [ "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client" ]
40
41  external_deps = [
42    "ability_base:want",
43    "ability_base:zuri",
44    "ability_runtime:ability_manager",
45    "ability_runtime:abilitykit_native",
46    "audio_framework:audio_client",
47    "audio_framework:audio_renderer",
48    "av_codec:av_codec_client",
49    "bundle_framework:appexecfwk_base",
50    "c_utils:utils",
51    "graphic_2d:surface",
52    "hilog:libhilog",
53    "init:libbegetutil",
54    "qos_manager:qos",
55  ]
56
57  cflags = [
58    "-Wall",
59    "-Werror",
60  ]
61
62  defines = []
63
64  #Soundpool low latency playback switch
65  defines += [ "SOUNDPOOL_SUPPORT_LOW_LATENCY" ]
66  defines += player_framework_defines
67
68  subsystem_name = "multimedia"
69  part_name = "player_framework"
70}
71