1# Copyright (c) 2022 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") 15 16config("token_callback") { 17 visibility = [ ":*" ] 18 include_dirs = [ "include" ] 19} 20 21if (is_standard_system) { 22 ohos_shared_library("libtoken_callback_sdk") { 23 subsystem_name = "security" 24 part_name = "access_token" 25 26 output_name = "libtoken_callback_sdk" 27 28 public_configs = [ ":token_callback" ] 29 30 configs = [ "//base/security/access_token/config:coverage_flags" ] 31 32 include_dirs = [ 33 "//commonlibrary/c_utils/base/include", 34 "include", 35 "src", 36 "//base/security/access_token/frameworks/privacy/include", 37 "//base/security/access_token/frameworks/common/include", 38 ] 39 40 sources = [ "src/token_callback_stub.cpp" ] 41 42 deps = [] 43 44 external_deps = [ 45 "c_utils:utils", 46 "hiviewdfx_hilog_native:libhilog", 47 "ipc:ipc_core", 48 ] 49 50 cflags_cc = [ 51 "-DHILOG_ENABLE", 52 "-DDEBUG_API_PERFORMANCE", 53 ] 54 } 55} 56