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/user_iam/pin_auth/pinauth.gni") 15import("//build/ohos.gni") 16 17config("pin_auth_services_config") { 18 include_dirs = [ 19 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 20 "//base/user_iam/pin_auth/hdi/main/inc", 21 "//base/user_iam/pin_auth/hdi/common/inc", 22 "//base/user_iam/user_idm/interfaces/innerkits/include", 23 "${pinauth_services_path}/include", 24 ] 25} 26 27ohos_shared_library("pinauthservice") { 28 sources = [ 29 "${pinauth_services_path}/src/i_inputer_data_stub.cpp", 30 "${pinauth_services_path}/src/i_inputer_proxy.cpp", 31 "${pinauth_services_path}/src/pinauth_controller.cpp", 32 "${pinauth_services_path}/src/pinauth_manager.cpp", 33 "${pinauth_services_path}/src/pinauth_service.cpp", 34 "${pinauth_services_path}/src/pinauth_stub.cpp", 35 ] 36 37 configs = [ ":pin_auth_services_config" ] 38 39 deps = [ 40 "${pinauth_frameworks_path}:pinauth_framework", 41 "//base/security/access_token/interfaces/innerkits/accesstoken:libaccesstoken_sdk", 42 "//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara", 43 "//base/user_iam/auth_executor_mgr/interfaces/innerkits:coauth_framework", 44 "//base/user_iam/pin_auth/hdi:pinauth_hdi", 45 "//base/user_iam/user_idm/interfaces/innerkits:useridm_framework", 46 "//third_party/openssl:libcrypto_static", 47 "//utils/native/base:utils", 48 ] 49 50 external_deps = [ 51 "hiviewdfx_hilog_native:libhilog", 52 "ipc:ipc_core", 53 "safwk:system_ability_fwk", 54 "samgr_standard:samgr_proxy", 55 "startup_l2:syspara_watchagent", 56 ] 57 58 subsystem_name = "useriam" 59 part_name = "pin_auth" 60} 61