1# Copyright (c) 2022 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
14declare_args() {
15  riscv_ace_enable = true
16}
17
18import("//drivers/hdf_core/adapter/khdf/liteos_m/hdf.gni")
19
20config("public") {
21  include_dirs = [ "." ]
22}
23
24hdf_driver("ui_adapter") {
25  sources = [
26    "disp_dev.cpp",
27    "fbdev.cpp",
28    "input_dev.cpp",
29    "ui_adapter.cpp",
30  ]
31
32  public_configs = [ ":public" ]
33  public_deps = [ "//foundation/arkui/ui_lite:ui" ]
34  if (riscv_ace_enable) {
35    defines = [ "ENABLE_ACE" ]
36    public_deps += [ "//foundation/arkui/ace_engine_lite/frameworks:ace_lite" ]
37  }
38
39  include_dirs = [
40    "//drivers/peripheral/display/interfaces/include",
41    "//drivers/peripheral/input/interfaces/include",
42    "//drivers/peripheral/base",
43    "//foundation/arkui/ui_lite/frameworks",
44    "//third_party/FreeBSD/sys/dev/evdev",
45  ]
46  deps = [ "//third_party/freetype:freetype" ]
47}
48