• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/ohos.gni")
15import("../../../pin_auth.gni")
16
17ohos_source_set("pinauth_ipc_fuzzer") {
18  branch_protector_ret = "pac_ret"
19  include_dirs = [
20    "../../../frameworks/ipc/inc",
21    "../../../frameworks/ipc/common_defines",
22  ]
23
24  sources = [
25    "../../../frameworks/ipc/src/inputer_get_data_proxy.cpp",
26    "../../../frameworks/ipc/src/inputer_get_data_stub.cpp",
27    "../../../frameworks/ipc/src/inputer_set_data_proxy.cpp",
28    "../../../frameworks/ipc/src/inputer_set_data_stub.cpp",
29    "../../../frameworks/ipc/src/pin_auth_proxy.cpp",
30    "../../../frameworks/ipc/src/pin_auth_stub.cpp",
31  ]
32
33  configs = [ "../../../common:iam_log_config" ]
34  public_configs = [ "../../../frameworks:pinauth_ipc_config" ]
35
36  external_deps = [
37    "c_utils:utils",
38    "hilog:libhilog",
39    "ipc:ipc_single",
40    "user_auth_framework:userauth_client",
41  ]
42
43  subsystem_name = "useriam"
44  part_name = "pin_auth"
45}
46
47ohos_source_set("pinauthservice_source_set_fuzzer") {
48  branch_protector_ret = "pac_ret"
49  sources = [
50    "../../../services/modules/driver/src/pin_auth_driver_hdi.cpp",
51    "../../../services/modules/driver/src/pin_auth_interface_adapter.cpp",
52    "../../../services/modules/executors/src/pin_auth_executor_callback_hdi.cpp",
53    "../../../services/modules/executors/src/pin_auth_executor_hdi.cpp",
54    "../../../services/modules/inputters/src/i_inputer_data_impl.cpp",
55    "../../../services/modules/inputters/src/pin_auth_manager.cpp",
56    "../../../services/sa/src/pin_auth_service.cpp",
57  ]
58
59  configs = [
60    "../../../services:pin_auth_services_config",
61    "../../../common:iam_log_config",
62    "../../../common:iam_utils_config",
63  ]
64
65  public_configs = [ "../../../services:pin_auth_services_config" ]
66
67  deps = [
68    "../common_fuzzer:pinauth_ipc_fuzzer",
69    "//third_party/openssl:libcrypto_shared",
70  ]
71
72  external_deps = [
73    "access_token:libaccesstoken_sdk",
74    "c_utils:utils",
75    "drivers_interface_pin_auth:libpin_auth_proxy_1.1",
76    "hilog:libhilog",
77    "hisysevent:libhisysevent",
78    "ipc:ipc_single",
79    "safwk:system_ability_fwk",
80    "samgr:samgr_proxy",
81    "user_auth_framework:userauth_executors",
82  ]
83
84  defines = []
85  if (sensors_miscdevice_enable) {
86    external_deps += [ "miscdevice:vibrator_interface_native" ]
87    defines += [ "SENSORS_MISCDEVICE_ENABLE" ]
88  }
89
90  remove_configs = [ "//build/config/compiler:no_exceptions" ]
91
92  subsystem_name = "useriam"
93  part_name = "pin_auth"
94}
95