1# Copyright (c) 2024 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_service_remote_connect_config") {
17  include_dirs = [ "inc" ]
18}
19
20ohos_source_set("userauth_service_remote_connect") {
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  branch_protector_ret = "pac_ret"
31  include_dirs = [ "inc" ]
32
33  remove_configs = [ "//build/config/compiler:no_exceptions" ]
34
35  sources = [
36    "src/device_manager_util.cpp",
37    "src/remote_connect_listener.cpp",
38    "src/remote_connect_listener_manager.cpp",
39    "src/remote_connect_manager.cpp",
40    "src/socket_factory.cpp",
41    "src/soft_bus_base_socket.cpp",
42    "src/soft_bus_client_socket.cpp",
43    "src/soft_bus_manager.cpp",
44    "src/soft_bus_message.cpp",
45    "src/soft_bus_server_socket.cpp",
46    "src/soft_bus_socket_listener.cpp",
47  ]
48
49  deps = [ "../../frameworks/native/common:attributes" ]
50
51  external_deps = [
52    "access_token:libtokensetproc_shared",
53    "c_utils:utils",
54    "device_manager:devicemanagersdk",
55    "dsoftbus:softbus_client",
56    "hilog:libhilog",
57    "init:libbegetutil",
58    "safwk:system_ability_fwk",
59    "samgr:samgr_proxy",
60  ]
61
62  public_configs = [ ":userauth_service_remote_connect_config" ]
63
64  configs = [
65    "../base:userauth_service_base_config",
66    "../../common:iam_log_config",
67    "../../common:iam_utils_config",
68  ]
69
70  subsystem_name = "useriam"
71  part_name = "user_auth_framework"
72}
73