• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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")
15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import("../../../distributedaudio.gni")
17
18ohos_shared_library("libdaudio_manager_daudio_ext_service_1.0") {
19  include_dirs = [
20    "//third_party/cJSON",
21    "${hdf_ser_aud_ext_path}/include",
22    "${hdf_ser_aud_path}/include",
23    "${hdf_service_path}/hdi_service/common/include",
24    "${hdf_service_path}/hdi_service/common/log/include",
25    "${hdf_service_path}/hdi_service/common/utils/include",
26  ]
27
28  sources = [ "./src/daudio_manager_interface_impl.cpp" ]
29
30  deps = [ "//third_party/cJSON:cjson" ]
31  public_deps = [
32    "${hdf_ser_aud_path}:libaudio_manager_daudio_primary_service_1.0",
33    "${hdf_service_path}/hdi_service/common:libdaudio_hdf_utils",
34  ]
35
36  external_deps = [
37    "c_utils:utils",
38    "drivers_interface_distributed_audio:libdaudio_stub_1.0",
39    "drivers_interface_distributed_audio:libdaudioext_stub_1.0",
40    "hdf_core:libhdf_host",
41    "hdf_core:libhdf_utils",
42    "hilog:libhilog",
43    "ipc:ipc_single",
44  ]
45
46  defines = [
47    "HI_LOG_ENABLE",
48    "LOG_DOMAIN=0xD004130",
49  ]
50
51  install_images = [ chipset_base_dir ]
52  subsystem_name = "hdf"
53  part_name = "drivers_peripheral_distributed_audio"
54}
55
56ohos_shared_library("libdaudio_ext_driver") {
57  include_dirs = [ "${hdf_ser_aud_ext_path}/include" ]
58
59  sources = [ "./src/daudio_manager_driver.cpp" ]
60
61  deps = [ "${hdf_ser_aud_ext_path}:libdaudio_manager_daudio_ext_service_1.0" ]
62
63  external_deps = [
64    "c_utils:utils",
65    "drivers_interface_distributed_audio:libdaudio_stub_1.0",
66    "drivers_interface_distributed_audio:libdaudioext_stub_1.0",
67    "hdf_core:libhdf_host",
68    "hdf_core:libhdf_ipc_adapter",
69    "hdf_core:libhdf_utils",
70    "hdf_core:libhdi",
71    "hilog:libhilog",
72    "ipc:ipc_single",
73  ]
74
75  shlib_type = "hdi"
76  install_images = [ chipset_base_dir ]
77  subsystem_name = "hdf"
78  part_name = "drivers_peripheral_distributed_audio"
79}
80
81group("hdf_daudio_ext_service") {
82  deps = [
83    ":libdaudio_ext_driver",
84    ":libdaudio_manager_daudio_ext_service_1.0",
85  ]
86}
87