• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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("userauth_executors_public_config") {
17  include_dirs = [
18    "../../../interfaces/inner_api",
19    "../../../interfaces/inner_api/iam_executor",
20  ]
21}
22
23ohos_shared_library("userauth_executors") {
24  sanitize = {
25    integer_overflow = true
26    ubsan = true
27    boundary_sanitize = true
28    cfi = true
29    cfi_cross_dso = true
30    debug = false
31    blocklist = "../../../cfi_blocklist.txt"
32  }
33  branch_protector_ret = "pac_ret"
34  sources = [
35    "src/async_command/abandon_command.cpp",
36    "src/async_command/async_command_base.cpp",
37    "src/async_command/auth_command.cpp",
38    "src/async_command/collect_command.cpp",
39    "src/async_command/custom_command.cpp",
40    "src/async_command/enroll_command.cpp",
41    "src/async_command/identify_command.cpp",
42    "src/driver.cpp",
43    "src/driver_manager.cpp",
44    "src/executor.cpp",
45    "src/framework/executor_mgr_wrapper.cpp",
46    "src/framework/framework_executor_callback.cpp",
47    "src/iauth_executor_hdi.cpp",
48    "src/idriver_manager.cpp",
49    "src/listener/auth_executor_mgr_status_listener.cpp",
50    "src/listener/driver_manager_status_listener.cpp",
51  ]
52
53  include_dirs = [
54    "include",
55    "include/async_command",
56    "include/framework",
57    "include/listener",
58  ]
59
60  configs = [ "../../../common:iam_log_config" ]
61
62  public_configs = [ ":userauth_executors_public_config" ]
63
64  remove_configs = [ "//build/config/compiler:no_exceptions" ]
65
66  if (use_musl) {
67    version_script = "user_auth_executors_map"
68  }
69
70  deps = [
71    "../../../common:iam_utils",
72    "../../../frameworks/native/client:userauth_client",
73    "../../../frameworks/native/common:attributes",
74    "../../../frameworks/native/common:dfx",
75  ]
76
77  external_deps = [
78    "c_utils:utils",
79    "hdf_core:libhdi",
80    "hilog:libhilog",
81    "init:libbeget_proxy",
82    "init:libbegetutil",
83    "ipc:ipc_single",
84    "samgr:samgr_proxy",
85  ]
86
87  subsystem_name = "useriam"
88  part_name = "user_auth_framework"
89}
90