• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("./../../display_config.gni")
16
17group("hdf_display_buffer_service") {
18  deps = [
19    ":liballocator_driver_1.0",
20    ":liballocator_service_1.0",
21    ":libmapper_driver_1.0",
22    ":libmapper_service_1.0",
23    ":libmapper_service_1.2",
24    ":libmetadata_driver_1.1",
25    ":libmetadata_service_1.1",
26  ]
27}
28
29ohos_shared_library("liballocator_service_1.0") {
30  defines = []
31  defines += display_defines
32  include_dirs = [
33    "dfx",
34    "include",
35    "../../utils/include",
36  ]
37  sources = [
38    "dfx/display_buffer_dfx.cpp",
39    "src/allocator_service.cpp",
40  ]
41
42  external_deps = [
43    "c_utils:utils",
44    "drivers_interface_display:libdisplay_buffer_stub_1.0",
45    "drivers_interface_display:libdisplay_buffer_stub_1.2",
46    "graphic_surface:buffer_handle",
47    "hdf_core:libhdf_ipc_adapter",
48    "hdf_core:libhdf_utils",
49    "hdf_core:libhdi",
50    "hilog:libhilog",
51    "hitrace:hitrace_meter",
52    "ipc:ipc_single",
53  ]
54
55  if (drivers_peripheral_display_hicollie_enable) {
56    external_deps += [ "hicollie:libhicollie" ]
57  }
58
59  install_images = [ chipset_base_dir ]
60  subsystem_name = "hdf"
61  part_name = "drivers_peripheral_display"
62}
63
64ohos_shared_library("liballocator_driver_1.0") {
65  sources = [ "src/allocator_driver.cpp" ]
66
67  external_deps = [
68    "c_utils:utils",
69    "drivers_interface_display:libdisplay_buffer_stub_1.0",
70    "hdf_core:libhdf_host",
71    "hdf_core:libhdf_ipc_adapter",
72    "hdf_core:libhdf_utils",
73    "hdf_core:libhdi",
74    "hilog:libhilog",
75    "ipc:ipc_single",
76  ]
77
78  shlib_type = "hdi"
79  install_images = [ chipset_base_dir ]
80  subsystem_name = "hdf"
81  part_name = "drivers_peripheral_display"
82}
83
84ohos_shared_library("libmapper_service_1.0") {
85  defines = []
86  defines += display_defines
87  include_dirs = [
88    "include",
89    "../../utils/include",
90  ]
91  sources = [ "src/mapper_service.cpp" ]
92
93  external_deps = [
94    "c_utils:utils",
95    "drivers_interface_display:libdisplay_buffer_stub_1.0",
96    "drivers_interface_display:libdisplay_buffer_stub_1.2",
97    "graphic_surface:buffer_handle",
98    "hdf_core:libhdf_ipc_adapter",
99    "hdf_core:libhdf_utils",
100    "hdf_core:libhdi",
101    "hilog:libhilog",
102    "hitrace:hitrace_meter",
103    "ipc:ipc_single",
104  ]
105
106  install_images = [ chipset_base_dir ]
107  subsystem_name = "hdf"
108  innerapi_tags = [ "passthrough_indirect" ]
109  part_name = "drivers_peripheral_display"
110}
111
112ohos_shared_library("libmapper_service_1.2") {
113  include_dirs = [ "include" ]
114  sources = [ "src/mapper_service_1_2.cpp" ]
115
116  deps = [ ":libmapper_service_1.0" ]
117
118  external_deps = [
119    "c_utils:utils",
120    "drivers_interface_display:libdisplay_buffer_stub_1.2",
121    "graphic_surface:buffer_handle",
122    "hdf_core:libhdf_ipc_adapter",
123    "hdf_core:libhdf_utils",
124    "hdf_core:libhdi",
125    "hilog:libhilog",
126    "hitrace:hitrace_meter",
127    "ipc:ipc_single",
128  ]
129
130  install_images = [ chipset_base_dir ]
131  subsystem_name = "hdf"
132  innerapi_tags = [ "passthrough_indirect" ]
133  part_name = "drivers_peripheral_display"
134}
135
136ohos_shared_library("libmapper_driver_1.0") {
137  sources = [ "src/mapper_driver.cpp" ]
138
139  external_deps = [
140    "c_utils:utils",
141    "drivers_interface_display:libdisplay_buffer_stub_1.0",
142    "drivers_interface_display:libdisplay_buffer_stub_1.2",
143    "hdf_core:libhdf_host",
144    "hdf_core:libhdf_ipc_adapter",
145    "hdf_core:libhdf_utils",
146    "hdf_core:libhdi",
147    "hilog:libhilog",
148    "ipc:ipc_single",
149  ]
150
151  shlib_type = "hdi"
152  install_images = [ chipset_base_dir ]
153  subsystem_name = "hdf"
154  part_name = "drivers_peripheral_display"
155}
156
157ohos_shared_library("libmetadata_service_1.1") {
158  include_dirs = [
159    "include",
160    "../../utils/include",
161  ]
162  sources = [ "src/metadata_service.cpp" ]
163
164  external_deps = [
165    "c_utils:utils",
166    "drivers_interface_display:libdisplay_buffer_stub_1.0",
167    "drivers_interface_display:libdisplay_buffer_stub_1.1",
168    "drivers_interface_display:libdisplay_buffer_stub_1.2",
169    "graphic_surface:buffer_handle",
170    "hdf_core:libhdf_ipc_adapter",
171    "hdf_core:libhdf_utils",
172    "hdf_core:libhdi",
173    "hilog:libhilog",
174    "hitrace:hitrace_meter",
175    "ipc:ipc_single",
176  ]
177
178  install_images = [ chipset_base_dir ]
179  subsystem_name = "hdf"
180  innerapi_tags = [ "passthrough_indirect" ]
181  part_name = "drivers_peripheral_display"
182}
183
184ohos_shared_library("libmetadata_driver_1.1") {
185  sources = [ "src/metadata_driver.cpp" ]
186
187  external_deps = [
188    "c_utils:utils",
189    "drivers_interface_display:libdisplay_buffer_stub_1.1",
190    "hdf_core:libhdf_host",
191    "hdf_core:libhdf_ipc_adapter",
192    "hdf_core:libhdf_utils",
193    "hdf_core:libhdi",
194    "hilog:libhilog",
195    "ipc:ipc_single",
196  ]
197
198  shlib_type = "hdi"
199  install_images = [ chipset_base_dir ]
200  subsystem_name = "hdf"
201  part_name = "drivers_peripheral_display"
202}
203