• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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("//drivers/adapter/uhdf2/uhdf.gni")
16
17hdi_hisplay_device_base = "//drivers/peripheral/display/hdi_service/device"
18
19group("display_device_server") {
20  deps = [ ":libdisplay_device_server" ]
21}
22
23ohos_shared_library("libdisplay_device_server") {
24  include_dirs = [
25    "//drivers/peripheral/display/interfaces/include",
26    "//utils/native/base/include",
27    "$hdi_hisplay_device_base/include/util",
28    "$hdi_hisplay_device_base/include/interfaces",
29    "$hdi_hisplay_device_base/include/server",
30    "$hdi_hisplay_device_base/include/proxy",
31  ]
32
33  sources = [
34    "$hdi_hisplay_device_base/src/util/display_device_common.cpp",
35    "display_device_callback_proxy.cpp",
36    "display_device_host_driver.cpp",
37    "display_device_service.cpp",
38  ]
39  deps = [
40    "//drivers/peripheral/display/hal:hdi_display_device",
41    "//foundation/graphic/standard/frameworks/surface:surface",
42    "//utils/native/base:utils",
43  ]
44
45  cflags = [
46    "-Wall",
47    "-Wextra",
48    "-Werror",
49    "-Wno-inconsistent-missing-override",
50  ]
51
52  external_deps = [
53    "device_driver_framework:libhdf_host",
54    "device_driver_framework:libhdf_ipc_adapter",
55    "device_driver_framework:libhdf_utils",
56    "device_driver_framework:libhdi",
57    "hiviewdfx_hilog_native:libhilog",
58    "ipc:ipc_single",
59  ]
60
61  install_images = [ chipset_base_dir ]
62  install_enable = true
63  subsystem_name = "hdf"
64  part_name = "display_device_driver"
65}
66