1# Copyright (c) 2021 Bestechnic (Shanghai) Co., Ltd. All rights reserved. 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 14declare_args() { 15 bes_ace_enable = true 16} 17 18import("//drivers/adapter/khdf/liteos_m/hdf.gni") 19 20config("public") { 21 include_dirs = [ "." ] 22} 23 24hdf_driver("ui_adapter") { 25 sources = [ 26 "display_device.cpp", 27 "fbdev.cpp", 28 "touch_input.cpp", 29 "ui_main.cpp", 30 ] 31 32 public_configs = [ ":public" ] 33 public_deps = [ "//foundation/graphic/ui:ui" ] 34 if (bes_ace_enable) { 35 defines = [ "ENABLE_ACE" ] 36 public_deps += [ "//foundation/ace/ace_engine_lite/frameworks:ace_lite" ] 37 } 38 39 include_dirs = [ 40 "//drivers/peripheral/display/interfaces/include", 41 "//drivers/peripheral/base", 42 "//foundation/graphic/ui/frameworks", 43 "//third_party/freetype/include", 44 ] 45} 46