• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("../../../device_status.gni")
15
16config("intention_socket_server_public_config") {
17  include_dirs = [ "include" ]
18}
19
20ohos_source_set("intention_socket_server") {
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  }
29
30  branch_protector_ret = "pac_ret"
31
32  defines = device_status_default_defines
33
34  include_dirs = [
35    "include",
36  ]
37
38  sources = [
39    "src/socket_server.cpp",
40  ]
41
42  public_configs = [ ":intention_socket_server_public_config" ]
43
44  deps = [
45    "${device_status_root_path}/intention/prototype:intention_prototype",
46    "${device_status_root_path}/utils/common:devicestatus_util",
47    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
48  ]
49
50  external_deps = [
51    "access_token:libaccesstoken_sdk",
52    "eventhandler:libeventhandler",
53    "graphic_2d:librender_service_client",
54    "hilog:libhilog",
55    "image_framework:image_native",
56    "input:libmmi-client",
57    "ipc:ipc_single",
58    "window_manager:libdm",
59  ]
60
61  subsystem_name = "${device_status_subsystem_name}"
62  part_name = "${device_status_part_name}"
63}
64
65config("intention_socket_session_manager_public_config") {
66  include_dirs = [ "include" ]
67}
68
69ohos_source_set("intention_socket_session_manager") {
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  }
78
79  branch_protector_ret = "pac_ret"
80
81  defines = device_status_default_defines
82
83  include_dirs = [ "include" ]
84
85  sources = [
86    "src/socket_session.cpp",
87    "src/socket_session_manager.cpp",
88  ]
89
90  public_configs = [ ":intention_socket_session_manager_public_config" ]
91
92  deps = [
93    "${device_status_root_path}/intention/common/epoll:intention_epoll",
94    "${device_status_root_path}/intention/prototype:intention_prototype",
95    "${device_status_root_path}/utils/common:devicestatus_util",
96    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
97  ]
98
99  external_deps = [
100    "ability_runtime:app_manager",
101    "eventhandler:libeventhandler",
102    "hilog:libhilog",
103    "image_framework:image_native",
104    "input:libmmi-client",
105    "ipc:ipc_single",
106    "samgr:samgr_proxy",
107  ]
108
109  subsystem_name = "${device_status_subsystem_name}"
110  part_name = "${device_status_part_name}"
111}
112
113config("intention_socket_connection_public_config") {
114  include_dirs = [ "include" ]
115}
116
117ohos_source_set("intention_socket_connection") {
118  sanitize = {
119    integer_overflow = true
120    ubsan = true
121    boundary_sanitize = true
122    cfi = true
123    cfi_cross_dso = true
124    debug = false
125  }
126
127  branch_protector_ret = "pac_ret"
128
129  defines = device_status_default_defines
130
131  include_dirs = [
132    "include",
133    "${device_status_root_path}/intention/ipc/tunnel/include"
134  ]
135
136  sources = [
137    "src/socket_client.cpp",
138    "src/socket_connection.cpp",
139  ]
140
141  public_configs = [ ":intention_socket_connection_public_config" ]
142
143  deps = [
144    "${device_status_root_path}/intention/common/epoll:intention_epoll",
145    "${device_status_root_path}/intention/prototype:intention_prototype",
146    "${device_status_root_path}/utils/common:devicestatus_util",
147    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
148    "${device_status_root_path}/intention/ipc/tunnel:intention_client",
149  ]
150
151  external_deps = [
152    "c_utils:utils",
153    "eventhandler:libeventhandler",
154    "graphic_2d:librender_service_client",
155    "hilog:libhilog",
156    "image_framework:image_native",
157    "ipc:ipc_single",
158  ]
159
160  subsystem_name = "${device_status_subsystem_name}"
161  part_name = "${device_status_part_name}"
162}
163