• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-2023 HiHope Open Source Organization .
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("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import("./../../display_config.gni")
17
18root_path = "../../../../.."
19
20config("libdisplay_buffer_vdi_impl_default_config") {
21  include_dirs = [ "include/" ]
22}
23
24ohos_shared_library("display_buffer_vdi_impl_default") {
25  defines = []
26  defines += display_defines
27  sources = [
28    "src/display_buffer_vdi_impl.cpp",
29    "src/display_gralloc_gbm.cpp",
30    "src/hi_gbm.cpp",
31  ]
32
33  public_configs = [ ":libdisplay_buffer_vdi_impl_default_config" ]
34
35  include_dirs = [
36    "include/",
37    "${root_path}/drivers/peripheral/base",
38    "${root_path}/drivers/interface/display/composer/hdifd_parcelable",
39    "${root_path}/drivers/interface/display/buffer",
40    "${root_path}/drivers/peripheral/display/utils/include",
41    "${root_path}/drivers/peripheral/display/buffer/hdi_service/include",
42    "${root_path}/foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
43  ]
44
45  output_name = "display_buffer_vdi_impl_default"
46
47  cflags = [
48    "-DGRALLOC_GBM_SUPPORT",
49    "-Wno-macro-redefined",
50  ]
51
52  deps = [ "${root_path}/third_party/libdrm:libdrm" ]
53
54  external_deps = [
55    "c_utils:utils",
56    "drivers_interface_display:display_buffer_idl_headers",
57    "drivers_interface_display:display_composer_idl_headers",
58    "hdf_core:libhdf_utils",
59    "hilog:libhilog",
60    "ipc:ipc_single",
61  ]
62
63  install_enable = false
64  install_images = [ chipset_base_dir ]
65  innerapi_tags = [ "chipsetsdk" ]
66  subsystem_name = "hdf"
67  part_name = "drivers_peripheral_display"
68}
69