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