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# http://www.apache.org/licenses/LICENSE-2.0 6# Unless required by applicable law or agreed to in writing, software 7# distributed under the License is distributed on an "AS IS" BASIS, 8# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9# See the License for the specific language governing permissions and 10# limitations under the License. 11 12if (os_level == "standard") { 13 import("//build/ohos.gni") 14 import("//foundation/arkui/ui_lite/ui.gni") 15 16 config("libupdater_layout_header_files") { 17 visibility = [ ":*" ] 18 include_dirs = arkui_ui_lite_include_dirs 19 include_dirs += [ "//foundation/arkui/ui_lite/frameworks" ] 20 } 21 22 config("updater_layout_link_config") { 23 ldflags = [ "-Wl,--lto-O0" ] 24 } 25 26 ohos_shared_library("libupdater_layout") { 27 defines = [ 28 "__LITEOS_M__", 29 "ENABLE_BITMAP_FONT = 0", 30 "ENABLE_ICU = 1", 31 "ENABLE_JPEG = 1", 32 "ENABLE_PNG = 1", 33 "ENABLE_MULTI_FONT = 0", 34 "ENABLE_SHAPING = 0", 35 "ENABLE_STATIC_FONT = 0", 36 "ENABLE_VECTOR_FONT = 1", 37 ] 38 39 sources = arkui_ui_lite_sources 40 sources -= [ 41 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_abstract_clock.cpp", 42 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_analog_clock.cpp", 43 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_arc_label.cpp", 44 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_axis.cpp", 45 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_canvas.cpp", 46 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_chart.cpp", 47 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_checkbox.cpp", 48 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_circle_progress.cpp", 49 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_dialog.cpp", 50 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_digital_clock.cpp", 51 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_list.cpp", 52 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_picker.cpp", 53 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_qrcode.cpp", 54 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_radio_button.cpp", 55 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_repeat_button.cpp", 56 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_slider.cpp", 57 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_surface_view.cpp", 58 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_swipe_view.cpp", 59 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_texture_mapper.cpp", 60 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_time_picker.cpp", 61 "$ARKUI_UI_LITE_PATH/frameworks/components/ui_toggle_button.cpp", 62 "$ARKUI_UI_LITE_PATH/frameworks/dfx/event_injector.cpp", 63 "$ARKUI_UI_LITE_PATH/frameworks/dfx/key_event_injector.cpp", 64 "$ARKUI_UI_LITE_PATH/frameworks/dfx/performance_task.cpp", 65 "$ARKUI_UI_LITE_PATH/frameworks/dfx/point_event_injector.cpp", 66 "$ARKUI_UI_LITE_PATH/frameworks/dfx/ui_dump_dom_tree.cpp", 67 "$ARKUI_UI_LITE_PATH/frameworks/dock/ohos/ohos_input_device.cpp", 68 "$ARKUI_UI_LITE_PATH/frameworks/dock/virtual_input_device.cpp", 69 ] 70 include_dirs = arkui_ui_lite_include_dirs 71 include_dirs += [ "//foundation/arkui/ui_lite/frameworks" ] 72 73 configs = [ ":updater_layout_link_config" ] 74 public_configs = [ ":libupdater_layout_header_files" ] 75 76 external_deps = [ 77 "bounds_checking_function:libsec_static", 78 "cJSON:cjson_static", 79 "icu:icu_font", 80 "freetype:freetype_static", 81 "libjpeg-turbo:turbojpeg_static", 82 "libpng:libpng", 83 "graphic_utils_lite:utils_lite", 84 ] 85 86 install_images = [ 87 "updater", 88 "system", 89 ] 90 part_name = "ui_lite" 91 subsystem_name = "arkui" 92 } 93} else { 94 group("libupdater_layout") { 95 } 96} 97