• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("pinauth_config") {
17  include_dirs = [
18    "client/inc",
19    "../interfaces/inner_api",
20    "scrypt/inc",
21  ]
22}
23
24config("pinauth_ipc_config") {
25  include_dirs = [
26    "ipc/inc",
27    "ipc/common_defines",
28  ]
29}
30
31ohos_source_set("pinauth_framework_source_set") {
32  sources = [
33    "client/src/inputer_data_impl.cpp",
34    "client/src/inputer_get_data_service.cpp",
35    "client/src/pinauth_register_impl.cpp",
36    "scrypt/src/scrypt.cpp",
37  ]
38
39  deps = [
40    ":pinauth_ipc",
41    "//third_party/openssl:libcrypto_shared",
42  ]
43
44  external_deps = [
45    "c_utils:utils",
46    "hilog:libhilog",
47    "ipc:ipc_single",
48    "samgr:samgr_proxy",
49    "user_auth_framework:userauth_client",
50  ]
51
52  configs = [
53    "../common:iam_log_config",
54    "../common:iam_utils_config",
55    ":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_shared_library("pinauth_framework") {
71  deps = [ ":pinauth_framework_source_set" ]
72
73  if (use_musl) {
74    version_script = "pin_auth_framework_map"
75  }
76
77  public_configs = [ ":pinauth_config" ]
78
79  subsystem_name = "useriam"
80  innerapi_tags = [ "platformsdk_indirect" ]
81  part_name = "pin_auth"
82}
83
84ohos_source_set("pinauth_ipc") {
85  include_dirs = [
86    "ipc/inc",
87    "ipc/common_defines",
88  ]
89
90  sources = [
91    "ipc/src/inputer_get_data_proxy.cpp",
92    "ipc/src/inputer_get_data_stub.cpp",
93    "ipc/src/inputer_set_data_proxy.cpp",
94    "ipc/src/inputer_set_data_stub.cpp",
95    "ipc/src/pin_auth_proxy.cpp",
96    "ipc/src/pin_auth_stub.cpp",
97  ]
98
99  configs = [ "../common:iam_log_config" ]
100  public_configs = [ ":pinauth_ipc_config" ]
101
102  external_deps = [
103    "c_utils:utils",
104    "hilog:libhilog",
105    "ipc:ipc_single",
106    "user_auth_framework:userauth_client",
107  ]
108
109  subsystem_name = "useriam"
110  part_name = "pin_auth"
111}
112