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