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 sanitize = { 26 cfi = true 27 cfi_cross_dso = true 28 debug = false 29 } 30 31 install_enable = true 32 sources = [ 33 "./ringtone_player/ringtone_player_impl.cpp", 34 "./system_sound_vibrator/system_sound_vibrator.cpp", 35 "./system_tone_player/system_tone_player_impl.cpp", 36 "system_sound_manager_impl.cpp", 37 ] 38 39 include_dirs = [ 40 "./", 41 "./ringtone_player", 42 "./system_sound_vibrator", 43 "./system_tone_player", 44 "./../../../interfaces/inner_api/native/audio_haptic/include", 45 "./../../../interfaces/inner_api/native/soundpool/include", 46 "./../../../interfaces/inner_api/native/system_sound_manager/include", 47 "./../../../services/utils/include", 48 ] 49 50 deps = [ 51 "./../../../interfaces/inner_api/native:media_client", 52 "./../audio_haptic:audio_haptic", 53 "./../soundpool:soundpool_client", 54 ] 55 56 external_deps = [ 57 "ability_base:want", 58 "ability_base:zuri", 59 "ability_runtime:ability_manager", 60 "ability_runtime:abilitykit_native", 61 "ability_runtime:appkit_native", 62 "ability_runtime:data_ability_helper", 63 "audio_framework:audio_client", 64 "bundle_framework:appexecfwk_base", 65 "config_policy:configpolicy_util", 66 "graphic_surface:surface", 67 "hilog:libhilog", 68 "qos_manager:qos", 69 "relational_store:native_dataability", 70 "relational_store:native_rdb", 71 ] 72 73 if (multimedia_player_framework_support_vibrator) { 74 external_deps += [ "miscdevice:vibrator_interface_native" ] 75 } 76 77 cflags = [ 78 "-Wall", 79 "-Werror", 80 ] 81 82 public_configs = [ ":system_sound_client_public_config" ] 83 84 defines = [] 85 defines += player_framework_defines 86 innerapi_tags = [ "platformsdk" ] 87 subsystem_name = "multimedia" 88 part_name = "player_framework" 89} 90