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("userauth_service_core_config") { 17 include_dirs = [ 18 "inc", 19 "src", 20 ] 21} 22 23ohos_source_set("userauth_service_core") { 24 include_dirs = [ 25 "inc", 26 "src", 27 ] 28 29 remove_configs = [ "//build/config/compiler:no_exceptions" ] 30 31 sources = [ 32 "src/authentication_impl.cpp", 33 "src/credential_info_impl.cpp", 34 "src/enrolled_info_impl.cpp", 35 "src/enrollment_impl.cpp", 36 "src/identification_impl.cpp", 37 "src/resource_node_impl.cpp", 38 "src/resource_node_pool_impl.cpp", 39 "src/resource_node_utils.cpp", 40 "src/schedule_node_builder.cpp", 41 "src/schedule_node_helper.cpp", 42 "src/schedule_node_impl.cpp", 43 "src/secure_user_info_impl.cpp", 44 "src/user_idm_database_impl.cpp", 45 "src/user_idm_session_controller_impl.cpp", 46 ] 47 48 deps = [ 49 "//base/useriam/user_auth_framework/common:iam_utils", 50 "//base/useriam/user_auth_framework/frameworks/native/common:attributes", 51 "//base/useriam/user_auth_framework/frameworks/native/common:dfx", 52 "//base/useriam/user_auth_framework/frameworks/native/ipc:userauth_service_ipc", 53 "//base/useriam/user_auth_framework/services/base:userauth_service_base", 54 "//third_party/openssl:libcrypto_shared", 55 ] 56 57 external_deps = [ 58 "access_token:libaccesstoken_sdk", 59 "c_utils:utils", 60 "drivers_interface_user_auth:libuser_auth_proxy_1.0", 61 "hilog_native:libhilog", 62 "hitrace_native:hitrace_meter", 63 "init:libbegetutil", 64 "ipc:ipc_core", 65 "safwk:system_ability_fwk", 66 ] 67 68 public_configs = [ ":userauth_service_core_config" ] 69 70 configs = [ "//base/useriam/user_auth_framework/common:iam_log_config" ] 71 72 part_name = "user_auth_framework" 73} 74