• 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  stack_protector_ret = true
20  install_enable = true
21  sanitize = {
22    integer_overflow = true
23    ubsan = true
24    boundary_sanitize = true
25    cfi = true
26    cfi_cross_dso = true
27    debug = false
28  }
29  sources = [
30    "cache_buffer.cpp",
31    "sound_id_manager.cpp",
32    "sound_parser.cpp",
33    "soundpool.cpp",
34    "soundpool_manager.cpp",
35    "soundpool_manager_multi.cpp",
36    "soundpool_xcollie.cpp",
37    "stream_id_manager.cpp",
38  ]
39
40  include_dirs = [
41    "${multimedia_player_framework_path}/interfaces/inner_api/native/soundpool/include",
42    "${multimedia_player_framework_path}/services/services/engine_intf",
43    "${multimedia_player_framework_path}/services/utils/include",
44  ]
45
46  deps = [
47    "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client",
48    "${multimedia_player_framework_path}/services/utils:media_service_utils",
49  ]
50
51  external_deps = [
52    "ability_base:want",
53    "ability_base:zuri",
54    "ability_runtime:ability_manager",
55    "ability_runtime:abilitykit_native",
56    "audio_framework:audio_client",
57    "audio_framework:audio_renderer",
58    "bundle_framework:appexecfwk_base",
59    "c_utils:utils",
60    "ffrt:libffrt",
61    "graphic_surface:surface",
62    "hicollie:libhicollie",
63    "hilog:libhilog",
64    "hisysevent:libhisysevent",
65    "init:libbegetutil",
66    "ipc:ipc_core",
67    "qos_manager:qos",
68  ]
69
70  if (player_framework_support_drm) {
71    external_deps += [ "drm_framework:drm_framework" ]
72  }
73
74  public_external_deps = [ "av_codec:av_codec_client" ]
75
76  cflags = [
77    "-Wall",
78    "-Werror",
79  ]
80
81  defines = []
82
83  defines += player_framework_defines
84
85  innerapi_tags = [ "platformsdk" ]
86  subsystem_name = "multimedia"
87  part_name = "player_framework"
88}
89