1# Copyright (c) 2021-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("../../access_token.gni") 16 17config("accesstoken_communication_adapter_cxx_public_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "${access_token_path}/frameworks/common/include", 22 "${access_token_path}/interfaces/innerkits/accesstoken/include", 23 ] 24} 25 26ohos_shared_library("accesstoken_communication_adapter_cxx") { 27 subsystem_name = "security" 28 innerapi_tags = [ 29 "platformsdk_indirect", 30 "chipsetsdk_indirect", 31 ] 32 part_name = "access_token" 33 sanitize = { 34 cfi = true 35 cfi_cross_dso = true 36 debug = false 37 } 38 branch_protector_ret = "pac_ret" 39 40 public_configs = [ ":accesstoken_communication_adapter_cxx_public_config" ] 41 configs = [ 42 "${access_token_path}/config:access_token_compile_flags", 43 "${access_token_path}/config:coverage_flags", 44 ] 45 include_dirs = [ 46 "${access_token_path}/interfaces/innerkits/accesstoken/include", 47 "include", 48 ] 49 50 sources = [ 51 "src/atm_tools_param_info_parcel.cpp", 52 "src/hap_base_info_parcel.cpp", 53 "src/hap_info_parcel.cpp", 54 "src/hap_policy_parcel.cpp", 55 "src/hap_token_info_for_sync_parcel.cpp", 56 "src/hap_token_info_parcel.cpp", 57 "src/native_token_info_for_sync_parcel.cpp", 58 "src/native_token_info_parcel.cpp", 59 "src/permission_def_parcel.cpp", 60 "src/permission_grant_info_parcel.cpp", 61 "src/permission_list_state_parcel.cpp", 62 "src/permission_state_change_info_parcel.cpp", 63 "src/permission_state_change_scope_parcel.cpp", 64 "src/permission_state_full_parcel.cpp", 65 ] 66 67 external_deps = [ "c_utils:utils" ] 68} 69