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