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_4.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_4.0", 78 "hdf_core:libhdf_utils", 79 "hilog:libhilog", 80 "ipc:ipc_single", 81 "openssl:libcrypto_shared", 82 ] 83 84 remove_configs = [ "//build/config/compiler:no_exceptions" ] 85 86 install_images = [ chipset_base_dir ] 87 subsystem_name = "hdf" 88 part_name = "drivers_peripheral_user_auth" 89} 90 91ohos_shared_library("libuser_auth_driver") { 92 sanitize = { 93 integer_overflow = true 94 ubsan = true 95 boundary_sanitize = true 96 cfi = true 97 cfi_cross_dso = true 98 debug = false 99 } 100 branch_protector_ret = "pac_ret" 101 include_dirs = [ 102 "interface", 103 "../common/logs", 104 "../common/utils", 105 ] 106 sources = [ "service/user_auth_interface_driver.cpp" ] 107 deps = [ ":libuser_auth_interface_service_4.0" ] 108 109 external_deps = [ 110 "c_utils:utils", 111 "drivers_interface_user_auth:libuser_auth_stub_4.0", 112 "hdf_core:libhdf_host", 113 "hdf_core:libhdf_ipc_adapter", 114 "hdf_core:libhdf_utils", 115 "hdf_core:libhdi", 116 "hilog:libhilog", 117 "ipc:ipc_single", 118 ] 119 120 remove_configs = [ "//build/config/compiler:no_exceptions" ] 121 122 shlib_type = "hdi" 123 install_images = [ chipset_base_dir ] 124 subsystem_name = "hdf" 125 part_name = "drivers_peripheral_user_auth" 126} 127 128group("hdf_user_auth_service") { 129 deps = [ 130 ":libuser_auth_driver", 131 ":libuser_auth_interface_service_4.0", 132 ] 133} 134