1f857971dSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2f857971dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f857971dSopenharmony_ci# you may not use this file except in compliance with the License.
4f857971dSopenharmony_ci# You may obtain a copy of the License at
5f857971dSopenharmony_ci#
6f857971dSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f857971dSopenharmony_ci#
8f857971dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f857971dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f857971dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f857971dSopenharmony_ci# See the License for the specific language governing permissions and
12f857971dSopenharmony_ci# limitations under the License.
13f857971dSopenharmony_ci
14f857971dSopenharmony_ciimport("../../../device_status.gni")
15f857971dSopenharmony_ci
16f857971dSopenharmony_ciconfig("intention_socket_server_public_config") {
17f857971dSopenharmony_ci  include_dirs = [ "include" ]
18f857971dSopenharmony_ci}
19f857971dSopenharmony_ci
20f857971dSopenharmony_ciohos_source_set("intention_socket_server") {
21f857971dSopenharmony_ci  sanitize = {
22f857971dSopenharmony_ci    integer_overflow = true
23f857971dSopenharmony_ci    ubsan = true
24f857971dSopenharmony_ci    boundary_sanitize = true
25f857971dSopenharmony_ci    cfi = true
26f857971dSopenharmony_ci    cfi_cross_dso = true
27f857971dSopenharmony_ci    debug = false
28f857971dSopenharmony_ci  }
29f857971dSopenharmony_ci
30f857971dSopenharmony_ci  branch_protector_ret = "pac_ret"
31f857971dSopenharmony_ci
32f857971dSopenharmony_ci  defines = device_status_default_defines
33f857971dSopenharmony_ci
34f857971dSopenharmony_ci  include_dirs = [ "include" ]
35f857971dSopenharmony_ci
36f857971dSopenharmony_ci  sources = [
37f857971dSopenharmony_ci    "src/socket_params.cpp",
38f857971dSopenharmony_ci    "src/socket_server.cpp",
39f857971dSopenharmony_ci  ]
40f857971dSopenharmony_ci
41f857971dSopenharmony_ci  public_configs = [ ":intention_socket_server_public_config" ]
42f857971dSopenharmony_ci
43f857971dSopenharmony_ci  deps = [
44f857971dSopenharmony_ci    "${device_status_root_path}/intention/prototype:intention_prototype",
45f857971dSopenharmony_ci    "${device_status_root_path}/utils/common:devicestatus_util",
46f857971dSopenharmony_ci    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
47f857971dSopenharmony_ci  ]
48f857971dSopenharmony_ci
49f857971dSopenharmony_ci  external_deps = [
50f857971dSopenharmony_ci    "access_token:libaccesstoken_sdk",
51f857971dSopenharmony_ci    "graphic_2d:librender_service_client",
52f857971dSopenharmony_ci    "hilog:libhilog",
53f857971dSopenharmony_ci    "image_framework:image_native",
54f857971dSopenharmony_ci    "input:libmmi-client",
55f857971dSopenharmony_ci    "window_manager:libdm",
56f857971dSopenharmony_ci  ]
57f857971dSopenharmony_ci
58f857971dSopenharmony_ci  subsystem_name = "${device_status_subsystem_name}"
59f857971dSopenharmony_ci  part_name = "${device_status_part_name}"
60f857971dSopenharmony_ci}
61f857971dSopenharmony_ci
62f857971dSopenharmony_ciconfig("intention_socket_session_manager_public_config") {
63f857971dSopenharmony_ci  include_dirs = [ "include" ]
64f857971dSopenharmony_ci}
65f857971dSopenharmony_ci
66f857971dSopenharmony_ciohos_source_set("intention_socket_session_manager") {
67f857971dSopenharmony_ci  sanitize = {
68f857971dSopenharmony_ci    integer_overflow = true
69f857971dSopenharmony_ci    ubsan = true
70f857971dSopenharmony_ci    boundary_sanitize = true
71f857971dSopenharmony_ci    cfi = true
72f857971dSopenharmony_ci    cfi_cross_dso = true
73f857971dSopenharmony_ci    debug = false
74f857971dSopenharmony_ci  }
75f857971dSopenharmony_ci
76f857971dSopenharmony_ci  branch_protector_ret = "pac_ret"
77f857971dSopenharmony_ci
78f857971dSopenharmony_ci  defines = device_status_default_defines
79f857971dSopenharmony_ci
80f857971dSopenharmony_ci  include_dirs = [ "include" ]
81f857971dSopenharmony_ci
82f857971dSopenharmony_ci  sources = [
83f857971dSopenharmony_ci    "src/socket_session.cpp",
84f857971dSopenharmony_ci    "src/socket_session_manager.cpp",
85f857971dSopenharmony_ci  ]
86f857971dSopenharmony_ci
87f857971dSopenharmony_ci  public_configs = [ ":intention_socket_session_manager_public_config" ]
88f857971dSopenharmony_ci
89f857971dSopenharmony_ci  deps = [
90f857971dSopenharmony_ci    "${device_status_root_path}/intention/common/epoll:intention_epoll",
91f857971dSopenharmony_ci    "${device_status_root_path}/intention/prototype:intention_prototype",
92f857971dSopenharmony_ci    "${device_status_root_path}/utils/common:devicestatus_util",
93f857971dSopenharmony_ci    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
94f857971dSopenharmony_ci  ]
95f857971dSopenharmony_ci
96f857971dSopenharmony_ci  external_deps = [
97f857971dSopenharmony_ci    "ability_runtime:app_manager",
98f857971dSopenharmony_ci    "hilog:libhilog",
99f857971dSopenharmony_ci    "image_framework:image_native",
100f857971dSopenharmony_ci    "input:libmmi-client",
101f857971dSopenharmony_ci    "samgr:samgr_proxy",
102f857971dSopenharmony_ci  ]
103f857971dSopenharmony_ci
104f857971dSopenharmony_ci  subsystem_name = "${device_status_subsystem_name}"
105f857971dSopenharmony_ci  part_name = "${device_status_part_name}"
106f857971dSopenharmony_ci}
107f857971dSopenharmony_ci
108f857971dSopenharmony_ciconfig("intention_socket_connection_public_config") {
109f857971dSopenharmony_ci  include_dirs = [ "include" ]
110f857971dSopenharmony_ci}
111f857971dSopenharmony_ci
112f857971dSopenharmony_ciohos_source_set("intention_socket_connection") {
113f857971dSopenharmony_ci  sanitize = {
114f857971dSopenharmony_ci    integer_overflow = true
115f857971dSopenharmony_ci    ubsan = true
116f857971dSopenharmony_ci    boundary_sanitize = true
117f857971dSopenharmony_ci    cfi = true
118f857971dSopenharmony_ci    cfi_cross_dso = true
119f857971dSopenharmony_ci    debug = false
120f857971dSopenharmony_ci  }
121f857971dSopenharmony_ci
122f857971dSopenharmony_ci  branch_protector_ret = "pac_ret"
123f857971dSopenharmony_ci
124f857971dSopenharmony_ci  defines = device_status_default_defines
125f857971dSopenharmony_ci
126f857971dSopenharmony_ci  include_dirs = [ "include" ]
127f857971dSopenharmony_ci
128f857971dSopenharmony_ci  sources = [
129f857971dSopenharmony_ci    "src/socket_client.cpp",
130f857971dSopenharmony_ci    "src/socket_connection.cpp",
131f857971dSopenharmony_ci    "src/socket_params.cpp",
132f857971dSopenharmony_ci  ]
133f857971dSopenharmony_ci
134f857971dSopenharmony_ci  public_configs = [ ":intention_socket_connection_public_config" ]
135f857971dSopenharmony_ci
136f857971dSopenharmony_ci  deps = [
137f857971dSopenharmony_ci    "${device_status_root_path}/intention/common/epoll:intention_epoll",
138f857971dSopenharmony_ci    "${device_status_root_path}/intention/prototype:intention_prototype",
139f857971dSopenharmony_ci    "${device_status_root_path}/utils/common:devicestatus_util",
140f857971dSopenharmony_ci    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
141f857971dSopenharmony_ci  ]
142f857971dSopenharmony_ci
143f857971dSopenharmony_ci  external_deps = [
144f857971dSopenharmony_ci    "c_utils:utils",
145f857971dSopenharmony_ci    "eventhandler:libeventhandler",
146f857971dSopenharmony_ci    "hilog:libhilog",
147f857971dSopenharmony_ci  ]
148f857971dSopenharmony_ci
149f857971dSopenharmony_ci  subsystem_name = "${device_status_subsystem_name}"
150f857971dSopenharmony_ci  part_name = "${device_status_part_name}"
151f857971dSopenharmony_ci}
152