1# Copyright (c) 2023-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") 15import("../../../pin_auth.gni") 16 17ohos_source_set("pinauth_ipc_fuzzer") { 18 branch_protector_ret = "pac_ret" 19 include_dirs = [ 20 "../../../frameworks/ipc/inc", 21 "../../../frameworks/ipc/common_defines", 22 ] 23 24 sources = [ 25 "../../../frameworks/ipc/src/inputer_get_data_proxy.cpp", 26 "../../../frameworks/ipc/src/inputer_get_data_stub.cpp", 27 "../../../frameworks/ipc/src/inputer_set_data_proxy.cpp", 28 "../../../frameworks/ipc/src/inputer_set_data_stub.cpp", 29 "../../../frameworks/ipc/src/pin_auth_proxy.cpp", 30 "../../../frameworks/ipc/src/pin_auth_stub.cpp", 31 ] 32 33 configs = [ "../../../common:iam_log_config" ] 34 public_configs = [ "../../../frameworks:pinauth_ipc_config" ] 35 36 external_deps = [ 37 "c_utils:utils", 38 "hdf_core:libhdf_utils", 39 "hilog:libhilog", 40 "ipc:ipc_single", 41 "user_auth_framework:userauth_client", 42 ] 43 44 subsystem_name = "useriam" 45 part_name = "pin_auth" 46} 47 48ohos_source_set("pinauthservice_source_set_fuzzer") { 49 branch_protector_ret = "pac_ret" 50 sources = [ 51 "../../../services/modules/driver/src/pin_auth_driver_hdi.cpp", 52 "../../../services/modules/driver/src/pin_auth_interface_adapter.cpp", 53 "../../../services/modules/executors/src/pin_auth_all_in_one_hdi.cpp", 54 "../../../services/modules/executors/src/pin_auth_collector_hdi.cpp", 55 "../../../services/modules/executors/src/pin_auth_executor_callback_hdi.cpp", 56 "../../../services/modules/executors/src/pin_auth_executor_hdi_common.cpp", 57 "../../../services/modules/executors/src/pin_auth_verifier_hdi.cpp", 58 "../../../services/modules/inputters/src/i_inputer_data_impl.cpp", 59 "../../../services/modules/inputters/src/pin_auth_manager.cpp", 60 "../../../services/modules/load_mode/src/load_mode_handler.cpp", 61 "../../../services/modules/load_mode/src/load_mode_handler_default.cpp", 62 "../../../services/modules/load_mode/src/system_param_manager.cpp", 63 "../../../services/sa/src/pin_auth_service.cpp", 64 ] 65 66 configs = [ 67 "../../../services:pin_auth_services_config", 68 "../../../common:iam_log_config", 69 "../../../common:iam_utils_config", 70 ] 71 72 public_configs = [ "../../../services:pin_auth_services_config" ] 73 74 deps = [ "../common_fuzzer:pinauth_ipc_fuzzer" ] 75 76 external_deps = [ 77 "access_token:libaccesstoken_sdk", 78 "c_utils:utils", 79 "drivers_interface_pin_auth:libpin_auth_proxy_3.0", 80 "hdf_core:libhdf_utils", 81 "hilog:libhilog", 82 "init:libbeget_proxy", 83 "init:libbegetutil", 84 "ipc:ipc_single", 85 "openssl:libcrypto_shared", 86 "safwk:system_ability_fwk", 87 "samgr:samgr_proxy", 88 "user_auth_framework:userauth_executors", 89 ] 90 91 defines = [] 92 if (sensors_miscdevice_enable) { 93 external_deps += [ "miscdevice:vibrator_interface_native" ] 94 defines += [ "SENSORS_MISCDEVICE_ENABLE" ] 95 } 96 if (customization_enterprise_device_management_enable) { 97 external_deps += [ 98 "ability_base:want", 99 "enterprise_device_management:edmservice_kits", 100 ] 101 defines += [ "CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGEMENT_ENABLE" ] 102 } 103 104 remove_configs = [ "//build/config/compiler:no_exceptions" ] 105 106 subsystem_name = "useriam" 107 part_name = "pin_auth" 108} 109