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 "//drivers/hdf_core/framework/include/core", 61 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 62 "//drivers/hdf_core/adapter/uhdf/posix/include", 63 ] 64 65 deps = [ 66 "//drivers/hdf_core/adapter/uhdf/manager:hdf_core", 67 "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal", 68 "//third_party/bounds_checking_function:libsec_shared", 69 ] 70 cflags = [ 71 "-Wall", 72 "-Wextra", 73 "-Werror", 74 "-fsigned-char", 75 "-fno-common", 76 "-fno-strict-aliasing", 77 "-Wno-format", 78 "-Wno-format-extra-args", 79 ] 80} 81 82shared_library("display_gfx") { 83 output_name = "display_gfx" 84 sources = [ "display_gfx.c" ] 85 include_dirs = [ 86 "//drivers/peripheral/base", 87 "//drivers/peripheral/display/hal", 88 "//drivers/peripheral/display/interfaces/include", 89 "//drivers/hdf_core/framework/include/utils", 90 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 91 "//drivers/hdf_core/adapter/uhdf/posix/include", 92 ] 93 94 deps = [ 95 "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal", 96 "//third_party/bounds_checking_function:libsec_shared", 97 ] 98 cflags = [ 99 "-Wall", 100 "-Wextra", 101 "-Werror", 102 "-fsigned-char", 103 "-fno-common", 104 "-fno-strict-aliasing", 105 "-Wno-format", 106 "-Wno-format-extra-args", 107 ] 108} 109 110lite_component("hdi_display") { 111 features = [ 112 ":display_layer", 113 ":display_gralloc", 114 ":display_gfx", 115 ] 116} 117