1# Copyright (c) 2024 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_safe_volume_notification_impl") { 17 stack_protector_ret = true 18 sanitize = { 19 cfi = true 20 cfi_cross_dso = true 21 cfi_vcall_icall_only = true 22 debug = false 23 } 24 install_enable = true 25 26 include_dirs = [ 27 "include", 28 "../../../interfaces/inner_api/native/audiocommon/include", 29 ] 30 31 sources = [ "src/audio_safe_volume_notification_impl.cpp" ] 32 33 deps = [] 34 35 external_deps = [ 36 "ability_base:want", 37 "ability_base:zuri", 38 "c_utils:utils", 39 "distributed_notification_service:ans_innerkits", 40 "hilog:libhilog", 41 "i18n:intl_util", 42 "image_framework:image_native", 43 "ipc:ipc_single", 44 "os_account:os_account_innerkits", 45 "resource_management:global_resmgr", 46 ] 47 48 cflags = [ 49 "-Wall", 50 "-Werror", 51 ] 52 53 if (target_cpu == "arm") { 54 cflags += [ "-DBINDER_IPC_32BIT" ] 55 } 56 57 ldflags = [ "-Wl" ] 58 59 innerapi_tags = [ "platformsdk" ] 60 subsystem_name = "multimedia" 61 part_name = "audio_framework" 62} 63