• 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("//base/useriam/face_auth/face_auth.gni")
15import("//build/ohos.gni")
16
17config("faceauthservice_ex_config") {
18  include_dirs = [ "inc" ]
19}
20
21ohos_source_set("faceauthservice_ex_source_set") {
22  sanitize = {
23    integer_overflow = true
24    ubsan = true
25    boundary_sanitize = true
26    cfi = true
27    cfi_cross_dso = true
28    debug = false
29    blocklist = "../cfi_blocklist.txt"
30  }
31  branch_protector_ret = "pac_ret"
32  sources = [
33    "src/finite_state_machine_builder.cpp",
34    "src/finite_state_machine_impl.cpp",
35    "src/screen_brightness_task.cpp",
36    "src/thread_handler_impl.cpp",
37  ]
38  include_dirs = [
39    "inc",
40    "../services/inc",
41    "../common/inc",
42    "../common/logs",
43    "../common/utils",
44  ]
45
46  public_configs = [ ":faceauthservice_ex_config" ]
47
48  deps = [ "../services:faceauthservice" ]
49
50  external_deps = [
51    "c_utils:utils",
52    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
53    "drivers_interface_face_auth:libface_auth_proxy_2.0",
54    "hdf_core:libhdf_utils",
55    "hilog:libhilog",
56    "init:libbegetutil",
57    "user_auth_framework:userauth_executors",
58  ]
59
60  defines = []
61
62  if (face_use_display_manager_component) {
63    external_deps += [
64      "display_manager:displaymgr",
65      "ipc:ipc_core",
66    ]
67    defines += [ "FACE_USE_DISPLAY_MANAGER_COMPONENT" ]
68  }
69
70  if (face_use_power_manager_component) {
71    external_deps += [ "power_manager:powermgr_client" ]
72  }
73
74  if (defined(face_use_sensor_component)) {
75    external_deps += [ "sensor:sensor_interface_native" ]
76    defines += [ "FACE_USE_SENSOR_COMPONENT" ]
77  }
78
79  if (defined(global_parts_info.graphic_graphic_2d)) {
80    external_deps += [ "graphic_surface:surface" ]
81  }
82
83  remove_configs = [ "//build/config/compiler:no_exceptions" ]
84
85  subsystem_name = "useriam"
86  part_name = "face_auth"
87}
88
89ohos_shared_library("faceauthservice_ex") {
90  sanitize = {
91    integer_overflow = true
92    ubsan = true
93    boundary_sanitize = true
94    cfi = true
95    cfi_cross_dso = true
96    debug = false
97    blocklist = "../cfi_blocklist.txt"
98  }
99  branch_protector_ret = "pac_ret"
100  deps = [ ":faceauthservice_ex_source_set" ]
101
102  external_deps = [ "hilog:libhilog" ]
103
104  if (use_musl) {
105    version_script = "face_auth_service_ex_map"
106  }
107
108  subsystem_name = "useriam"
109  part_name = "face_auth"
110}
111