• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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")
15import("../audio.gni")
16
17config("drivers_peripheral_audio_dfx_header") {
18  include_dirs = [
19    "include",
20    "../hdi_service/vendor_interface/utils",
21  ]
22}
23
24ohos_static_library("libaudio_dfx_static") {
25  external_deps = []
26  defines = []
27
28  if (enable_c_utils) {
29    external_deps += [ "c_utils:utils" ]
30  }
31
32  if (!drivers_peripheral_audio_feature_community) {
33    if (drivers_peripheral_audio_feature_hitrace_enable) {
34      external_deps += [ "hitrace:hitrace_meter" ]
35      defines += [ "AUDIO_HITRACE_ENABLE" ]
36    }
37
38    if (drivers_peripheral_audio_feature_hicollie_enable) {
39      external_deps += [ "hicollie:libhicollie" ]
40      defines += [ "AUDIO_HICOLLIE_ENABLE" ]
41    }
42
43    if (drivers_peripheral_audio_feature_hisysevent_enable) {
44      external_deps += [ "hisysevent:libhisysevent" ]
45      defines += [ "AUDIO_HISYSEVENT_ENABLE" ]
46    }
47  }
48
49  external_deps += [
50    "drivers_interface_audio:libaudio_proxy_5.0",
51    "hdf_core:libhdf_utils",
52    "hilog:libhilog",
53  ]
54
55  public_configs = [ ":drivers_peripheral_audio_dfx_header" ]
56  include_dirs = [ "include" ]
57
58  sources = [ "src/audio_dfx.cpp" ]
59
60  part_name = "drivers_peripheral_audio"
61  subsystem_name = "hdf"
62}
63