• 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("pinauth_config") {
17  include_dirs = [
18    "//base/useriam/pin_auth/frameworks/client/inc",
19    "//base/useriam/pin_auth/interfaces/inner_api",
20    "//base/useriam/pin_auth/frameworks/scrypt/inc",
21    "//base/useriam/user_auth_framework/interfaces/inner_api",
22  ]
23}
24
25config("pinauth_ipc_config") {
26  include_dirs = [
27    "ipc/inc",
28    "ipc/common_defines",
29  ]
30}
31
32ohos_shared_library("pinauth_framework") {
33  sources = [
34    "client/src/inputer_data_impl.cpp",
35    "client/src/inputer_get_data_service.cpp",
36    "client/src/pinauth_register.cpp",
37    "scrypt/src/scrypt.cpp",
38  ]
39
40  deps = [
41    "//base/useriam/pin_auth/frameworks:pinauth_ipc",
42    "//third_party/openssl:libcrypto_shared",
43  ]
44
45  external_deps = [
46    "c_utils:utils",
47    "hiviewdfx_hilog_native:libhilog",
48    "ipc:ipc_core",
49    "samgr:samgr_proxy",
50  ]
51
52  configs = [
53    "//base/useriam/user_auth_framework/common:iam_log_config",
54    "//base/useriam/user_auth_framework/common:iam_utils_config",
55    "//base/useriam/pin_auth/frameworks/:pinauth_ipc_config",
56  ]
57
58  public_configs = [ ":pinauth_config" ]
59
60  defines = [
61    "PINAUTH_LOG_TAG = \"PinAuth\"",
62    "LOG_DOMAIN = 0xD002422",
63  ]
64  remove_configs = [ "//build/config/compiler:no_exceptions" ]
65
66  subsystem_name = "useriam"
67  part_name = "pin_auth"
68}
69
70ohos_source_set("pinauth_ipc") {
71  include_dirs = [
72    "ipc/inc",
73    "ipc/common_defines",
74    "//base/useriam/user_auth_framework/interfaces/inner_api",
75  ]
76
77  sources = [
78    "ipc/src/inputer_get_data_proxy.cpp",
79    "ipc/src/inputer_get_data_stub.cpp",
80    "ipc/src/inputer_set_data_proxy.cpp",
81    "ipc/src/inputer_set_data_stub.cpp",
82    "ipc/src/pin_auth_proxy.cpp",
83    "ipc/src/pin_auth_stub.cpp",
84  ]
85
86  configs = [ "//base/useriam/user_auth_framework/common:iam_log_config" ]
87  public_configs = [ ":pinauth_ipc_config" ]
88
89  external_deps = [
90    "c_utils:utils",
91    "hiviewdfx_hilog_native:libhilog",
92    "ipc:ipc_core",
93  ]
94}
95