1# Copyright (c) 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/config/features.gni") 15import("//build/test.gni") 16 17ohos_source_set("fingerprintauthservice_source_set_fuzzer") { 18 branch_protector_ret = "pac_ret" 19 sources = [ 20 "../../../services/src/fingerprint_auth_all_in_one_executor_hdi.cpp", 21 "../../../services/src/fingerprint_auth_driver_hdi.cpp", 22 "../../../services/src/fingerprint_auth_executor_callback_hdi.cpp", 23 "../../../services/src/fingerprint_auth_interface_adapter.cpp", 24 "../../../services/src/fingerprint_auth_service.cpp", 25 "../../../services/src/memory_guard.cpp", 26 "../../../services/src/sa_command_manager.cpp", 27 "../../../services/src/sensor_illumination_manager.cpp", 28 "../../../services/src/service_ex_manager.cpp", 29 ] 30 31 public_configs = [ "../../../services:fingerprintauthservice_config" ] 32 33 external_deps = [ 34 "c_utils:utils", 35 "drivers_interface_fingerprint_auth:libfingerprint_auth_proxy_2.0", 36 "hilog:libhilog", 37 "miscdevice:vibrator_interface_native", 38 "safwk:system_ability_fwk", 39 "samgr:samgr_proxy", 40 "user_auth_framework:userauth_executors", 41 ] 42 43 if (use_musl) { 44 if (musl_use_jemalloc && musl_use_jemalloc_dfx_intf) { 45 defines = [ "CONFIG_USE_JEMALLOC_DFX_INTF" ] 46 } 47 } 48 49 remove_configs = [ "//build/config/compiler:no_exceptions" ] 50 51 subsystem_name = "useriam" 52 part_name = "fingerprint_auth" 53} 54