• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("pin_auth_services_config") {
17  include_dirs = [
18    "//base/useriam/pin_auth/services/sa/inc",
19    "//base/useriam/pin_auth/services/modules/driver/inc",
20    "//base/useriam/pin_auth/services/modules/executors/inc",
21    "//base/useriam/pin_auth/services/modules/inputters/inc",
22    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
23  ]
24}
25
26ohos_shared_library("pinauthservice") {
27  sources = [
28    "//base/useriam/pin_auth/services/modules/driver/src/pin_auth_driver_hdi.cpp",
29    "//base/useriam/pin_auth/services/modules/driver/src/pin_auth_interface_adapter.cpp",
30    "//base/useriam/pin_auth/services/modules/executors/src/pin_auth_executor_callback_hdi.cpp",
31    "//base/useriam/pin_auth/services/modules/executors/src/pin_auth_executor_hdi.cpp",
32    "//base/useriam/pin_auth/services/modules/inputters/src/i_inputer_data_impl.cpp",
33    "//base/useriam/pin_auth/services/modules/inputters/src/pin_auth_manager.cpp",
34    "//base/useriam/pin_auth/services/sa/src/pin_auth_service.cpp",
35  ]
36
37  configs = [
38    ":pin_auth_services_config",
39    "//base/useriam/user_auth_framework/common:iam_log_config",
40    "//base/useriam/user_auth_framework/common:iam_utils_config",
41  ]
42
43  deps = [
44    "//base/useriam/pin_auth/frameworks:pinauth_ipc",
45    "//base/useriam/user_auth_framework/common/executors:userauth_executors",
46    "//third_party/openssl:libcrypto_shared",
47  ]
48
49  external_deps = [
50    "access_token:libaccesstoken_sdk",
51    "c_utils:utils",
52    "drivers_interface_pin_auth:libpin_auth_proxy_1.0",
53    "hisysevent_native:libhisysevent",
54    "hiviewdfx_hilog_native:libhilog",
55    "ipc:ipc_core",
56    "safwk:system_ability_fwk",
57  ]
58  remove_configs = [ "//build/config/compiler:no_exceptions" ]
59
60  subsystem_name = "useriam"
61  part_name = "pin_auth"
62}
63