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") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17ohos_shared_library("libfingerprint_auth_interface_service_1.1") { 18 sanitize = { 19 integer_overflow = true 20 ubsan = true 21 boundary_sanitize = true 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 stack_protector_ret = true 27 include_dirs = [ 28 "include", 29 "../common/logs", 30 ] 31 sources = [ 32 "src/executor_impl.cpp", 33 "src/fingerprint_auth_interface_service.cpp", 34 ] 35 36 external_deps = [ 37 "c_utils:utils", 38 "drivers_interface_fingerprint_auth:fingerprint_auth_idl_headers_1.1", 39 "hilog:libhilog", 40 "ipc:ipc_single", 41 ] 42 43 install_images = [ chipset_base_dir ] 44 subsystem_name = "hdf" 45 part_name = "drivers_peripheral_fingerprint_auth" 46} 47 48ohos_shared_library("libfingerprint_auth_driver") { 49 sanitize = { 50 integer_overflow = true 51 ubsan = true 52 boundary_sanitize = true 53 cfi = true 54 cfi_cross_dso = true 55 debug = false 56 } 57 stack_protector_ret = true 58 include_dirs = [ 59 "include", 60 "../common/logs", 61 ] 62 sources = [ "src/fingerprint_auth_interface_driver.cpp" ] 63 64 external_deps = [ 65 "c_utils:utils", 66 "drivers_interface_fingerprint_auth:fingerprint_auth_idl_headers_1.1", 67 "drivers_interface_fingerprint_auth:libfingerprint_auth_stub_1.1", 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_1.1", 86 ] 87} 88