• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
14if (defined(ohos_lite)) {
15  group("hdi_display") {
16    public_deps = [ "$ohos_board_adapter_dir/display:hdi_display" ]
17  }
18  group("hdi_display_device") {
19    deps = []
20    public_configs = []
21  }
22  group("hdi_display_gralloc") {
23    deps = []
24    public_configs = []
25  }
26} else {
27  import("//build/ohos.gni")
28  import("//vendor/${product_company}/${product_name}/product.gni")
29
30  config("display_hdi_public_config") {
31    visibility = [ ":*" ]
32    include_dirs = [
33      "//drivers/peripheral/base",
34      "//drivers/peripheral/display/interfaces/include",
35      "//third_party/bounds_checking_function/include",
36    ]
37  }
38
39  group("hdi_display") {
40    deps = [
41      ":hdi_display_device",
42      ":hdi_display_gfx",
43      ":hdi_display_gralloc",
44      ":hdi_display_layer",
45      "//drivers/peripheral/display/hdi_service/device:display_device_service",
46      "//drivers/peripheral/display/hdi_service/gralloc/client:hdi_gralloc_client",
47      "//drivers/peripheral/display/hdi_service/gralloc/server:hdi_gralloc_stub",
48      "//drivers/peripheral/display/hdi_service/video_layer/client:video_layer_client",
49    ]
50    if (target_cpu == "arm") {
51      deps += [ "//drivers/peripheral/display/hdi_service/video_layer/server:video_layer_service" ]
52    }
53    public_configs = [ ":display_hdi_public_config" ]
54  }
55
56  if (product_name != "ohos-arm64" && target_cpu != "x86_64") {
57    device_hal = display_device_hal
58    group("hdi_display_device") {
59      deps = [ "//device/${device_hal}/display:display_device" ]
60      public_configs = [ ":display_hdi_public_config" ]
61    }
62
63    group("hdi_display_gralloc") {
64      deps = [ "//device/${device_hal}/display:display_gralloc" ]
65      public_configs = [ ":display_hdi_public_config" ]
66    }
67
68    group("hdi_display_gfx") {
69      deps = [ "//device/${device_hal}/display:display_gfx" ]
70      public_configs = [ ":display_hdi_public_config" ]
71    }
72
73    group("hdi_display_layer") {
74      deps = [ "//device/${device_hal}/display:display_layer" ]
75      public_configs = [ ":display_hdi_public_config" ]
76    }
77  } else {
78    group("hdi_display_device") {
79      deps = [ "//device/soc/hisilicon/common/hal/display:display_device" ]
80      public_configs = [ ":display_hdi_public_config" ]
81    }
82
83    group("hdi_display_gralloc") {
84      deps = [ "//device/soc/hisilicon/common/hal/display:display_gralloc" ]
85      public_configs = [ ":display_hdi_public_config" ]
86    }
87
88    group("hdi_display_gfx") {
89      deps = [ "//device/soc/hisilicon/common/hal/display:display_gfx" ]
90      public_configs = [ ":display_hdi_public_config" ]
91    }
92
93    group("hdi_display_layer") {
94      deps = [ "//device/soc/hisilicon/common/hal/display:display_layer" ]
95      public_configs = [ ":display_hdi_public_config" ]
96    }
97  }
98}
99