1# Copyright (c) 2021-2022 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") 15 16ohos_shared_library("audio_ringtone_client") { 17 install_enable = true 18 sources = [ "//foundation/multimedia/audio_standard/services/src/audio_service/client/audio_ringtone_manager.cpp" ] 19 20 public_configs = [ ":ringtone_external_library_config" ] 21 22 include_dirs = [ 23 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audioringtone/include", 24 "//foundation/multimedia/audio_standard/frameworks/native/ringtoneplayer/include", 25 "//foundation/multimedia/audio_standard/services/include/audio_service/client", 26 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocommon/include", 27 "//foundation/multimedia/medialibrary_standard/interfaces/innerkits/native/include", 28 "//foundation/distributeddatamgr/appdatamgr/interfaces/innerkits/native_rdb/include", 29 "//foundation/distributeddatamgr/appdatamgr/frameworks/innerkitsimpl/native_rdb/include", 30 ] 31 32 deps = [ 33 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 34 "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native", 35 "//foundation/aafwk/standard/interfaces/innerkits/uri:zuri", 36 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 37 "//foundation/graphic/standard/frameworks/surface:surface", 38 "//foundation/multimedia/media_standard/interfaces/innerkits/native/media:media_client", 39 ] 40 41 external_deps = [ 42 "ability_runtime:ability_manager", 43 "bundle_framework:appexecfwk_base", 44 "hiviewdfx_hilog_native:libhilog", 45 "native_appdatamgr:native_dataability", 46 "native_appdatamgr:native_rdb", 47 ] 48 49 cflags = [ 50 "-Wall", 51 "-Werror", 52 ] 53 54 subsystem_name = "multimedia" 55 part_name = "multimedia_audio_standard" 56} 57 58config("ringtone_external_library_config") { 59 include_dirs = [ "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audioringtone/include" ] 60} 61