• 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/config/features.gni")
15import("//build/test.gni")
16
17ohos_source_set("faceauth_framework_stub_fuzzer") {
18  branch_protector_ret = "pac_ret"
19  sources = [ "../../../frameworks/ipc/src/face_auth_stub.cpp" ]
20
21  configs = [ "../../../common:iam_log_config" ]
22
23  public_configs =
24      [ "../../../frameworks/ipc:faceauth_framework_public_config" ]
25
26  include_dirs = [
27    "../../../common/utils",
28    "../../../common/inc",
29  ]
30
31  external_deps = [
32    "hilog:libhilog",
33    "ipc:ipc_single",
34  ]
35
36  if (defined(global_parts_info.graphic_graphic_2d)) {
37    external_deps += [ "graphic_surface:surface" ]
38  }
39
40  subsystem_name = "useriam"
41  part_name = "face_auth"
42}
43
44ohos_source_set("faceauthservice_source_set_fuzzer") {
45  branch_protector_ret = "pac_ret"
46  sources = [
47    "../../../services/src/face_auth_all_in_one_executor_hdi.cpp",
48    "../../../services/src/face_auth_driver_hdi.cpp",
49    "../../../services/src/face_auth_executor_callback_hdi.cpp",
50    "../../../services/src/face_auth_interface_adapter.cpp",
51    "../../../services/src/face_auth_service.cpp",
52    "../../../services/src/sa_command_manager.cpp",
53    "../../../services/src/screen_brightness_manager.cpp",
54    "../../../services/src/service_ex_manager.cpp",
55  ]
56
57  public_configs = [ "../../../services:faceauthservice_config" ]
58
59  deps = [ "../common_fuzzer:faceauth_framework_stub_fuzzer" ]
60
61  external_deps = [
62    "access_token:libaccesstoken_sdk",
63    "access_token:libtokenid_sdk",
64    "c_utils:utils",
65    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
66    "drivers_interface_face_auth:libface_auth_proxy_2.0",
67    "hdf_core:libhdf_utils",
68    "hilog:libhilog",
69    "ipc:ipc_single",
70    "miscdevice:vibrator_interface_native",
71    "safwk:system_ability_fwk",
72    "samgr:samgr_proxy",
73    "user_auth_framework:userauth_executors",
74  ]
75
76  if (defined(global_parts_info.graphic_graphic_2d)) {
77    external_deps += [ "graphic_surface:surface" ]
78  }
79
80  remove_configs = [ "//build/config/compiler:no_exceptions" ]
81
82  subsystem_name = "useriam"
83  part_name = "face_auth"
84}
85