1# Copyright (c) 2022-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") 15 16config("userauth_service_context_config") { 17 include_dirs = [ "inc" ] 18} 19 20ohos_source_set("userauth_service_context") { 21 include_dirs = [ 22 "inc", 23 "../../frameworks/js/napi/user_auth/inc", 24 ] 25 26 remove_configs = [ "//build/config/compiler:no_exceptions" ] 27 28 sources = [ 29 "src/base_context.cpp", 30 "src/context_callback_impl.cpp", 31 "src/context_factory.cpp", 32 "src/context_helper.cpp", 33 "src/context_pool_impl.cpp", 34 "src/enroll_context.cpp", 35 "src/identify_context.cpp", 36 "src/simple_auth_context.cpp", 37 "src/trace.cpp", 38 "src/ui_extension_ability_connection.cpp", 39 "src/widget_client.cpp", 40 "src/widget_context.cpp", 41 "src/widget_context_callback_impl.cpp", 42 "src/widget_json.cpp", 43 ] 44 45 deps = [ 46 "../../frameworks/native/common:attributes", 47 "../../frameworks/native/common:dfx", 48 "../../services/core:userauth_service_core", 49 "//third_party/openssl:libcrypto_shared", 50 ] 51 52 external_deps = [ 53 "ability_base:base", 54 "ability_base:want", 55 "ability_base:zuri", 56 "ability_runtime:ability_context_native", 57 "ability_runtime:abilitykit_native", 58 "ability_runtime:extension_manager", 59 "c_utils:utils", 60 "hilog:libhilog", 61 "hitrace:hitrace_meter", 62 "init:libbegetutil", 63 "napi:ace_napi", 64 ] 65 66 public_configs = [ ":userauth_service_context_config" ] 67 68 configs = [ 69 "../base:userauth_service_base_config", 70 "../../common:iam_log_config", 71 "../../common:iam_utils_config", 72 "../../frameworks/native/ipc:userauth_client_ipc_config", 73 ] 74 75 subsystem_name = "useriam" 76 part_name = "user_auth_framework" 77} 78