1# Copyright (c) 2024 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("//build/ohos.gni") 15import("//foundation/arkui/ace_engine/ace_config.gni") 16 17advanced_ui_component_libs = [ 18 "chip", 19 "segmentbuttonv2", 20 "dialog", 21] 22 23template("advanced_ui_component_lib") { 24 forward_variables_from(invoker, "*") 25 26 ohos_shared_library(target_name) { 27 if (current_os == "ohos") { 28 sanitize = { 29 integer_overflow = true 30 boundary_sanitize = true 31 debug = ace_sanitize_debug 32 } 33 } 34 deps = [ "$ace_root/advanced_ui_component/${target_name}/interfaces:${target_name}_static_${platform}" ] 35 cflags = [] 36 ldflags = [] 37 sources = [] 38 defines = [] 39 include_dirs = [] 40 if (ace_engine_feature_enable_coverage) { 41 cflags += [ "--coverage" ] 42 ldflags += [ "--coverage" ] 43 } 44 if (use_hilog) { 45 external_deps = [ "hilog:libhilog" ] 46 } 47 relative_install_dir = "module/arkui/advanced" 48 part_name = ace_engine_part 49 subsystem_name = ace_engine_subsystem 50 } 51} 52