• 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("userauth_client_ipc_config") {
17  include_dirs = [
18    "inc",
19    "common_defines",
20  ]
21}
22
23ohos_source_set("userauth_client_ipc") {
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  include_dirs = [
35    "inc",
36    "common_defines",
37    "../../../interfaces/inner_api",
38  ]
39
40  sources = [
41    "src/co_auth_proxy.cpp",
42    "src/executor_callback_stub.cpp",
43    "src/executor_messenger_proxy.cpp",
44    "src/modal_callback_stub.cpp",
45    "src/user_access_ctrl_callback_stub.cpp",
46    "src/user_auth_callback_stub.cpp",
47    "src/user_auth_event_listener_stub.cpp",
48    "src/user_auth_proxy.cpp",
49    "src/user_idm_callback_stub.cpp",
50    "src/user_idm_proxy.cpp",
51    "src/widget_callback_stub.cpp",
52  ]
53
54  configs = [
55    "../../../common:iam_log_config",
56    "../../../common:iam_utils_config",
57  ]
58
59  public_configs = [ ":userauth_client_ipc_config" ]
60  remove_configs = [ "//build/config/compiler:no_exceptions" ]
61
62  external_deps = [
63    "c_utils:utils",
64    "hilog:libhilog",
65    "ipc:ipc_single",
66  ]
67
68  subsystem_name = "useriam"
69  part_name = "user_auth_framework"
70}
71
72ohos_source_set("userauth_service_ipc") {
73  sanitize = {
74    integer_overflow = true
75    ubsan = true
76    boundary_sanitize = true
77    cfi = true
78    cfi_cross_dso = true
79    debug = false
80    blocklist = "../../../cfi_blocklist.txt"
81  }
82  branch_protector_ret = "pac_ret"
83  include_dirs = [
84    "inc",
85    "common_defines",
86    "../../../interfaces/inner_api",
87  ]
88
89  sources = [
90    "src/co_auth_stub.cpp",
91    "src/executor_callback_proxy.cpp",
92    "src/executor_messenger_stub.cpp",
93    "src/modal_callback_proxy.cpp",
94    "src/user_access_ctrl_callback_proxy.cpp",
95    "src/user_auth_callback_proxy.cpp",
96    "src/user_auth_event_listener_proxy.cpp",
97    "src/user_auth_stub.cpp",
98    "src/user_idm_callback_proxy.cpp",
99    "src/user_idm_stub.cpp",
100    "src/widget_callback_proxy.cpp",
101  ]
102
103  configs = [
104    "../../../common:iam_log_config",
105    "../../../common:iam_utils_config",
106  ]
107
108  public_configs = [ ":userauth_client_ipc_config" ]
109  remove_configs = [ "//build/config/compiler:no_exceptions" ]
110
111  external_deps = [
112    "c_utils:utils",
113    "hilog:libhilog",
114    "ipc:ipc_single",
115  ]
116
117  subsystem_name = "useriam"
118  part_name = "user_auth_framework"
119}
120