• 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    "hilog:libhilog",
55    "init:libbegetutil",
56    "user_auth_framework:userauth_executors",
57  ]
58
59  defines = []
60
61  if (face_use_display_manager_component) {
62    external_deps += [
63      "display_manager:displaymgr",
64      "ipc:ipc_core",
65    ]
66    defines += [ "FACE_USE_DISPLAY_MANAGER_COMPONENT" ]
67  }
68
69  if (face_use_power_manager_component) {
70    external_deps += [ "power_manager:powermgr_client" ]
71  }
72
73  if (defined(face_use_sensor_component)) {
74    external_deps += [ "sensor:sensor_interface_native" ]
75    defines += [ "FACE_USE_SENSOR_COMPONENT" ]
76  }
77
78  if (defined(global_parts_info.graphic_graphic_2d)) {
79    external_deps += [ "graphic_surface:surface" ]
80  }
81
82  remove_configs = [ "//build/config/compiler:no_exceptions" ]
83
84  subsystem_name = "useriam"
85  part_name = "face_auth"
86}
87
88ohos_shared_library("faceauthservice_ex") {
89  sanitize = {
90    integer_overflow = true
91    ubsan = true
92    boundary_sanitize = true
93    cfi = true
94    cfi_cross_dso = true
95    debug = false
96    blocklist = "../cfi_blocklist.txt"
97  }
98  branch_protector_ret = "pac_ret"
99  deps = [ ":faceauthservice_ex_source_set" ]
100
101  external_deps = [ "hilog:libhilog" ]
102
103  if (use_musl) {
104    version_script = "face_auth_service_ex_map"
105  }
106
107  subsystem_name = "useriam"
108  part_name = "face_auth"
109}
110