1# Copyright (c) 2023 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 17config("xcomponent_controller_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "$ace_root/frameworks", 21 "$ace_root/interfaces/inner_api/xcomponent_controller", 22 ] 23 defines = [ "USE_ARK_ENGINE" ] 24 cflags = [] 25 if (target_cpu == "arm") { 26 cflags += [ "-DBINDER_IPC_32BIT" ] 27 } 28} 29 30ohos_shared_library("ace_xcomponent_controller") { 31 if (current_os == "ohos") { 32 sanitize = { 33 integer_overflow = true 34 boundary_sanitize = true 35 debug = ace_sanitize_debug 36 } 37 } 38 sources = [ "$ace_root/interfaces/inner_api/xcomponent_controller/xcomponent_controller.cpp" ] 39 40 configs = [ 41 "$ace_root:ace_config", 42 "$ace_root:ace_coverage_config", 43 ] 44 45 public_configs = [ ":xcomponent_controller_config" ] 46 47 deps = [ 48 "$ace_root/frameworks/core/components/theme:build_theme_code", 49 "$ace_root/interfaces/inner_api/ace:ace_uicontent", 50 ] 51 52 external_deps = [ 53 "c_utils:utils", 54 "ets_runtime:libark_jsruntime", 55 "napi:ace_napi", 56 ] 57 58 subsystem_name = ace_engine_subsystem 59 innerapi_tags = [ "platformsdk_indirect" ] 60 part_name = ace_engine_part 61} 62