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("uri_permission_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_path}/frameworks/ets/ani/enum_convert", 30 "${ability_runtime_path}/frameworks/js/napi/uri_permission", 31 "${ability_runtime_path}/interfaces/kits/native/ability/native", 32 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/app", 33 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context", 34 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/ability_delegator/include", 35 "${ability_runtime_services_path}/common/include", 36 ] 37 configs = [] 38 39 public_configs = [] 40 41 sources = [ "./src/ets_uri_perm_mgr.cpp" ] 42 43 cflags = [] 44 if (target_cpu == "arm") { 45 cflags += [ "-DBINDER_IPC_32BIT" ] 46 } 47 48 deps = [ 49 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 50 "${ability_runtime_innerkits_path}/ability_manager:ability_start_options", 51 "${ability_runtime_innerkits_path}/error_utils:ability_runtime_error_util", 52 "${ability_runtime_innerkits_path}/runtime:runtime", 53 "${ability_runtime_innerkits_path}/uri_permission:uri_permission_mgr", 54 "${ability_runtime_path}/frameworks/ets/ani/ani_common:ani_common", 55 "${ability_runtime_napi_path}/inner/napi_common:napi_common", 56 "${ability_runtime_native_path}/ability/native:abilitykit_native", 57 "${ability_runtime_native_path}/ability/native:ability_business_error", 58 "${ability_runtime_native_path}/appkit:app_context", 59 "${ability_runtime_native_path}/appkit:appkit_delegator", 60 "${ability_runtime_native_path}/appkit:delegator_mgmt", 61 ] 62 63 external_deps = [ 64 "ability_base:want", 65 "ability_base:zuri", 66 "access_token:libtokenid_sdk", 67 "bundle_framework:appexecfwk_base", 68 "c_utils:utils", 69 "common_event_service:cesfwk_innerkits", 70 "eventhandler:libeventhandler", 71 "hilog:libhilog", 72 "init:libbegetutil", 73 "ipc:ipc_core", 74 "ipc:ipc_napi", 75 "json:nlohmann_json_static", 76 "napi:ace_napi", 77 "runtime_core:ani", 78 ] 79 80 public_external_deps = [ "ability_base:configuration" ] 81 82 innerapi_tags = [ "platformsdk" ] 83 subsystem_name = "ability" 84 part_name = "ability_runtime" 85}