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_vibrate.cpp", 42 ] 43 44 include_dirs = [ 45 "./", 46 "./ringtone_player", 47 "./system_sound_vibrator", 48 "./system_tone_player", 49 "./../../../interfaces/inner_api/native/audio_haptic/include", 50 "./../../../interfaces/inner_api/native/soundpool/include", 51 "./../../../interfaces/inner_api/native/system_sound_manager/include", 52 "./../../../services/utils/include", 53 ] 54 55 deps = [ 56 "./../../../interfaces/inner_api/native:media_client", 57 "./../audio_haptic:audio_haptic", 58 "./../soundpool:soundpool_client", 59 ] 60 61 external_deps = [ 62 "ability_base:session_info", 63 "ability_base:want", 64 "ability_base:zuri", 65 "ability_runtime:ability_manager", 66 "ability_runtime:abilitykit_native", 67 "ability_runtime:appkit_native", 68 "ability_runtime:data_ability_helper", 69 "access_token:libaccesstoken_sdk", 70 "access_token:libnativetoken_shared", 71 "access_token:libtokensetproc_shared", 72 "audio_framework:audio_client", 73 "bundle_framework:appexecfwk_base", 74 "c_utils:utils", 75 "config_policy:configpolicy_util", 76 "data_share:datashare_consumer", 77 "graphic_surface:surface", 78 "hilog:libhilog", 79 "init:libbegetutil", 80 "ipc:ipc_core", 81 "os_account:os_account_innerkits", 82 "qos_manager:qos", 83 "relational_store:native_dataability", 84 "relational_store:native_rdb", 85 "ringtone_library:ringtone_data_extension", 86 "ringtone_library:ringtone_data_helper", 87 "samgr:samgr_proxy", 88 ] 89 90 if (player_framework_support_vibrator) { 91 external_deps += [ "miscdevice:vibrator_interface_native" ] 92 } 93 94 cflags = [ 95 "-Wall", 96 "-Werror", 97 ] 98 99 public_configs = [ ":system_sound_client_public_config" ] 100 101 defines = [] 102 defines += player_framework_defines 103 innerapi_tags = [ "platformsdk" ] 104 subsystem_name = "multimedia" 105 part_name = "player_framework" 106} 107