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# 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/config/components/ets_frontend/ets2abc_config.gni") 15import("//build/ohos.gni") 16import("//foundation/ability/ability_runtime/ability_runtime.gni") 17 18ohos_shared_library("ability_manager_ani_kit") { 19 branch_protector_ret = "pac_ret" 20 sanitize = { 21 cfi = true 22 cfi_cross_dso = true 23 cfi_vcall_icall_only = true 24 debug = false 25 } 26 27 include_dirs = [ 28 "./include", 29 "${ability_runtime_services_path}/common/include", 30 "${ability_runtime_path}/interfaces/kits/native/ability/native", 31 "${ability_runtime_path}/interfaces/inner_api/runtime/include", 32 "${ability_runtime_services_path}/common/include", 33 ] 34 35 configs = [] 36 37 public_configs = [] 38 39 sources = [ "./src/ets_ability_manager.cpp" ] 40 41 cflags = [] 42 if (target_cpu == "arm") { 43 cflags += [ "-DBINDER_IPC_32BIT" ] 44 } 45 46 deps = [ 47 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 48 "${ability_runtime_innerkits_path}/runtime:runtime", 49 "${ability_runtime_native_path}/ability/native:ability_business_error", 50 "${ability_runtime_path}/frameworks/ets/ani/ani_common:ani_common", 51 ] 52 53 external_deps = [ 54 "ability_base:base", 55 "ability_base:configuration", 56 "access_token:libtokenid_sdk", 57 "c_utils:utils", 58 "eventhandler:libeventhandler", 59 "hilog:libhilog", 60 "ipc:ipc_core", 61 "napi:ace_napi", 62 "runtime_core:ani", 63 "samgr:samgr_proxy", 64 ] 65 66 innerapi_tags = [ "platformsdk" ] 67 subsystem_name = "ability" 68 part_name = "ability_runtime" 69} 70