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("//base/security/device_auth/deviceauth_env.gni") 15 16account_related_defines = [] 17account_related_inc_path = [] 18 19deviceauth_account_group_manager_path = "${services_path}/group_manager" 20deviceauth_account_group_auth_path = "${services_path}/group_auth" 21 22group_manager_identical_account_files = [ "${deviceauth_account_group_manager_path}/src/group_operation/identical_account_group/identical_account_group.c" ] 23group_manager_across_account_files = [ "${deviceauth_account_group_manager_path}/src/group_operation/across_account_group/across_account_group.c" ] 24 25group_auth_account_related_files = [ "${deviceauth_account_group_auth_path}/src/group_auth_manager/account_related_group_auth/account_related_group_auth.c" ] 26 27account_related_inc_path += [ 28 "${services_path}/authenticators/inc", 29 "${services_path}/authenticators/inc/account_related", 30 "${services_path}/authenticators/inc/account_related/auth/iso_auth_task", 31 "${services_path}/authenticators/inc/account_related/auth/pake_v2_auth_task", 32 "${services_path}/authenticators/inc/account_related/creds_manager", 33] 34 35authenticators_account_related_files = [ 36 "${services_path}/authenticators/src/account_related/account_module.c", 37 "${services_path}/authenticators/src/account_related/account_multi_task_manager.c", 38 "${services_path}/authenticators/src/account_related/account_task_main.c", 39 "${services_path}/authenticators/src/account_related/account_version_util.c", 40 "${services_path}/authenticators/src/account_related/creds_manager/asy_token_manager.c", 41 "${services_path}/authenticators/src/account_related/creds_manager/sym_token_manager.c", 42 "${services_path}/authenticators/src/account_related/auth/iso_auth_task/iso_auth_client_task.c", 43 "${services_path}/authenticators/src/account_related/auth/iso_auth_task/iso_auth_server_task.c", 44 "${services_path}/authenticators/src/account_related/auth/iso_auth_task/iso_auth_task_common.c", 45 "${services_path}/authenticators/src/account_related/auth/pake_v2_auth_task/pake_v2_auth_task_common.c", 46 "${services_path}/authenticators/src/account_related/auth/pake_v2_auth_task/pake_v2_auth_client_task.c", 47 "${services_path}/authenticators/src/account_related/auth/pake_v2_auth_task/pake_v2_auth_server_task.c", 48] 49 50account_related_files = 51 group_auth_account_related_files + group_manager_identical_account_files + 52 group_manager_across_account_files + authenticators_account_related_files 53