# Copyright (c) 2022-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") ohos_shared_library("libface_auth_interface_service_2.0") { sanitize = { integer_overflow = true ubsan = true boundary_sanitize = true cfi = true cfi_cross_dso = true debug = false } branch_protector_ret = "pac_ret" include_dirs = [ "include", "../common/logs", "../common/utils", ] sources = [ "src/all_in_one_executor_impl.cpp", "src/face_auth_interface_service.cpp", ] external_deps = [ "c_utils:utils", "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", "drivers_interface_face_auth:libface_auth_stub_2.0", "graphic_surface:surface", "hdf_core:libhdi", "hilog:libhilog", "ipc:ipc_single", ] install_images = [ chipset_base_dir ] subsystem_name = "hdf" part_name = "drivers_peripheral_face_auth" } ohos_shared_library("libface_auth_driver") { sanitize = { integer_overflow = true ubsan = true boundary_sanitize = true cfi = true cfi_cross_dso = true debug = false } branch_protector_ret = "pac_ret" include_dirs = [ "include", "../common/logs", ] sources = [ "src/face_auth_interface_driver.cpp" ] external_deps = [ "c_utils:utils", "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", "drivers_interface_face_auth:libface_auth_stub_2.0", "graphic_surface:surface", "hdf_core:libhdf_host", "hdf_core:libhdf_ipc_adapter", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hilog:libhilog", "ipc:ipc_single", ] shlib_type = "hdi" install_images = [ chipset_base_dir ] subsystem_name = "hdf" part_name = "drivers_peripheral_face_auth" } group("hdf_face_auth_service") { deps = [ ":libface_auth_driver", ":libface_auth_interface_service_2.0", ] }