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 16ohos_shared_library("libfingerprint_auth_interface_service_2.0") { 17 sanitize = { 18 integer_overflow = true 19 ubsan = true 20 boundary_sanitize = true 21 cfi = true 22 cfi_cross_dso = true 23 debug = false 24 } 25 branch_protector_ret = "pac_ret" 26 include_dirs = [ 27 "include", 28 "../common/logs", 29 ] 30 sources = [ 31 "src/all_in_one_executor_impl.cpp", 32 "src/fingerprint_auth_interface_service.cpp", 33 ] 34 35 external_deps = [ 36 "c_utils:utils", 37 "drivers_interface_fingerprint_auth:libfingerprint_auth_stub_2.0", 38 "hdf_core:libhdi", 39 "hilog:libhilog", 40 "ipc:ipc_single", 41 "hdf_core:libhdf_utils", 42 ] 43 44 install_images = [ chipset_base_dir ] 45 subsystem_name = "hdf" 46 part_name = "drivers_peripheral_fingerprint_auth" 47} 48 49ohos_shared_library("libfingerprint_auth_driver") { 50 sanitize = { 51 integer_overflow = true 52 ubsan = true 53 boundary_sanitize = true 54 cfi = true 55 cfi_cross_dso = true 56 debug = false 57 } 58 branch_protector_ret = "pac_ret" 59 include_dirs = [ 60 "include", 61 "../common/logs", 62 ] 63 sources = [ "src/fingerprint_auth_interface_driver.cpp" ] 64 65 external_deps = [ 66 "c_utils:utils", 67 "drivers_interface_fingerprint_auth:libfingerprint_auth_stub_2.0", 68 "hdf_core:libhdf_host", 69 "hdf_core:libhdf_ipc_adapter", 70 "hdf_core:libhdf_utils", 71 "hdf_core:libhdi", 72 "hilog:libhilog", 73 "ipc:ipc_single", 74 ] 75 76 shlib_type = "hdi" 77 install_images = [ chipset_base_dir ] 78 subsystem_name = "hdf" 79 part_name = "drivers_peripheral_fingerprint_auth" 80} 81 82group("hdf_fingerprint_auth_service") { 83 deps = [ 84 ":libfingerprint_auth_driver", 85 ":libfingerprint_auth_interface_service_2.0", 86 ] 87} 88