• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024-2025 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    integer_overflow = true
24    ubsan = true
25    boundary_sanitize = true
26  }
27  install_enable = true
28
29  include_dirs = [
30    "include",
31    "../../../interfaces/inner_api/native/audiocommon/include",
32    "../../../interfaces/inner_api/native/audiomanager/include",
33    "../../../services/audio_service/client/include",
34  ]
35
36  sources = [ "src/audio_safe_volume_notification_impl.cpp" ]
37
38  deps = [ "../../audio_policy:audio_policy_common" ]
39
40  external_deps = [
41    "ability_base:want",
42    "ability_base:zuri",
43    "c_utils:utils",
44    "distributed_notification_service:ans_innerkits",
45    "hilog:libhilog",
46    "i18n:intl_util",
47    "image_framework:image_native",
48    "ipc:ipc_single",
49    "os_account:os_account_innerkits",
50  ]
51
52  cflags = [
53    "-Wall",
54    "-Werror",
55  ]
56
57  if (target_cpu == "arm") {
58    cflags += [ "-DBINDER_IPC_32BIT" ]
59  }
60
61  ldflags = [ "-Wl" ]
62
63  innerapi_tags = [ "platformsdk" ]
64  subsystem_name = "multimedia"
65  part_name = "audio_framework"
66}
67