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("//build/ohos/ace/ace.gni") 16import("//foundation/multimedia/player_framework/config.gni") 17import("./../../../multimedia_player_framework_aafwk.gni") 18 19ohos_shared_library("systemsoundmanager") { 20 stack_protector_ret = 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 30 include_dirs = [ 31 "./include", 32 "./include/ringtone_player", 33 "./include/system_tone_player", 34 "./include/tone_attrs", 35 "./../avplayer/", 36 "./../common/", 37 "./../../native/system_sound_manager", 38 "./../../../interfaces/inner_api/native", 39 "./../../../interfaces/inner_api/native/system_sound_manager/include", 40 "./../../../services/utils/include", 41 "./../common", 42 ] 43 44 sources = [ 45 "./../common/common_napi.cpp", 46 "./src/ringtone_player/audio_renderer_info_napi.cpp", 47 "./src/ringtone_player/ringtone_common_napi.cpp", 48 "./src/ringtone_player/ringtone_options_napi.cpp", 49 "./src/ringtone_player/ringtone_player_callback_napi.cpp", 50 "./src/ringtone_player/ringtone_player_napi.cpp", 51 "./src/system_sound_manager_napi.cpp", 52 "./src/system_tone_player/system_tone_options_napi.cpp", 53 "./src/system_tone_player/system_tone_player_napi.cpp", 54 "./src/tone_attrs/tone_attrs_napi.cpp", 55 ] 56 57 deps = [ "./../../native/system_sound_manager:system_sound_client" ] 58 59 external_deps = [ 60 "ability_base:session_info", 61 "ability_base:want", 62 "ability_runtime:ability_manager", 63 "ability_runtime:abilitykit_native", 64 "ability_runtime:extensionkit_native", 65 "ability_runtime:napi_base_context", 66 "ability_runtime:wantagent_innerkits", 67 "access_token:libaccesstoken_sdk", 68 "access_token:libtokenid_sdk", 69 "audio_framework:audio_client", 70 "av_codec:av_codec_client", 71 "bundle_framework:appexecfwk_base", 72 "c_utils:utils", 73 "eventhandler:libeventhandler", 74 "graphic_surface:surface", 75 "hilog:libhilog", 76 "ipc:ipc_single", 77 "libuv:uv", 78 "media_foundation:media_foundation", 79 "napi:ace_napi", 80 "qos_manager:qos", 81 "resource_management:global_resmgr", 82 ] 83 relative_install_dir = "module/multimedia" 84 part_name = "player_framework" 85 subsystem_name = "multimedia" 86} 87