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 18config("system_sound_client_public_config") { 19 visibility = [ ":*" ] 20 include_dirs = 21 [ "./../../../interfaces/inner_api/native/system_sound_manager/include" ] 22} 23 24ohos_shared_library("system_sound_client") { 25 branch_protector_ret = "pac_ret" 26 sanitize = { 27 integer_overflow = true 28 ubsan = true 29 boundary_sanitize = true 30 cfi = true 31 cfi_cross_dso = true 32 debug = false 33 } 34 35 install_enable = true 36 sources = [ 37 "./ringtone_player/ringtone_player_impl.cpp", 38 "./system_sound_vibrator/system_sound_vibrator.cpp", 39 "./system_tone_player/system_tone_player_impl.cpp", 40 "system_sound_manager_impl.cpp", 41 "system_sound_manager_utils.cpp", 42 "system_sound_manager_vibrate.cpp", 43 ] 44 45 include_dirs = [ 46 "./", 47 "./ringtone_player", 48 "./system_sound_vibrator", 49 "./system_tone_player", 50 "./../../../interfaces/inner_api/native/audio_haptic/include", 51 "./../../../interfaces/inner_api/native/soundpool/include", 52 "./../../../interfaces/inner_api/native/system_sound_manager/include", 53 "./../../../services/utils/include", 54 ] 55 56 deps = [ 57 "./../../../interfaces/inner_api/native:media_client", 58 "./../audio_haptic:audio_haptic", 59 "./../soundpool:soundpool_client", 60 ] 61 62 external_deps = [ 63 "ability_base:session_info", 64 "ability_base:want", 65 "ability_base:zuri", 66 "ability_runtime:ability_manager", 67 "ability_runtime:abilitykit_native", 68 "ability_runtime:appkit_native", 69 "ability_runtime:data_ability_helper", 70 "access_token:libaccesstoken_sdk", 71 "access_token:libnativetoken_shared", 72 "access_token:libtokensetproc_shared", 73 "audio_framework:audio_client", 74 "audio_framework:audio_renderer", 75 "bundle_framework:appexecfwk_base", 76 "c_utils:utils", 77 "config_policy:configpolicy_util", 78 "data_share:datashare_consumer", 79 "graphic_surface:surface", 80 "hilog:libhilog", 81 "init:libbegetutil", 82 "ipc:ipc_core", 83 "media_foundation:media_monitor_client", 84 "media_foundation:media_monitor_common", 85 "os_account:os_account_innerkits", 86 "qos_manager:qos", 87 "relational_store:native_dataability", 88 "relational_store:native_rdb", 89 "ringtone_library:ringtone_data_extension", 90 "ringtone_library:ringtone_data_helper", 91 "samgr:samgr_proxy", 92 "hitrace:hitrace_meter", 93 ] 94 95 if (player_framework_support_vibrator) { 96 external_deps += [ "miscdevice:vibrator_interface_native" ] 97 } 98 99 cflags = [ 100 "-Wall", 101 "-Werror", 102 ] 103 104 public_configs = [ ":system_sound_client_public_config" ] 105 106 defines = [] 107 defines += player_framework_defines 108 innerapi_tags = [ "platformsdk" ] 109 subsystem_name = "multimedia" 110 part_name = "player_framework" 111} 112