• 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("display_composer_hdi_service") {
18  deps = [
19    ":libdisplay_composer_driver_1.0",
20    ":libdisplay_composer_service_1.1",
21  ]
22}
23
24ohos_shared_library("libdisplay_composer_service_1.1") {
25  defines = []
26  defines += display_defines
27  include_dirs = [
28    "../../../../interface/display/composer",
29    "../../utils/include",
30    "include",
31  ]
32  sources = [ "src/display_composer_service.cpp" ]
33
34  external_deps = [
35    "c_utils:utils",
36    "drivers_interface_display:libcomposer_buffer_cache",
37    "drivers_interface_display:libdisplay_buffer_stub_1.0",
38    "drivers_interface_display:libdisplay_composer_stub_1.0",
39    "drivers_interface_display:libdisplay_composer_stub_1.1",
40    "graphic_surface:buffer_handle",
41    "hdf_core:libhdf_ipc_adapter",
42    "hdf_core:libhdf_utils",
43    "hdf_core:libhdi",
44    "hilog:libhilog",
45    "hitrace:hitrace_meter",
46    "init:libbegetutil",
47    "ipc:ipc_single",
48  ]
49
50  if (build_variant != "user") {
51    include_dirs += [ "../../hal" ]
52    sources += [
53      "src/display_dump_disp.cpp",
54      "src/display_dump_service.cpp",
55      "src/display_dump_vdi.cpp",
56    ]
57    external_deps += [ "hdf_core:libhdf_host" ]
58    cflags_cc = [ "-DUSING_OHOS" ]
59    defines += [
60      "DISPLAY_COMPOSER_SERVICE_HIDUMPER",
61      "DISPLAY_COMSPOER_DEBUG_DUMP",
62    ]
63  }
64
65  install_images = [ chipset_base_dir ]
66  subsystem_name = "hdf"
67  part_name = "drivers_peripheral_display"
68}
69
70ohos_shared_library("libdisplay_composer_driver_1.0") {
71  include_dirs = []
72  sources = [ "src/display_composer_driver.cpp" ]
73
74  external_deps = [
75    "c_utils:utils",
76    "drivers_interface_display:libdisplay_buffer_stub_1.0",
77    "drivers_interface_display:libdisplay_composer_stub_1.0",
78    "drivers_interface_display:libdisplay_composer_stub_1.1",
79    "hdf_core:libhdf_host",
80    "hdf_core:libhdf_ipc_adapter",
81    "hdf_core:libhdf_utils",
82    "hdf_core:libhdi",
83    "hilog:libhilog",
84    "hitrace:hitrace_meter",
85    "init:libbegetutil",
86    "ipc:ipc_single",
87  ]
88
89  shlib_type = "hdi"
90  install_images = [ chipset_base_dir ]
91  subsystem_name = "hdf"
92  part_name = "drivers_peripheral_display"
93}
94