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