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 = [ "include" ] 35 36 sources = [ 37 "src/socket_params.cpp", 38 "src/socket_server.cpp", 39 ] 40 41 public_configs = [ ":intention_socket_server_public_config" ] 42 43 deps = [ 44 "${device_status_root_path}/intention/prototype:intention_prototype", 45 "${device_status_root_path}/utils/common:devicestatus_util", 46 "${device_status_root_path}/utils/ipc:devicestatus_ipc", 47 ] 48 49 external_deps = [ 50 "access_token:libaccesstoken_sdk", 51 "hilog:libhilog", 52 "image_framework:image_native", 53 "input:libmmi-client", 54 ] 55 56 subsystem_name = "${device_status_subsystem_name}" 57 part_name = "${device_status_part_name}" 58} 59 60config("intention_socket_session_manager_public_config") { 61 include_dirs = [ "include" ] 62} 63 64ohos_source_set("intention_socket_session_manager") { 65 sanitize = { 66 integer_overflow = true 67 ubsan = true 68 boundary_sanitize = true 69 cfi = true 70 cfi_cross_dso = true 71 debug = false 72 } 73 74 branch_protector_ret = "pac_ret" 75 76 defines = device_status_default_defines 77 78 include_dirs = [ "include" ] 79 80 sources = [ 81 "src/socket_session.cpp", 82 "src/socket_session_manager.cpp", 83 ] 84 85 public_configs = [ ":intention_socket_session_manager_public_config" ] 86 87 deps = [ 88 "${device_status_root_path}/intention/common/epoll:intention_epoll", 89 "${device_status_root_path}/intention/prototype:intention_prototype", 90 "${device_status_root_path}/utils/common:devicestatus_util", 91 "${device_status_root_path}/utils/ipc:devicestatus_ipc", 92 ] 93 94 external_deps = [ 95 "hilog:libhilog", 96 "image_framework:image_native", 97 "input:libmmi-client", 98 ] 99 100 subsystem_name = "${device_status_subsystem_name}" 101 part_name = "${device_status_part_name}" 102} 103 104config("intention_socket_connection_public_config") { 105 include_dirs = [ "include" ] 106} 107 108ohos_source_set("intention_socket_connection") { 109 sanitize = { 110 integer_overflow = true 111 ubsan = true 112 boundary_sanitize = true 113 cfi = true 114 cfi_cross_dso = true 115 debug = false 116 } 117 118 branch_protector_ret = "pac_ret" 119 120 defines = device_status_default_defines 121 122 include_dirs = [ "include" ] 123 124 sources = [ 125 "src/socket_client.cpp", 126 "src/socket_connection.cpp", 127 "src/socket_params.cpp", 128 ] 129 130 public_configs = [ ":intention_socket_connection_public_config" ] 131 132 deps = [ 133 "${device_status_root_path}/intention/common/epoll:intention_epoll", 134 "${device_status_root_path}/intention/prototype:intention_prototype", 135 "${device_status_root_path}/utils/common:devicestatus_util", 136 "${device_status_root_path}/utils/ipc:devicestatus_ipc", 137 ] 138 139 external_deps = [ 140 "c_utils:utils", 141 "eventhandler:libeventhandler", 142 "hilog:libhilog", 143 ] 144 145 subsystem_name = "${device_status_subsystem_name}" 146 part_name = "${device_status_part_name}" 147} 148