• 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/config/components/hdi/hdi.gni")
15
16hdi("display_buffer") {
17  module_name = "display_buffer"
18
19  proxy_deps = [
20    "//drivers/interface/display/buffer/v1_0:libdisplay_buffer_proxy_1.0",
21    "//drivers/interface/display/buffer/v1_1:libdisplay_buffer_proxy_1.1",
22    "//drivers/interface/display/buffer/v1_2:libdisplay_buffer_proxy_1.2"
23  ]
24  stub_deps = [
25    "//drivers/interface/display/buffer/v1_0:libdisplay_buffer_stub_1.0",
26    "//drivers/interface/display/buffer/v1_1:libdisplay_buffer_stub_1.1",
27    "//drivers/interface/display/buffer/v1_2:libdisplay_buffer_stub_1.2"
28  ]
29
30  sources = [
31    "IMapper.idl",
32  ]
33  innerapi_tags = [
34    "chipsetsdk_indirect",
35    "platformsdk_indirect",
36  ]
37
38  branch_protector_ret = "pac_ret"
39
40  language = "cpp"
41  subsystem_name = "hdf"
42  part_name = "drivers_interface_display"
43}
44
45config("libdisplay_buffer_hdi_impl_config") {
46  include_dirs = [ "./../" ]
47}
48
49ohos_shared_library("libdisplay_buffer_hdi_impl_v1_3") {
50  sources = [
51    "../v1_0/hdi_impl/display_buffer_hdi_impl.cpp",
52    "../v1_1/hdi_impl/display_buffer_hdi_impl.cpp",
53    "../v1_2/hdi_impl/display_buffer_hdi_impl.cpp",
54    "./hdi_impl/display_buffer_hdi_impl.cpp",
55  ]
56
57  public_configs = [ ":libdisplay_buffer_hdi_impl_config" ]
58
59  deps = [
60    ":libdisplay_buffer_proxy_1.3",
61    "../v1_0:libdisplay_buffer_proxy_1.0",
62    "../v1_1:libdisplay_buffer_proxy_1.1",
63    "../v1_2:libdisplay_buffer_proxy_1.2",
64  ]
65
66  external_deps = [
67    "c_utils:utils",
68    "graphic_surface:buffer_handle",
69    "hdf_core:libhdf_ipc_adapter",
70    "hdf_core:libhdi",
71    "hdf_core:libpub_utils",
72    "hilog:libhilog",
73    "hitrace:hitrace_meter",
74    "ipc:ipc_single",
75  ]
76
77  install_images = [ "system" ]
78  subsystem_name = "hdf"
79  innerapi_tags = [
80    "chipsetsdk",
81    "platformsdk_indirect",
82  ]
83
84  branch_protector_ret = "pac_ret"
85
86  part_name = "drivers_interface_display"
87}
88