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("//base/update/updater/updater_default_cfg.gni") 15import("//build/ohos.gni") 16 17config("updater_ui_support_cfg") { 18 if (updater_ui_support) { 19 defines = [ "UPDATER_UI_SUPPORT" ] 20 } 21} 22 23ohos_static_library("libui") { 24 defines = [ 25 "ENABLE_BITMAP_FONT = 0", 26 "ENABLE_ICU = 0", 27 "ENABLE_MULTI_FONT = 0", 28 "ENABLE_SHAPING = 0", 29 "ENABLE_STATIC_FONT = 0", 30 "ENABLE_VECTOR_FONT = 1", 31 ] 32 33 public_configs = [ ":updater_ui_support_cfg" ] 34 35 sources = [ 36 "control/callback_manager.cpp", 37 "control/event_listener.cpp", 38 "control/event_manager.cpp", 39 "driver/drm_driver.cpp", 40 "driver/fbdev_driver.cpp", 41 "driver/graphic_engine.cpp", 42 "driver/input_event.cpp", 43 "driver/surface_dev.cpp", 44 "language/language_ui.cpp", 45 "strategy/logo_strategy.cpp", 46 "strategy/progress_strategy.cpp", 47 "strategy/ui_strategy.cpp", 48 "updater_ui.cpp", 49 "updater_ui_config.cpp", 50 "updater_ui_env.cpp", 51 "updater_ui_facade.cpp", 52 "updater_ui_tools.cpp", 53 "view/component/box_progress_adapter.cpp", 54 "view/component/component_factory.cpp", 55 "view/component/img_view_adapter.cpp", 56 "view/component/label_btn_adapter.cpp", 57 "view/component/text_label_adapter.cpp", 58 "view/layout/layout_parser.cpp", 59 "view/page/base_page.cpp", 60 "view/page/page.cpp", 61 "view/page/page_manager.cpp", 62 "view/page/sub_page.cpp", 63 "view/view_api.cpp", 64 ] 65 66 include_dirs = [ 67 "//third_party/libpng", 68 "//third_party/libdrm/include/drm", 69 "//third_party/libdrm", 70 "//base/update/updater/services/include/log", 71 "//base/update/updater/services/include", 72 "//drivers/hdf_core/framework/ability/sbuf/include", 73 "//drivers/hdf_core/framework/include/platform", 74 "//drivers/hdf_core/framework/include/core", 75 "//drivers/hdf_core/framework/include/osal", 76 "//drivers/hdf_core/framework/include/utils", 77 "//drivers/hdf_core/framework/include/config", 78 "//drivers/hdf_core/framework/include", 79 "//drivers/hdf_core/adapter/uhdf2/hdi", 80 "//drivers/peripheral/input/hal/include", 81 "//drivers/peripheral/input/interfaces/include", 82 "//base/update/updater/utils/include", 83 "//base/update/updater/utils/json", 84 "//base/update/updater/services", 85 "//base/update/updater/interfaces/kits/include", 86 "//base/update/updater/services/ui", 87 "//base/update/updater/services/ui/include", 88 "//base/update/updater/services/ui/control", 89 "//base/update/updater/services/ui/driver", 90 "//base/update/updater/services/ui/view", 91 "//base/update/updater/services/ui/language", 92 "//foundation/graphic/ui/frameworks", 93 "//foundation/graphic/ui/interfaces/kits", 94 "//foundation/graphic/ui/interfaces/innerkits", 95 "//foundation/graphic/utils/interfaces/kits", 96 "//foundation/graphic/utils/interfaces/innerkits", 97 ] 98 99 deps = [ 100 "//base/update/updater/interfaces/kits/packages:libpackageExt", 101 "//base/update/updater/services/log:libupdaterlog", 102 "//base/update/updater/utils:libutils", 103 "//drivers/peripheral/input/hal:hdi_input", 104 "//foundation/graphic/ui/ext/updater:libupdater_layout", 105 "//third_party/bounds_checking_function:libsec_static", 106 "//third_party/cJSON:cjson", 107 "//third_party/libdrm:libdrm", 108 "//third_party/libpng:libpng", 109 ] 110} 111