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("fingerprintauthservice_config") { 17 include_dirs = [ 18 "inc", 19 "../common/inc", 20 "../common/logs", 21 "../common/utils", 22 ] 23} 24 25ohos_source_set("fingerprintauthservice_source_set") { 26 sources = [ 27 "src/fingerprint_auth_driver_hdi.cpp", 28 "src/fingerprint_auth_executor_callback_hdi.cpp", 29 "src/fingerprint_auth_executor_hdi.cpp", 30 "src/fingerprint_auth_interface_adapter.cpp", 31 "src/fingerprint_auth_service.cpp", 32 "src/memory_guard.cpp", 33 "src/sa_command_manager.cpp", 34 "src/sensor_illumination_manager.cpp", 35 "src/service_ex_manager.cpp", 36 ] 37 38 public_configs = [ ":fingerprintauthservice_config" ] 39 40 external_deps = [ 41 "c_utils:utils", 42 "drivers_interface_fingerprint_auth:libfingerprint_auth_proxy_1.1", 43 "hilog:libhilog", 44 "safwk:system_ability_fwk", 45 "samgr:samgr_proxy", 46 "user_auth_framework:userauth_executors", 47 ] 48 49 if (use_musl) { 50 if (use_jemalloc && use_jemalloc_dfx_intf) { 51 defines = [ "CONFIG_USE_JEMALLOC_DFX_INTF" ] 52 } 53 } 54 55 remove_configs = [ "//build/config/compiler:no_exceptions" ] 56 57 subsystem_name = "useriam" 58 part_name = "fingerprint_auth" 59} 60 61ohos_shared_library("fingerprintauthservice") { 62 deps = [ ":fingerprintauthservice_source_set" ] 63 64 if (use_musl) { 65 version_script = "fingerprint_auth_service_map" 66 } 67 68 subsystem_name = "useriam" 69 part_name = "fingerprint_auth" 70} 71