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_ipc_config") { 17 include_dirs = [ 18 "inc", 19 "common_defines", 20 ] 21} 22 23ohos_source_set("userauth_client_ipc") { 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 "common_defines", 37 "../../../interfaces/inner_api", 38 ] 39 40 sources = [ 41 "src/co_auth_proxy.cpp", 42 "src/executor_callback_stub.cpp", 43 "src/executor_messenger_proxy.cpp", 44 "src/user_auth_callback_stub.cpp", 45 "src/user_auth_event_listener_stub.cpp", 46 "src/user_auth_proxy.cpp", 47 "src/user_idm_callback_stub.cpp", 48 "src/user_idm_proxy.cpp", 49 "src/widget_callback_stub.cpp", 50 ] 51 52 configs = [ 53 "../../../common:iam_log_config", 54 "../../../common:iam_utils_config", 55 ] 56 57 public_configs = [ ":userauth_client_ipc_config" ] 58 remove_configs = [ "//build/config/compiler:no_exceptions" ] 59 60 external_deps = [ 61 "c_utils:utils", 62 "hilog:libhilog", 63 "ipc:ipc_single", 64 ] 65 66 subsystem_name = "useriam" 67 part_name = "user_auth_framework" 68} 69 70ohos_source_set("userauth_service_ipc") { 71 sanitize = { 72 integer_overflow = true 73 ubsan = true 74 boundary_sanitize = true 75 cfi = true 76 cfi_cross_dso = true 77 debug = false 78 blocklist = "../../../cfi_blocklist.txt" 79 } 80 branch_protector_ret = "pac_ret" 81 include_dirs = [ 82 "inc", 83 "common_defines", 84 "../../../interfaces/inner_api", 85 ] 86 87 sources = [ 88 "src/co_auth_stub.cpp", 89 "src/executor_callback_proxy.cpp", 90 "src/executor_messenger_stub.cpp", 91 "src/user_auth_callback_proxy.cpp", 92 "src/user_auth_event_listener_proxy.cpp", 93 "src/user_auth_stub.cpp", 94 "src/user_idm_callback_proxy.cpp", 95 "src/user_idm_stub.cpp", 96 "src/widget_callback_proxy.cpp", 97 ] 98 99 configs = [ 100 "../../../common:iam_log_config", 101 "../../../common:iam_utils_config", 102 ] 103 104 public_configs = [ ":userauth_client_ipc_config" ] 105 remove_configs = [ "//build/config/compiler:no_exceptions" ] 106 107 external_deps = [ 108 "c_utils:utils", 109 "hilog:libhilog", 110 "ipc:ipc_single", 111 ] 112 113 subsystem_name = "useriam" 114 part_name = "user_auth_framework" 115} 116