• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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("//build/ohos_var.gni")
16import("../../distributedaudio.gni")
17
18config("daudio_common_pub_config") {
19  include_dirs = [
20    "audiodata/include",
21    "audioeventcallback",
22    "audioparam",
23    "${common_path}/dfxutils/include",
24    "${common_path}/include",
25  ]
26}
27
28config("daudio_common_private_config") {
29  include_dirs = [ "//third_party/json/include" ]
30
31  include_dirs += [
32    "taskProcessor/include",
33    "${common_path}/include",
34    "${common_path}/dfx_utils/include",
35  ]
36}
37
38ohos_shared_library("distributed_audio_utils") {
39  configs = [ ":daudio_common_private_config" ]
40
41  public_configs = [ ":daudio_common_pub_config" ]
42
43  sources = [
44    "${common_path}/dfx_utils/src/daudio_hisysevent.cpp",
45    "${common_path}/dfx_utils/src/daudio_hitrace.cpp",
46    "${common_path}/src/daudio_latency_test.cpp",
47    "${common_path}/src/daudio_log.cpp",
48    "${common_path}/src/daudio_util.cpp",
49    "audiodata/src/audio_data.cpp",
50    "taskProcessor/src/task_impl.cpp",
51    "taskProcessor/src/task_queue.cpp",
52  ]
53
54  external_deps = [
55    "c_utils:utils",
56    "dsoftbus:softbus_client",
57    "hilog:libhilog",
58    "hisysevent:libhisysevent",
59    "hitrace:hitrace_meter",
60    "init:libbegetutil",
61  ]
62
63  defines = [
64    "HI_LOG_ENABLE",
65    "LOG_DOMAIN=0xD004100",
66  ]
67
68  subsystem_name = "distributedhardware"
69
70  part_name = "distributed_audio"
71}
72