1# Copyright (c) 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/config/features.gni")
15import("//build/test.gni")
16
17ohos_shared_library("libpin_auth_interface_service_2.1_fuzzer") {
18  branch_protector_ret = "pac_ret"
19  include_dirs = [
20    "../../../../hdi_service/service/inc",
21    "../../../../hdi_service/adaptor/inc",
22    "../../../../hdi_service/common/inc",
23    "../../../../hdi_service/database/inc",
24    "../../../../hdi_service/main/inc",
25    "../../../../common/logs",
26    "../../../../common/utils",
27  ]
28  sources = [
29    "../../../../hdi_service/adaptor/src/adaptor_algorithm.c",
30    "../../../../hdi_service/adaptor/src/adaptor_file.c",
31    "../../../../hdi_service/adaptor/src/adaptor_memory.c",
32    "../../../../hdi_service/adaptor/src/adaptor_time.c",
33    "../../../../hdi_service/adaptor/src/buffer.c",
34    "../../../../hdi_service/adaptor/src/file_operator.c",
35    "../../../../hdi_service/common/src/attribute.c",
36    "../../../../hdi_service/common/src/c_array.c",
37    "../../../../hdi_service/database/src/pin_db.c",
38    "../../../../hdi_service/database/src/pin_db_ops.c",
39    "../../../../hdi_service/database/src/pin_db_ops_base.c",
40    "../../../../hdi_service/database/src/pin_db_ops_v0.c",
41    "../../../../hdi_service/database/src/pin_db_ops_v1.c",
42    "../../../../hdi_service/main/src/all_in_one_func.c",
43    "../../../../hdi_service/main/src/collector_func.c",
44    "../../../../hdi_service/main/src/executor_func_common.c",
45    "../../../../hdi_service/main/src/pin_auth.cpp",
46    "../../../../hdi_service/main/src/verifier_func.c",
47    "../../../../hdi_service/service/src/all_in_one_impl.cpp",
48    "../../../../hdi_service/service/src/collector_impl.cpp",
49    "../../../../hdi_service/service/src/executor_impl_common.cpp",
50    "../../../../hdi_service/service/src/pin_auth_interface_service.cpp",
51    "../../../../hdi_service/service/src/verifier_impl.cpp",
52  ]
53
54  external_deps = [
55    "c_utils:utils",
56    "drivers_interface_pin_auth:pin_auth_idl_headers",
57    "hilog:libhilog",
58    "init:libbegetutil",
59    "ipc:ipc_single",
60    "openssl:libcrypto_shared",
61  ]
62
63  install_images = [ chipset_base_dir ]
64  remove_configs = [ "//build/config/compiler:no_exceptions" ]
65  subsystem_name = "hdf"
66  part_name = "drivers_peripheral_pin_auth"
67}
68