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