# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//build/ohos/ace/ace.gni") import("//foundation/multimedia/player_framework/config.gni") import("./../../../multimedia_player_framework_aafwk.gni") ohos_shared_library("systemsoundmanager") { sanitize = { cfi = true cfi_cross_dso = true debug = false } include_dirs = [ "./include", "./include/ringtone_player", "./include/system_tone_player", "./../avplayer/", "./../common/", "./../../native/system_sound_manager", "./../../../interfaces/inner_api/native", "./../../../interfaces/inner_api/native/system_sound_manager/include", "./../../../services/utils/include", "//third_party/libuv/include", "./../common", ] sources = [ "./src/ringtone_player/audio_renderer_info_napi.cpp", "./src/ringtone_player/ringtone_common_napi.cpp", "./src/ringtone_player/ringtone_options_napi.cpp", "./src/ringtone_player/ringtone_player_callback_napi.cpp", "./src/ringtone_player/ringtone_player_napi.cpp", "./src/system_sound_manager_napi.cpp", "./src/system_tone_player/system_tone_options_napi.cpp", "./src/system_tone_player/system_tone_player_napi.cpp", ] deps = [ "./../../native/system_sound_manager:system_sound_client" ] external_deps = [ "ability_runtime:abilitykit_native", "ability_runtime:napi_base_context", "access_token:libaccesstoken_sdk", "access_token:libtokenid_sdk", "audio_framework:audio_client", "c_utils:utils", "graphic_surface:surface", "hilog:libhilog", "ipc:ipc_single", "media_foundation:media_foundation", "napi:ace_napi", "qos_manager:qos", "resource_management:global_resmgr", ] relative_install_dir = "module/multimedia" part_name = "player_framework" subsystem_name = "multimedia" }