• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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  kh_ace_enable = false
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    "display_device.cpp",
27    "fbdev.cpp",
28    "ui_main.cpp",
29  ]
30
31  if (defined(LOSCFG_DRIVERS_USER_KEY_INPUT)) {
32    sources += [ "key_input.cpp" ]
33  }
34
35  public_configs = [ ":public" ]
36  public_deps = [ "//foundation/graphic/ui:ui" ]
37  if (kh_ace_enable) {
38    defines = [ "ENABLE_ACE" ]
39    public_deps += [ "//foundation/arkui/ace_engine_lite/frameworks:ace_lite" ]
40  }
41
42  include_dirs = [
43    "//drivers/peripheral/display/interfaces/include",
44    "//drivers/peripheral/base",
45    "//foundation/graphic/ui/frameworks",
46    "//third_party/freetype/include",
47    "//device/board/kaihong/khdvk_450a/liteos_m/key_input",
48    "//device/board/kaihong/khdvk_450a/liteos_m/ui",
49  ]
50}
51