• 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_ex_config") {
17  include_dirs = [ "inc" ]
18}
19
20ohos_source_set("faceauthservice_ex_source_set") {
21  sanitize = {
22    integer_overflow = true
23    ubsan = true
24    boundary_sanitize = true
25    cfi = true
26    cfi_cross_dso = true
27    debug = false
28    blocklist = "../cfi_blocklist.txt"
29  }
30  stack_protector_ret = true
31  sources = [
32    "src/finite_state_machine_builder.cpp",
33    "src/finite_state_machine_impl.cpp",
34    "src/screen_brightness_task.cpp",
35    "src/thread_handler_impl.cpp",
36  ]
37  include_dirs = [
38    "inc",
39    "../services/inc",
40    "../common/inc",
41    "../common/logs",
42    "../common/utils",
43  ]
44
45  public_configs = [ ":faceauthservice_ex_config" ]
46
47  deps = [ "../services:faceauthservice" ]
48
49  external_deps = [
50    "c_utils:utils",
51    "display_manager:displaymgr",
52    "drivers_interface_face_auth:libface_auth_proxy_1.1",
53    "hilog:libhilog",
54    "init:libbegetutil",
55    "power_manager:powermgr_client",
56    "sensor:sensor_interface_native",
57    "user_auth_framework:userauth_executors",
58  ]
59
60  if (defined(global_parts_info.graphic_graphic_2d)) {
61    external_deps += [ "graphic_surface:surface" ]
62  }
63
64  remove_configs = [ "//build/config/compiler:no_exceptions" ]
65
66  subsystem_name = "useriam"
67  part_name = "face_auth"
68}
69
70ohos_shared_library("faceauthservice_ex") {
71  sanitize = {
72    integer_overflow = true
73    ubsan = true
74    boundary_sanitize = true
75    cfi = true
76    cfi_cross_dso = true
77    debug = false
78    blocklist = "../cfi_blocklist.txt"
79  }
80  stack_protector_ret = true
81  deps = [ ":faceauthservice_ex_source_set" ]
82
83  if (use_musl) {
84    version_script = "face_auth_service_ex_map"
85  }
86
87  subsystem_name = "useriam"
88  part_name = "face_auth"
89}
90