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") 15import("//drivers/hdf_core/adapter/khdf/liteos_m/hdf.gni") 16 17hdf_driver("display_layer") { 18 output_name = "display_layer" 19 sources = [ 20 "$HDF_PERIPHERAL_PATH/display/hal/disp_hal.c", 21 "display_layer.c", 22 ] 23 include_dirs = [ 24 "../../driver", 25 "../../driver/video", 26 "$HDF_PERIPHERAL_PATH/base", 27 "$HDF_PERIPHERAL_PATH/display/hal", 28 "$HDF_PERIPHERAL_PATH/display/interfaces/include", 29 ] 30 defines = [ "__USER__" ] 31 cflags = [ 32 "-Wall", 33 "-Wextra", 34 "-fsigned-char", 35 "-fno-common", 36 "-fno-strict-aliasing", 37 "-Wno-format", 38 "-Wno-format-extra-args", 39 ] 40} 41 42hdf_driver("display_gralloc") { 43 output_name = "display_gralloc" 44 sources = [ "display_gralloc.c" ] 45 include_dirs = [ 46 "$HDF_PERIPHERAL_PATH/base", 47 "$HDF_PERIPHERAL_PATH/display/hal", 48 "$HDF_PERIPHERAL_PATH/display/interfaces/include", 49 ] 50 cflags = [ 51 "-Wall", 52 "-Wextra", 53 "-fsigned-char", 54 "-fno-common", 55 "-fno-strict-aliasing", 56 "-Wno-format", 57 "-Wno-format-extra-args", 58 ] 59} 60 61hdf_driver("display_gfx") { 62 output_name = "display_gfx" 63 sources = [ "display_gfx.c" ] 64 include_dirs = [ 65 "$HDF_PERIPHERAL_PATH/base", 66 "$HDF_PERIPHERAL_PATH/display/hal", 67 "$HDF_PERIPHERAL_PATH/display/interfaces/include", 68 ] 69 cflags = [ 70 "-Wall", 71 "-Wextra", 72 "-fsigned-char", 73 "-fno-common", 74 "-fno-strict-aliasing", 75 "-Wno-format", 76 "-Wno-format-extra-args", 77 ] 78} 79 80lite_component("hdi_display") { 81 features = [ 82 ":display_layer", 83 ":display_gralloc", 84 ":display_gfx", 85 ] 86} 87