1# Copyright (c) 2022-2024 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 16ohos_shared_library("libuser_auth_interface_service_3.0") { 17 sanitize = { 18 integer_overflow = true 19 ubsan = true 20 boundary_sanitize = true 21 cfi = true 22 cfi_cross_dso = true 23 debug = false 24 } 25 branch_protector_ret = "pac_ret" 26 include_dirs = [ 27 "adaptor/inc", 28 "coauth/inc", 29 "common/inc", 30 "database/inc", 31 "interface", 32 "idm/inc", 33 "key_mgr/inc", 34 "user_auth/inc", 35 "utils/inc", 36 "service", 37 "../common/logs", 38 "../common/utils", 39 ] 40 sources = [ 41 "adaptor/src/adaptor_algorithm.c", 42 "adaptor/src/adaptor_file.c", 43 "adaptor/src/adaptor_memory.c", 44 "adaptor/src/adaptor_time.c", 45 "adaptor/src/buffer.c", 46 "adaptor/src/file_operator.c", 47 "coauth/src/coauth.c", 48 "coauth/src/coauth_funcs.c", 49 "coauth/src/executor_message.c", 50 "coauth/src/pool.c", 51 "common/src/user_sign_centre.c", 52 "database/src/file_manager_utils.c", 53 "database/src/global_config_file_manager.c", 54 "database/src/idm_common.c", 55 "database/src/idm_database.c", 56 "database/src/idm_file_manager.c", 57 "hal_sdk/useriam_common.cpp", 58 "idm/src/enroll_specification_check.c", 59 "idm/src/idm_session.c", 60 "idm/src/user_idm_funcs.c", 61 "key_mgr/src/ed25519_key.c", 62 "key_mgr/src/hmac_key.c", 63 "key_mgr/src/token_key.c", 64 "key_mgr/src/udid_manager.c", 65 "service/user_auth_interface_service.cpp", 66 "user_auth/src/auth_level.c", 67 "user_auth/src/auth_token_signer.c", 68 "user_auth/src/context_manager.c", 69 "user_auth/src/identify_funcs.c", 70 "user_auth/src/user_auth_funcs.c", 71 "utils/src/attribute.c", 72 "utils/src/c_array.c", 73 "utils/src/linked_list.c", 74 ] 75 external_deps = [ 76 "c_utils:utils", 77 "drivers_interface_user_auth:libuser_auth_stub_3.0", 78 "hilog:libhilog", 79 "ipc:ipc_single", 80 "openssl:libcrypto_shared", 81 ] 82 83 remove_configs = [ "//build/config/compiler:no_exceptions" ] 84 85 install_images = [ chipset_base_dir ] 86 subsystem_name = "hdf" 87 part_name = "drivers_peripheral_user_auth" 88} 89 90ohos_shared_library("libuser_auth_driver") { 91 sanitize = { 92 integer_overflow = true 93 ubsan = true 94 boundary_sanitize = true 95 cfi = true 96 cfi_cross_dso = true 97 debug = false 98 } 99 branch_protector_ret = "pac_ret" 100 include_dirs = [ 101 "interface", 102 "../common/logs", 103 "../common/utils", 104 ] 105 sources = [ "service/user_auth_interface_driver.cpp" ] 106 deps = [ ":libuser_auth_interface_service_3.0" ] 107 108 external_deps = [ 109 "c_utils:utils", 110 "drivers_interface_user_auth:libuser_auth_stub_3.0", 111 "hdf_core:libhdf_host", 112 "hdf_core:libhdf_ipc_adapter", 113 "hdf_core:libhdf_utils", 114 "hdf_core:libhdi", 115 "hilog:libhilog", 116 "ipc:ipc_single", 117 ] 118 119 remove_configs = [ "//build/config/compiler:no_exceptions" ] 120 121 shlib_type = "hdi" 122 install_images = [ chipset_base_dir ] 123 subsystem_name = "hdf" 124 part_name = "drivers_peripheral_user_auth" 125} 126 127group("hdf_user_auth_service") { 128 deps = [ 129 ":libuser_auth_driver", 130 ":libuser_auth_interface_service_3.0", 131 ] 132} 133