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 = [ "platformsdk_indirect" ] 29 part_name = "access_token" 30 sanitize = { 31 cfi = true 32 cfi_cross_dso = true 33 debug = false 34 } 35 branch_protector_ret = "pac_ret" 36 37 public_configs = [ ":accesstoken_communication_adapter_cxx_public_config" ] 38 configs = [ "${access_token_path}/config:coverage_flags" ] 39 include_dirs = [ 40 "${access_token_path}/interfaces/innerkits/accesstoken/include", 41 "include", 42 ] 43 44 sources = [ 45 "src/atm_tools_param_info_parcel.cpp", 46 "src/hap_base_info_parcel.cpp", 47 "src/hap_info_parcel.cpp", 48 "src/hap_policy_parcel.cpp", 49 "src/hap_token_info_for_sync_parcel.cpp", 50 "src/hap_token_info_parcel.cpp", 51 "src/native_token_info_for_sync_parcel.cpp", 52 "src/native_token_info_parcel.cpp", 53 "src/permission_def_parcel.cpp", 54 "src/permission_grant_info_parcel.cpp", 55 "src/permission_list_state_parcel.cpp", 56 "src/permission_state_change_info_parcel.cpp", 57 "src/permission_state_change_scope_parcel.cpp", 58 "src/permission_state_full_parcel.cpp", 59 ] 60 61 external_deps = [ "c_utils:utils" ] 62} 63