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("userauth_client_config") { 17 include_dirs = [ 18 "inc", 19 "../../../interfaces/inner_api", 20 ] 21} 22 23ohos_shared_library("userauth_client") { 24 sanitize = { 25 integer_overflow = true 26 ubsan = true 27 boundary_sanitize = true 28 cfi = true 29 cfi_cross_dso = true 30 debug = false 31 blocklist = "../../../cfi_blocklist.txt" 32 } 33 branch_protector_ret = "pac_ret" 34 include_dirs = [ 35 "inc", 36 "../../../interfaces/inner_api", 37 "../../js/napi/user_auth/inc", 38 ] 39 40 sources = [ 41 "src/auth_message_impl.cpp", 42 "src/callback_manager_impl.cpp", 43 "src/co_auth_client_impl.cpp", 44 "src/executor_callback_service.cpp", 45 "src/executor_messenger_client.cpp", 46 "src/ipc_client_utils.cpp", 47 "src/user_auth_callback_service.cpp", 48 "src/user_auth_client_impl.cpp", 49 "src/user_idm_callback_service.cpp", 50 "src/user_idm_client_impl.cpp", 51 "src/widget_callback_service.cpp", 52 ] 53 54 configs = [ 55 "../../../common:iam_log_config", 56 "../../../common:iam_utils_config", 57 ] 58 59 remove_configs = [ "//build/config/compiler:no_exceptions" ] 60 61 public_configs = [ 62 ":userauth_client_config", 63 "../ipc:userauth_client_ipc_config", 64 ] 65 66 innerapi_tags = [ "platformsdk" ] 67 68 deps = [ 69 "../common:attributes", 70 "../common:dfx", 71 "../ipc:userauth_client_ipc", 72 ] 73 74 if (use_musl) { 75 version_script = "user_auth_client_map" 76 } 77 78 external_deps = [ 79 "c_utils:utils", 80 "hilog:libhilog", 81 "ipc:ipc_single", 82 "napi:ace_napi", 83 "samgr:samgr_proxy", 84 ] 85 86 subsystem_name = "useriam" 87 part_name = "user_auth_framework" 88} 89