14f7ff21fSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
24f7ff21fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
34f7ff21fSopenharmony_ci# you may not use this file except in compliance with the License.
44f7ff21fSopenharmony_ci# You may obtain a copy of the License at
54f7ff21fSopenharmony_ci#
64f7ff21fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
74f7ff21fSopenharmony_ci#
84f7ff21fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
94f7ff21fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
104f7ff21fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114f7ff21fSopenharmony_ci# See the License for the specific language governing permissions and
124f7ff21fSopenharmony_ci# limitations under the License.
134f7ff21fSopenharmony_ci
144f7ff21fSopenharmony_ciimport("//build/config/features.gni")
154f7ff21fSopenharmony_ciimport("//build/test.gni")
164f7ff21fSopenharmony_ci
174f7ff21fSopenharmony_ciohos_source_set("fingerprintauthservice_source_set_fuzzer") {
184f7ff21fSopenharmony_ci  branch_protector_ret = "pac_ret"
194f7ff21fSopenharmony_ci  sources = [
204f7ff21fSopenharmony_ci    "../../../services/src/fingerprint_auth_all_in_one_executor_hdi.cpp",
214f7ff21fSopenharmony_ci    "../../../services/src/fingerprint_auth_driver_hdi.cpp",
224f7ff21fSopenharmony_ci    "../../../services/src/fingerprint_auth_executor_callback_hdi.cpp",
234f7ff21fSopenharmony_ci    "../../../services/src/fingerprint_auth_interface_adapter.cpp",
244f7ff21fSopenharmony_ci    "../../../services/src/fingerprint_auth_service.cpp",
254f7ff21fSopenharmony_ci    "../../../services/src/memory_guard.cpp",
264f7ff21fSopenharmony_ci    "../../../services/src/sa_command_manager.cpp",
274f7ff21fSopenharmony_ci    "../../../services/src/sensor_illumination_manager.cpp",
284f7ff21fSopenharmony_ci    "../../../services/src/service_ex_manager.cpp",
294f7ff21fSopenharmony_ci  ]
304f7ff21fSopenharmony_ci
314f7ff21fSopenharmony_ci  public_configs = [ "../../../services:fingerprintauthservice_config" ]
324f7ff21fSopenharmony_ci
334f7ff21fSopenharmony_ci  external_deps = [
344f7ff21fSopenharmony_ci    "c_utils:utils",
354f7ff21fSopenharmony_ci    "drivers_interface_fingerprint_auth:libfingerprint_auth_proxy_2.0",
364f7ff21fSopenharmony_ci    "hilog:libhilog",
374f7ff21fSopenharmony_ci    "miscdevice:vibrator_interface_native",
384f7ff21fSopenharmony_ci    "safwk:system_ability_fwk",
394f7ff21fSopenharmony_ci    "samgr:samgr_proxy",
404f7ff21fSopenharmony_ci    "user_auth_framework:userauth_executors",
414f7ff21fSopenharmony_ci  ]
424f7ff21fSopenharmony_ci
434f7ff21fSopenharmony_ci  if (use_musl) {
444f7ff21fSopenharmony_ci    if (musl_use_jemalloc && musl_use_jemalloc_dfx_intf) {
454f7ff21fSopenharmony_ci      defines = [ "CONFIG_USE_JEMALLOC_DFX_INTF" ]
464f7ff21fSopenharmony_ci    }
474f7ff21fSopenharmony_ci  }
484f7ff21fSopenharmony_ci
494f7ff21fSopenharmony_ci  remove_configs = [ "//build/config/compiler:no_exceptions" ]
504f7ff21fSopenharmony_ci
514f7ff21fSopenharmony_ci  subsystem_name = "useriam"
524f7ff21fSopenharmony_ci  part_name = "fingerprint_auth"
534f7ff21fSopenharmony_ci}
54