• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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")
15import("../../../distributedaudio.gni")
16
17ohos_shared_library("libdaudio_manager_daudio_ext_service_2.1") {
18  sanitize = {
19    boundary_sanitize = true
20    cfi = true
21    cfi_cross_dso = true
22    debug = false
23    integer_overflow = true
24    ubsan = true
25  }
26
27  include_dirs = [
28    "${hdf_ser_aud_ext_path}/include",
29    "${hdf_ser_aud_path}/include",
30    "${hdf_service_path}/hdi_service/common/include",
31    "${hdf_service_path}/hdi_service/common/log/include",
32    "${hdf_service_path}/hdi_service/common/utils/include",
33  ]
34
35  sources = [ "./src/daudio_manager_interface_impl.cpp" ]
36
37  deps = [
38    "${hdf_ser_aud_path}:libaudio_manager_daudio_primary_service_1.0",
39    "${hdf_service_path}/hdi_service/common:libdaudio_hdf_utils",
40  ]
41
42  ldflags = [
43    "-fpie",
44    "-Wl,-z,relro",
45    "-Wl,-z,now",
46  ]
47
48  external_deps = [
49    "cJSON:cjson",
50    "c_utils:utils",
51    "drivers_interface_distributed_audio:libdaudio_stub_1.0",
52    "drivers_interface_distributed_audio:libdaudioext_stub_2.1",
53    "hdf_core:libhdf_host",
54    "hdf_core:libhdf_utils",
55    "hilog:libhilog",
56    "ipc:ipc_single",
57  ]
58
59  defines = [
60    "HI_LOG_ENABLE",
61    "LOG_DOMAIN=0xD004130",
62  ]
63
64  install_images = [ chipset_base_dir ]
65  subsystem_name = "hdf"
66  part_name = "drivers_peripheral_distributed_audio"
67}
68
69ohos_shared_library("libdaudio_ext_driver") {
70  sanitize = {
71    boundary_sanitize = true
72    cfi = true
73    cfi_cross_dso = true
74    debug = false
75    integer_overflow = true
76    ubsan = true
77  }
78
79  include_dirs = [ "${hdf_ser_aud_ext_path}/include" ]
80
81  sources = [ "./src/daudio_manager_driver.cpp" ]
82
83  ldflags = [
84    "-fpie",
85    "-Wl,-z,relro",
86    "-Wl,-z,now",
87  ]
88
89  deps = [
90    "${hdf_ser_aud_ext_path}:libdaudio_manager_daudio_ext_service_2.1",
91    "${hdf_ser_aud_path}:libaudio_manager_daudio_primary_service_1.0",
92    "${hdf_service_path}/hdi_service/common:libdaudio_hdf_utils",
93  ]
94
95  external_deps = [
96    "c_utils:utils",
97    "drivers_interface_distributed_audio:libdaudio_stub_1.0",
98    "drivers_interface_distributed_audio:libdaudioext_stub_2.1",
99    "hdf_core:libhdf_host",
100    "hdf_core:libhdf_ipc_adapter",
101    "hdf_core:libhdf_utils",
102    "hdf_core:libhdi",
103    "hilog:libhilog",
104    "ipc:ipc_single",
105  ]
106
107  shlib_type = "hdi"
108  install_images = [ chipset_base_dir ]
109  subsystem_name = "hdf"
110  part_name = "drivers_peripheral_distributed_audio"
111}
112
113group("hdf_daudio_ext_service") {
114  deps = [
115    ":libdaudio_ext_driver",
116    ":libdaudio_manager_daudio_ext_service_2.1",
117  ]
118}
119