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. 13import("//base/security/access_token/access_token.gni") 14import("//build/ohos.gni") 15 16config("tokensync") { 17 visibility = [ ":*" ] 18 include_dirs = [ "include" ] 19} 20 21if (is_standard_system) { 22 ohos_shared_library("libtokensync_sdk") { 23 subsystem_name = "security" 24 part_name = "access_token" 25 26 output_name = "libtokensync_sdk" 27 28 public_configs = [ ":tokensync" ] 29 30 include_dirs = [ 31 "//commonlibrary/c_utils/base/include", 32 "include", 33 "src", 34 "//base/security/access_token/frameworks/tokensync/include", 35 "//base/security/access_token/frameworks/common/include", 36 "//base/security/access_token/interfaces/innerkits/tokensync/include", 37 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 38 "//base/security/access_token/frameworks/accesstoken/include", 39 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include", 40 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", 41 ] 42 43 sources = [ 44 "src/token_sync_death_recipient.cpp", 45 "src/token_sync_kit.cpp", 46 "src/token_sync_load_callback.cpp", 47 "src/token_sync_manager_client.cpp", 48 "src/token_sync_manager_proxy.cpp", 49 ] 50 51 deps = [ 52 "//base/security/access_token/frameworks/accesstoken:accesstoken_communication_adapter_cxx", 53 "//base/security/access_token/frameworks/common:accesstoken_common_cxx", 54 ] 55 56 external_deps = [ 57 "c_utils:utils", 58 "hiviewdfx_hilog_native:libhilog", 59 "ipc:ipc_core", 60 "samgr:samgr_proxy", 61 ] 62 63 configs = [ "//base/security/access_token/config:coverage_flags" ] 64 65 cflags_cc = [ "-DHILOG_ENABLE" ] 66 } 67} 68