• 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")
15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16
17ohos_shared_library("libuser_auth_interface_service_1.0") {
18  include_dirs = [
19    "adaptor/inc",
20    "coauth/inc",
21    "database/inc",
22    "common/inc",
23    "interface",
24    "idm/inc",
25    "key_mgr/inc",
26    "user_auth/inc",
27    "service",
28    "//third_party/openssl/include",
29    "//base/useriam/user_auth_framework/common/logs",
30  ]
31  sources = [
32    "adaptor/src/adaptor_algorithm.c",
33    "adaptor/src/adaptor_file.c",
34    "adaptor/src/adaptor_memory.c",
35    "adaptor/src/adaptor_time.c",
36    "adaptor/src/file_operator.c",
37    "coauth/src/coauth.c",
38    "coauth/src/coauth_funcs.c",
39    "coauth/src/executor_message.c",
40    "coauth/src/pool.c",
41    "common/src/buffer.c",
42    "common/src/linked_list.c",
43    "common/src/tlv_base.c",
44    "common/src/tlv_wrapper.c",
45    "database/src/idm_common.c",
46    "database/src/idm_database.c",
47    "database/src/idm_file_manager.c",
48    "hal_sdk/useriam_common.cpp",
49    "idm/src/enroll_specification_check.c",
50    "idm/src/idm_session.c",
51    "idm/src/user_idm_funcs.c",
52    "key_mgr/src/ed25519_key.c",
53    "key_mgr/src/token_key.c",
54    "service/user_auth_interface_service.cpp",
55    "user_auth/src/auth_level.c",
56    "user_auth/src/context_manager.c",
57    "user_auth/src/identify_funcs.c",
58    "user_auth/src/user_auth_funcs.c",
59    "user_auth/src/user_sign_centre.c",
60  ]
61  external_deps = [
62    "c_utils:utils",
63    "drivers_interface_user_auth:user_auth_idl_headers",
64    "hiviewdfx_hilog_native:libhilog",
65    "ipc:ipc_single",
66  ]
67  deps = [
68    "//base/useriam/user_auth_framework/common:iam_utils",
69    "//third_party/openssl:libcrypto_shared",
70  ]
71
72  remove_configs = [ "//build/config/compiler:no_exceptions" ]
73
74  install_images = [ chipset_base_dir ]
75  subsystem_name = "hdf"
76  part_name = "drivers_peripheral_user_auth"
77}
78
79ohos_shared_library("libuser_auth_driver") {
80  include_dirs = [
81    "interface",
82    "//base/useriam/user_auth_framework/common/logs",
83  ]
84  sources = [ "service/user_auth_interface_driver.cpp" ]
85  deps = [
86    "//base/useriam/user_auth_framework/common:iam_utils",
87    "//drivers/interface/user_auth/v1_0:libuser_auth_stub_1.0",
88  ]
89
90  external_deps = [
91    "c_utils:utils",
92    "hdf_core:libhdf_host",
93    "hdf_core:libhdf_ipc_adapter",
94    "hdf_core:libhdi",
95    "hiviewdfx_hilog_native:libhilog",
96    "ipc:ipc_single",
97  ]
98
99  remove_configs = [ "//build/config/compiler:no_exceptions" ]
100
101  install_images = [ chipset_base_dir ]
102  subsystem_name = "hdf"
103  part_name = "drivers_peripheral_user_auth"
104}
105
106group("hdf_user_auth_service") {
107  deps = [
108    ":libuser_auth_driver",
109    ":libuser_auth_interface_service_1.0",
110  ]
111}
112