1# Copyright (c) 2025 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 12 13import("//build/ohos.gni") 14import("//foundation/arkui/ui_lite/ui.gni") 15if (os_level == "standard" && (ui_lite_enable_smarthomehost_config)) { 16 config("libhome_host_layout_header_files") { 17 visibility = [ ":*" ] 18 include_dirs = arkui_ui_lite_include_dirs 19 include_dirs += [ "$ARKUI_UI_LITE_PATH/frameworks" ] 20 } 21 22 ohos_shared_library("libhome_host_layout") { 23 defines = [ 24 "__LITEOS_M__", 25 "ENABLE_BITMAP_FONT = 0", 26 "ENABLE_ICU = 0", 27 "ENABLE_JPEG = 1", 28 "ENABLE_PNG = 1", 29 "ENABLE_MULTI_FONT = 0", 30 "ENABLE_SHAPING = 0", 31 "ENABLE_STATIC_FONT = 0", 32 "ENABLE_VECTOR_FONT = 1", 33 ] 34 35 sources = arkui_ui_lite_sources 36 sources -= [ "$ARKUI_UI_LITE_PATH/frameworks/components/ui_qrcode.cpp" ] 37 38 include_dirs = arkui_ui_lite_include_dirs 39 include_dirs += [ "$ARKUI_UI_LITE_PATH/frameworks" ] 40 41 public_configs = [ ":libhome_host_layout_header_files" ] 42 43 external_deps = [ 44 "bounds_checking_function:libsec_static", 45 "cJSON:cjson_static", 46 "freetype:freetype_static", 47 "libjpeg-turbo:turbojpeg", 48 "libpng:libpng", 49 "graphic_utils_lite:utils_lite", 50 ] 51 52 part_name = "ui_lite" 53 subsystem_name = "arkui" 54 } 55} else { 56 group("libhome_host_layout") { 57 } 58} 59