1a3e0fd82Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 2a3e0fd82Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3a3e0fd82Sopenharmony_ci# you may not use this file except in compliance with the License. 4a3e0fd82Sopenharmony_ci# You may obtain a copy of the License at 5a3e0fd82Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 6a3e0fd82Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 7a3e0fd82Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 8a3e0fd82Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9a3e0fd82Sopenharmony_ci# See the License for the specific language governing permissions and 10a3e0fd82Sopenharmony_ci# limitations under the License. 11a3e0fd82Sopenharmony_ci 12a3e0fd82Sopenharmony_ciif (os_level == "standard") { 13a3e0fd82Sopenharmony_ci import("//build/ohos.gni") 14a3e0fd82Sopenharmony_ci import("//foundation/arkui/ui_lite/ui.gni") 15a3e0fd82Sopenharmony_ci import("//foundation/graphic/graphic_utils_lite/utils.gni") 16a3e0fd82Sopenharmony_ci 17a3e0fd82Sopenharmony_ci config("libupdater_layout_header_files") { 18a3e0fd82Sopenharmony_ci visibility = [ ":*" ] 19a3e0fd82Sopenharmony_ci include_dirs = arkui_ui_lite_include_dirs + graphic_utils_include_dirs 20a3e0fd82Sopenharmony_ci include_dirs += [ "//foundation/arkui/ui_lite/frameworks" ] 21a3e0fd82Sopenharmony_ci } 22a3e0fd82Sopenharmony_ci 23a3e0fd82Sopenharmony_ci ohos_shared_library("libupdater_layout") { 24a3e0fd82Sopenharmony_ci defines = [ 25a3e0fd82Sopenharmony_ci "__LITEOS_M__", 26a3e0fd82Sopenharmony_ci "ENABLE_BITMAP_FONT = 0", 27a3e0fd82Sopenharmony_ci "ENABLE_ICU = 1", 28a3e0fd82Sopenharmony_ci "ENABLE_JPEG = 1", 29a3e0fd82Sopenharmony_ci "ENABLE_PNG = 1", 30a3e0fd82Sopenharmony_ci "ENABLE_MULTI_FONT = 0", 31a3e0fd82Sopenharmony_ci "ENABLE_SHAPING = 0", 32a3e0fd82Sopenharmony_ci "ENABLE_STATIC_FONT = 0", 33a3e0fd82Sopenharmony_ci "ENABLE_VECTOR_FONT = 1", 34a3e0fd82Sopenharmony_ci ] 35a3e0fd82Sopenharmony_ci 36a3e0fd82Sopenharmony_ci sources = arkui_ui_lite_sources + graphic_utils_sources 37a3e0fd82Sopenharmony_ci sources -= [ 38a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_abstract_clock.cpp", 39a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_analog_clock.cpp", 40a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_arc_label.cpp", 41a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_axis.cpp", 42a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_canvas.cpp", 43a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_chart.cpp", 44a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_checkbox.cpp", 45a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_circle_progress.cpp", 46a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_dialog.cpp", 47a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_digital_clock.cpp", 48a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_list.cpp", 49a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_picker.cpp", 50a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_qrcode.cpp", 51a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_radio_button.cpp", 52a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_repeat_button.cpp", 53a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_slider.cpp", 54a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_surface_view.cpp", 55a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_swipe_view.cpp", 56a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_texture_mapper.cpp", 57a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_time_picker.cpp", 58a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/components/ui_toggle_button.cpp", 59a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/dfx/event_injector.cpp", 60a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/dfx/key_event_injector.cpp", 61a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/dfx/performance_task.cpp", 62a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/dfx/point_event_injector.cpp", 63a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/dfx/ui_dump_dom_tree.cpp", 64a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/dock/ohos/ohos_input_device.cpp", 65a3e0fd82Sopenharmony_ci "$ARKUI_UI_LITE_PATH/frameworks/dock/virtual_input_device.cpp", 66a3e0fd82Sopenharmony_ci ] 67a3e0fd82Sopenharmony_ci include_dirs = arkui_ui_lite_include_dirs + graphic_utils_include_dirs 68a3e0fd82Sopenharmony_ci include_dirs += [ "//foundation/arkui/ui_lite/frameworks" ] 69a3e0fd82Sopenharmony_ci 70a3e0fd82Sopenharmony_ci public_configs = [ ":libupdater_layout_header_files" ] 71a3e0fd82Sopenharmony_ci 72a3e0fd82Sopenharmony_ci deps = [ 73a3e0fd82Sopenharmony_ci "//third_party/bounds_checking_function:libsec_static", 74a3e0fd82Sopenharmony_ci "//third_party/freetype:freetype_static", 75a3e0fd82Sopenharmony_ci "//third_party/icu/icu4c/source/common:icu_font", 76a3e0fd82Sopenharmony_ci "//third_party/libjpeg-turbo:turbojpeg_static", 77a3e0fd82Sopenharmony_ci "//third_party/libpng:libpng", 78a3e0fd82Sopenharmony_ci ] 79a3e0fd82Sopenharmony_ci 80a3e0fd82Sopenharmony_ci install_images = [ 81a3e0fd82Sopenharmony_ci "updater", 82a3e0fd82Sopenharmony_ci "system", 83a3e0fd82Sopenharmony_ci ] 84a3e0fd82Sopenharmony_ci part_name = "ui_lite" 85a3e0fd82Sopenharmony_ci subsystem_name = "arkui" 86a3e0fd82Sopenharmony_ci } 87a3e0fd82Sopenharmony_ci} else { 88a3e0fd82Sopenharmony_ci group("libupdater_layout") { 89a3e0fd82Sopenharmony_ci } 90a3e0fd82Sopenharmony_ci} 91