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