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