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/ohos.gni")
15
16ohos_static_library("def_display_layer") {
17  output_name = "display_layer"
18  sources = [
19    "../disp_hal.c",
20    "display_layer.c",
21  ]
22  include_dirs = [
23    "../",
24    "../../interfaces/include",
25    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
26  ]
27  deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
28  external_deps = [ "hdf_core:libhdf_utils" ]
29  defines = [ "__USER__" ]
30  cflags = [
31    "-Wall",
32    "-Wextra",
33    "-Werror",
34    "-fsigned-char",
35    "-fno-common",
36    "-fno-strict-aliasing",
37    "-Wno-format",
38    "-Wno-format-extra-args",
39  ]
40}
41
42ohos_shared_library("def_display_gralloc") {
43  output_name = "display_gralloc"
44  sources = [ "display_gralloc.c" ]
45  include_dirs = [
46    "../",
47    "../../interfaces/include",
48    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
49  ]
50
51  deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
52  external_deps = [ "hdf_core:libhdf_utils" ]
53  cflags = [
54    "-Wall",
55    "-Wextra",
56    "-Werror",
57    "-fsigned-char",
58    "-fno-common",
59    "-fno-strict-aliasing",
60    "-Wno-format",
61    "-Wno-format-extra-args",
62  ]
63}
64
65ohos_shared_library("def_display_gfx") {
66  output_name = "display_gfx"
67  sources = [ "display_gfx.c" ]
68  include_dirs = [
69    "../",
70    "../../interfaces/include",
71    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
72  ]
73
74  deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
75  external_deps = [ "hdf_core:libhdf_utils" ]
76  cflags = [
77    "-Wall",
78    "-Wextra",
79    "-Werror",
80    "-fsigned-char",
81    "-fno-common",
82    "-fno-strict-aliasing",
83    "-Wno-format",
84    "-Wno-format-extra-args",
85  ]
86}
87
88lite_component("hdi_display") {
89  features = [
90    ":def_display_layer",
91    ":def_display_gralloc",
92    ":def_display_gfx",
93  ]
94}
95