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 "//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 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 26 ] 27 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 28 external_deps = [ "device_driver_framework: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 "//drivers/peripheral/display/hal", 47 "//drivers/drivers/peripheral/display/hal", 48 "//drivers/peripheral/display/interfaces/include", 49 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 50 ] 51 52 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 53 external_deps = [ "device_driver_framework:libhdf_utils" ] 54 cflags = [ 55 "-Wall", 56 "-Wextra", 57 "-Werror", 58 "-fsigned-char", 59 "-fno-common", 60 "-fno-strict-aliasing", 61 "-Wno-format", 62 "-Wno-format-extra-args", 63 ] 64} 65 66ohos_shared_library("def_display_gfx") { 67 output_name = "display_gfx" 68 sources = [ "display_gfx.c" ] 69 include_dirs = [ 70 "//drivers/peripheral/display/hal", 71 "//drivers/peripheral/display/interfaces/include", 72 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 73 ] 74 75 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 76 external_deps = [ "device_driver_framework:libhdf_utils" ] 77 cflags = [ 78 "-Wall", 79 "-Wextra", 80 "-Werror", 81 "-fsigned-char", 82 "-fno-common", 83 "-fno-strict-aliasing", 84 "-Wno-format", 85 "-Wno-format-extra-args", 86 ] 87} 88 89lite_component("hdi_display") { 90 features = [ 91 ":def_display_layer", 92 ":def_display_gralloc", 93 ":def_display_gfx", 94 ] 95} 96