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("libfingerprint_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  ]
30  sources = [
31    "src/all_in_one_executor_impl.cpp",
32    "src/fingerprint_auth_interface_service.cpp",
33  ]
34
35  external_deps = [
36    "c_utils:utils",
37    "drivers_interface_fingerprint_auth:libfingerprint_auth_stub_2.0",
38    "hdf_core:libhdi",
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  branch_protector_ret = "pac_ret"
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:libfingerprint_auth_stub_2.0",
67    "hdf_core:libhdf_host",
68    "hdf_core:libhdf_ipc_adapter",
69    "hdf_core:libhdf_utils",
70    "hdf_core:libhdi",
71    "hilog:libhilog",
72    "ipc:ipc_single",
73  ]
74
75  shlib_type = "hdi"
76  install_images = [ chipset_base_dir ]
77  subsystem_name = "hdf"
78  part_name = "drivers_peripheral_fingerprint_auth"
79}
80
81group("hdf_fingerprint_auth_service") {
82  deps = [
83    ":libfingerprint_auth_driver",
84    ":libfingerprint_auth_interface_service_2.0",
85  ]
86}
87