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 "stream_id_manager.cpp", 36 ] 37 38 include_dirs = [ 39 "${multimedia_player_framework_path}/interfaces/inner_api/native/soundpool/include", 40 "${multimedia_player_framework_path}/services/utils/include", 41 ] 42 43 deps = [ 44 "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client", 45 "${multimedia_player_framework_path}/services/utils:media_service_utils", 46 ] 47 48 external_deps = [ 49 "ability_base:want", 50 "ability_base:zuri", 51 "ability_runtime:ability_manager", 52 "ability_runtime:abilitykit_native", 53 "audio_framework:audio_client", 54 "audio_framework:audio_renderer", 55 "bundle_framework:appexecfwk_base", 56 "c_utils:utils", 57 "ffrt:libffrt", 58 "graphic_surface:surface", 59 "hilog:libhilog", 60 "hisysevent:libhisysevent", 61 "init:libbegetutil", 62 "ipc:ipc_core", 63 "qos_manager:qos", 64 ] 65 66 public_external_deps = [ "av_codec:av_codec_client" ] 67 68 cflags = [ 69 "-Wall", 70 "-Werror", 71 ] 72 73 defines = [] 74 75 defines += player_framework_defines 76 77 innerapi_tags = [ "platformsdk" ] 78 subsystem_name = "multimedia" 79 part_name = "player_framework" 80} 81