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