• 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
14import("//build/lite/config/component/lite_component.gni")
15
16shared_library("display_layer") {
17  output_name = "display_layer"
18  sources = [
19    "//drivers/peripheral/display/hal/disp_hal.c",
20    "display_layer.c",
21  ]
22  include_dirs = [
23    "//drivers/peripheral/base",
24    "//drivers/peripheral/display/hal",
25    "//drivers/peripheral/display/interfaces/include",
26    "//drivers/hdf_core/adapter/uhdf/posix/include",
27    "//drivers/hdf_core/framework/include/utils",
28    "//drivers/hdf_core/framework/ability/sbuf/include",
29    "//drivers/hdf_core/framework/utils/include",
30    "//drivers/hdf_core/framework/include/core",
31    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
32  ]
33  deps = [
34    "//drivers/hdf_core/adapter/uhdf/manager:hdf_core",
35    "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal",
36    "//third_party/bounds_checking_function:libsec_shared",
37  ]
38  defines = [ "__USER__" ]
39  cflags = [
40    "-Wall",
41    "-Wextra",
42    "-Werror",
43    "-fsigned-char",
44    "-fno-common",
45    "-fno-strict-aliasing",
46    "-Wno-format",
47    "-Wno-format-extra-args",
48  ]
49}
50
51shared_library("display_gralloc") {
52  output_name = "display_gralloc"
53  sources = [ "display_gralloc.c" ]
54  include_dirs = [
55    "//drivers/peripheral/base",
56    "//drivers/peripheral/display/hal",
57    "//drivers/drivers/peripheral/display/hal",
58    "//drivers/peripheral/display/interfaces/include",
59    "//drivers/hdf_core/framework/include/utils",
60    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
61    "//drivers/hdf_core/adapter/uhdf/posix/include",
62  ]
63
64  deps = [
65    "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal",
66    "//third_party/bounds_checking_function:libsec_shared",
67  ]
68  cflags = [
69    "-Wall",
70    "-Wextra",
71    "-Werror",
72    "-fsigned-char",
73    "-fno-common",
74    "-fno-strict-aliasing",
75    "-Wno-format",
76    "-Wno-format-extra-args",
77  ]
78}
79
80shared_library("display_gfx") {
81  output_name = "display_gfx"
82  sources = [ "display_gfx.c" ]
83  include_dirs = [
84    "//drivers/peripheral/base",
85    "//drivers/peripheral/display/hal",
86    "//drivers/peripheral/display/interfaces/include",
87    "//drivers/hdf_core/framework/include/utils",
88    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
89    "//drivers/hdf_core/adapter/uhdf/posix/include",
90  ]
91
92  deps = [
93    "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal",
94    "//third_party/bounds_checking_function:libsec_shared",
95  ]
96  cflags = [
97    "-Wall",
98    "-Wextra",
99    "-Werror",
100    "-fsigned-char",
101    "-fno-common",
102    "-fno-strict-aliasing",
103    "-Wno-format",
104    "-Wno-format-extra-args",
105  ]
106}
107
108lite_component("hdi_display") {
109  features = [
110    ":display_layer",
111    ":display_gralloc",
112    ":display_gfx",
113  ]
114}
115