• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16config("faceauthservice_config") {
17  include_dirs = [
18    "inc",
19    "../common/inc",
20    "../common/logs",
21    "../common/utils",
22  ]
23}
24
25ohos_source_set("faceauthservice_source_set") {
26  sanitize = {
27    integer_overflow = true
28    ubsan = true
29    boundary_sanitize = true
30    cfi = true
31    cfi_cross_dso = true
32    debug = false
33    blocklist = "../cfi_blocklist.txt"
34  }
35  stack_protector_ret = true
36  sources = [
37    "src/face_auth_driver_hdi.cpp",
38    "src/face_auth_executor_callback_hdi.cpp",
39    "src/face_auth_executor_hdi.cpp",
40    "src/face_auth_interface_adapter.cpp",
41    "src/face_auth_service.cpp",
42    "src/sa_command_manager.cpp",
43    "src/screen_brightness_manager.cpp",
44    "src/service_ex_manager.cpp",
45  ]
46  include_dirs = [
47    "inc",
48    "../common/inc",
49    "../common/logs",
50    "../common/utils",
51  ]
52
53  public_configs = [ ":faceauthservice_config" ]
54
55  deps = [ "../frameworks/ipc:faceauth_framework_stub" ]
56
57  external_deps = [
58    "access_token:libaccesstoken_sdk",
59    "access_token:libtokenid_sdk",
60    "c_utils:utils",
61    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
62    "drivers_interface_face_auth:libface_auth_proxy_1.1",
63    "hilog:libhilog",
64    "ipc:ipc_single",
65    "miscdevice:vibrator_interface_native",
66    "safwk:system_ability_fwk",
67    "samgr:samgr_proxy",
68    "user_auth_framework:userauth_executors",
69  ]
70
71  if (defined(global_parts_info.graphic_graphic_2d)) {
72    external_deps += [ "graphic_surface:surface" ]
73  }
74
75  remove_configs = [ "//build/config/compiler:no_exceptions" ]
76
77  subsystem_name = "useriam"
78  part_name = "face_auth"
79}
80
81ohos_shared_library("faceauthservice") {
82  sanitize = {
83    integer_overflow = true
84    ubsan = true
85    boundary_sanitize = true
86    cfi = true
87    cfi_cross_dso = true
88    debug = false
89    blocklist = "../cfi_blocklist.txt"
90  }
91  stack_protector_ret = true
92  deps = [ ":faceauthservice_source_set" ]
93
94  if (use_musl) {
95    version_script = "face_auth_service_map"
96  }
97
98  subsystem_name = "useriam"
99  part_name = "face_auth"
100}
101