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  imports = [ "ohos.hdi.display.buffer.v1_0:display_buffer" ]
19
20  sources = [
21    "DisplayBufferType.idl",
22    "IMapper.idl",
23  ]
24  innerapi_tags = [
25    "chipsetsdk_indirect",
26    "platformsdk_indirect",
27  ]
28
29  branch_protector_ret = "pac_ret"
30
31  language = "cpp"
32  subsystem_name = "hdf"
33  part_name = "drivers_interface_display"
34}
35
36config("libdisplay_buffer_hdi_impl_config") {
37  include_dirs = [ "./../" ]
38}
39
40ohos_shared_library("libdisplay_buffer_hdi_impl_v1_2") {
41  sources = [
42    "../v1_0/hdi_impl/display_buffer_hdi_impl.cpp",
43    "../v1_1/hdi_impl/display_buffer_hdi_impl.cpp",
44    "./hdi_impl/display_buffer_hdi_impl.cpp",
45  ]
46
47  public_configs = [ ":libdisplay_buffer_hdi_impl_config" ]
48
49  deps = [
50    ":libdisplay_buffer_proxy_1.2",
51    "../v1_0:libdisplay_buffer_proxy_1.0",
52    "../v1_1:libdisplay_buffer_proxy_1.1",
53  ]
54
55  external_deps = [
56    "c_utils:utils",
57    "graphic_surface:buffer_handle",
58    "hdf_core:libhdi",
59    "hdf_core:libpub_utils",
60    "hilog:libhilog",
61    "ipc:ipc_single",
62  ]
63
64  install_images = [ "system" ]
65  subsystem_name = "hdf"
66  innerapi_tags = [
67    "chipsetsdk_indirect",
68    "platformsdk_indirect",
69  ]
70
71  branch_protector_ret = "pac_ret"
72
73  part_name = "drivers_interface_display"
74}
75