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("libface_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 "../common/utils", 30 ] 31 sources = [ 32 "src/all_in_one_executor_impl.cpp", 33 "src/face_auth_interface_service.cpp", 34 ] 35 36 external_deps = [ 37 "c_utils:utils", 38 "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", 39 "drivers_interface_face_auth:libface_auth_stub_2.0", 40 "graphic_surface:surface", 41 "hdf_core:libhdf_utils", 42 "hdf_core:libhdi", 43 "hilog:libhilog", 44 "ipc:ipc_single", 45 ] 46 47 install_images = [ chipset_base_dir ] 48 subsystem_name = "hdf" 49 part_name = "drivers_peripheral_face_auth" 50} 51 52ohos_shared_library("libface_auth_driver") { 53 sanitize = { 54 integer_overflow = true 55 ubsan = true 56 boundary_sanitize = true 57 cfi = true 58 cfi_cross_dso = true 59 debug = false 60 } 61 branch_protector_ret = "pac_ret" 62 include_dirs = [ 63 "include", 64 "../common/logs", 65 ] 66 sources = [ "src/face_auth_interface_driver.cpp" ] 67 68 external_deps = [ 69 "c_utils:utils", 70 "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", 71 "drivers_interface_face_auth:libface_auth_stub_2.0", 72 "graphic_surface:surface", 73 "hdf_core:libhdf_host", 74 "hdf_core:libhdf_ipc_adapter", 75 "hdf_core:libhdf_utils", 76 "hdf_core:libhdi", 77 "hilog:libhilog", 78 "ipc:ipc_single", 79 ] 80 81 shlib_type = "hdi" 82 install_images = [ chipset_base_dir ] 83 subsystem_name = "hdf" 84 part_name = "drivers_peripheral_face_auth" 85} 86 87group("hdf_face_auth_service") { 88 deps = [ 89 ":libface_auth_driver", 90 ":libface_auth_interface_service_2.0", 91 ] 92} 93