1# Copyright (c) 2021-2025 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("../../dsoftbus.gni") 15import("../adapter/core_adapter.gni") 16import("../authentication/authentication.gni") 17import("../broadcast/broadcast.gni") 18import("../bus_center/bus_center_server.gni") 19import("../common/security/permission/permission.gni") 20import("../connection/conn.gni") 21import("../discovery/disc.gni") 22import("../transmission/trans.gni") 23 24dsoftbus_feature_product_config_path = 25 "${dsoftbus_root_path}/adapter/default_config" 26softbus_adapter_config = "${dsoftbus_root_path}/adapter/default_config" 27 28dsoftbus_server_common_src = 29 auth_server_src + bus_center_server_src + conn_manager_src + 30 disc_server_src + trans_session_src + softbus_permission_src + broadcast_src 31dsoftbus_server_common_inc = 32 auth_server_inc + bus_center_server_inc + conn_manager_inc + 33 disc_server_inc + trans_session_inc + softbus_permission_inc + broadcast_inc 34dsoftbus_server_common_deps = 35 auth_server_deps + bus_center_server_deps + disc_server_deps + 36 conn_manager_common_deps + trans_session_deps + softbus_permission_deps + 37 broadcast_deps 38 39if (defined(ohos_lite)) { 40 copy("permission_json") { 41 sources = [ "$dsoftbus_core_path/common/security/permission/softbus_trans_permission.json" ] 42 outputs = [ "$root_out_dir/etc/softbus_trans_permission.json" ] 43 } 44 copy("lnn_permission_json") { 45 sources = [ "$dsoftbus_core_path/common/security/permission/softbus_lnn_permission.json" ] 46 outputs = [ "$root_out_dir/etc/softbus_lnn_permission.json" ] 47 } 48 if (ohos_kernel_type == "liteos_m") { 49 static_library("softbus_server_frame") { 50 defines += AUTH_SERVER_DEFINES 51 defines += DISC_SERVER_DEFINES 52 defines += CONN_SERVER_DEFINES 53 defines += [ "__STDC_FORMAT_MACROS" ] 54 include_dirs = dsoftbus_server_common_inc 55 include_dirs += [ 56 "$dsoftbus_dfx_path/interface/include", 57 "$dsoftbus_dfx_path/interface/include/legacy", 58 "$dsoftbus_root_path/core/bus_center/lnn/manager", 59 "$dsoftbus_root_path/core/frame/common/include", 60 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 61 "$dsoftbus_root_path/interfaces/inner_kits/transport", 62 "$dsoftbus_root_path/interfaces/kits", 63 "$dsoftbus_root_path/interfaces/kits/bus_center", 64 "$dsoftbus_root_path/interfaces/kits/common", 65 "$dsoftbus_root_path/interfaces/kits/transport", 66 "$softbus_adapter_config/spec_config", 67 ] 68 sources = dsoftbus_server_common_src 69 sources += [ 70 "common/src/softbus_ddos_virtual.c", 71 "common/src/softbus_server_frame.c", 72 "mini/src/softbus_server_stub.c", 73 ] 74 75 sources += [ 76 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 77 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func.c", 78 "$dsoftbus_root_path/core/frame/init/src/g_enhance_conn_func.c", 79 "$dsoftbus_root_path/core/frame/init/src/g_enhance_disc_func.c", 80 "$dsoftbus_root_path/core/frame/init/src/g_enhance_disc_func_pack.c", 81 "$dsoftbus_root_path/core/frame/init/src/g_enhance_conn_func_pack.c", 82 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func_pack.c", 83 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func_pack.c", 84 "$dsoftbus_root_path/core/frame/init/src/g_enhance_trans_func_pack.c", 85 "$dsoftbus_root_path/core/frame/init/src/g_enhance_adapter_func_pack.c", 86 "$dsoftbus_root_path/core/frame/init/src/g_enhance_trans_func.c", 87 "$dsoftbus_root_path/core/frame/init/src/g_enhance_adapter_func.c", 88 "$dsoftbus_root_path/core/bus_center/lnn/manager/softbus_lnn_init.c", 89 "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_init.c", 90 "$dsoftbus_root_path/core/transmission/manager/softbus_trans_init.c", 91 "$dsoftbus_root_path/core/authentication/manager/softbus_authentication_init.c", 92 "$dsoftbus_root_path/core/connection/manager/softbus_conn_init.c", 93 "$dsoftbus_root_path/adapter/manager/softbus_adapter_init.c", 94 ] 95 96 include_dirs += [ 97 "$dsoftbus_feature_product_config_path/spec_config", 98 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include", 99 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/include", 100 "$dsoftbus_root_path/adapter/manager", 101 "$dsoftbus_root_path/core/authentication/manager", 102 "$dsoftbus_root_path/core/bus_center/lnn/manager", 103 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 104 "$dsoftbus_root_path/core/common/include", 105 "$dsoftbus_root_path/core/connection/manager", 106 "$dsoftbus_root_path/core/discovery/manager/include", 107 "$dsoftbus_root_path/core/frame/init/include", 108 "$dsoftbus_root_path/core/transmission/manager", 109 "$dsoftbus_root_path/sdk/frame/common/include", 110 "$dsoftbus_root_path/sdk/transmission/session/include", 111 ] 112 if (board_toolchain_type != "iccarm") { 113 cflags = [ 114 "-Wall", 115 "-fPIC", 116 "-std=c99", 117 ] 118 cflags_cc = cflags 119 } else { 120 include_dirs += [ 121 "$kernel_path", 122 "$third_party_path", 123 ] 124 cflags = [ 125 "--diag_suppress", 126 "Pe301", 127 ] 128 } 129 deps = dsoftbus_server_common_deps 130 deps += [ 131 132 # softbus_utils need to be depended first cause softbus_utils and softbus_dfx_dump compiles the same file softbus_utils.c 133 # close src just depends softbus_utils therefore softbus_server should use the global variable of softbus_utils 134 "$dsoftbus_root_path/core/common:softbus_utils", 135 136 "$dsoftbus_dfx_path/dumper/legacy:softbus_dfx_dump", 137 "$dsoftbus_root_path/adapter:softbus_adapter", 138 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 139 "$build_lite_path", 140 ] 141 external_deps = [ "device_auth:deviceauth_sdk" ] 142 external_deps += auth_server_ex_deps 143 if (defined(global_parts_info) && 144 defined(global_parts_info.hmoshiviewdfx_hiview_xcommradar_plugin)) { 145 include_dirs += [ 146 "$dsoftbus_root_path/../../../vendor/huawei/base/hiviewdfx/hiview_plugins/communication_radar_plugin/interfaces/inner_api/communication_radar", 147 "$dsoftbus_dfx_path/statistics/include", 148 ] 149 sources += [ 150 "$dsoftbus_dfx_path/statistics/instant/bt_statistic.cpp", 151 "$dsoftbus_dfx_path/statistics/instant/instant_statistics.cpp", 152 "$dsoftbus_dfx_path/statistics/instant/wifi_statistic.cpp", 153 ] 154 external_deps += 155 [ "hiview_xcommradar_plugin:communication_radar_client" ] 156 } else { 157 sources += [ "$dsoftbus_dfx_path/statistics/instant/instant_statistics_virtual.cpp" ] 158 } 159 public_deps = [ "$dsoftbus_dfx_path:softbus_dfx" ] 160 if (support_bluetooth && 161 (dsoftbus_feature_conn_br || dsoftbus_feature_conn_ble)) { 162 deps += [ 163 "$btframework_path", 164 ] 165 include_dirs += [ 166 "$inner_api_path", 167 "$inner_api_path/c_header", 168 ] 169 } 170 } 171 } else { 172 shared_library("softbus_server_frame") { 173 defines += AUTH_SERVER_DEFINES 174 defines += DISC_SERVER_DEFINES 175 defines += CONN_SERVER_DEFINES 176 defines += [ "__STDC_FORMAT_MACROS" ] 177 defines += G_ENHANCE_DISC_FUNC_PACK_BLE_DEFINES 178 defines += G_ENHANCE_DISC_FUNC_PACK_DISC_COAP_DEFINES 179 include_dirs = dsoftbus_server_common_inc 180 include_dirs += [ 181 "$dsoftbus_dfx_path/interface/include", 182 "$dsoftbus_dfx_path/interface/include/legacy", 183 "$dsoftbus_root_path/core/common/include", 184 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 185 "$dsoftbus_root_path/interfaces/inner_kits/transport", 186 "$dsoftbus_root_path/interfaces/kits/bus_center", 187 "$dsoftbus_root_path/interfaces/kits/common", 188 "$dsoftbus_root_path/interfaces/kits/transport", 189 "$softbus_adapter_common/include", 190 "$softbus_adapter_config/spec_config", 191 "$commonlibrary_path", 192 "common/include", 193 "small/client_manager/include", 194 "small/init/include", 195 ] 196 sources = dsoftbus_server_common_src 197 sources += [ 198 "common/src/softbus_ddos_virtual.c", 199 "common/src/softbus_server_frame.c", 200 "small/client_manager/src/softbus_client_info_manager.c", 201 "small/init/src/bus_center_server_stub.c", 202 "small/init/src/softbus_server_stub.c", 203 "small/init/src/trans_server_stub.c", 204 ] 205 206 sources += [ 207 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 208 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func.c", 209 "$dsoftbus_root_path/core/frame/init/src/g_enhance_conn_func.c", 210 "$dsoftbus_root_path/core/frame/init/src/g_enhance_disc_func.c", 211 "$dsoftbus_root_path/core/frame/init/src/g_enhance_disc_func_pack.c", 212 "$dsoftbus_root_path/core/frame/init/src/g_enhance_conn_func_pack.c", 213 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func_pack.c", 214 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func_pack.c", 215 "$dsoftbus_root_path/core/frame/init/src/g_enhance_trans_func_pack.c", 216 "$dsoftbus_root_path/core/frame/init/src/g_enhance_adapter_func_pack.c", 217 "$dsoftbus_root_path/core/frame/init/src/g_enhance_trans_func.c", 218 "$dsoftbus_root_path/core/frame/init/src/g_enhance_adapter_func.c", 219 "$dsoftbus_root_path/core/bus_center/lnn/manager/softbus_lnn_init.c", 220 "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_init.c", 221 "$dsoftbus_root_path/core/transmission/manager/softbus_trans_init.c", 222 "$dsoftbus_root_path/core/authentication/manager/softbus_authentication_init.c", 223 "$dsoftbus_root_path/core/connection/manager/softbus_conn_init.c", 224 "$dsoftbus_root_path/adapter/manager/softbus_adapter_init.c", 225 ] 226 227 include_dirs += [ 228 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include", 229 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/include", 230 "$dsoftbus_root_path/adapter/manager", 231 "$dsoftbus_root_path/core/authentication/manager", 232 "$dsoftbus_root_path/core/bus_center/lnn/manager", 233 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 234 "$dsoftbus_root_path/core/connection/manager", 235 "$dsoftbus_root_path/core/discovery/manager/include", 236 "$dsoftbus_root_path/core/frame/init/include", 237 "$dsoftbus_root_path/core/transmission/manager", 238 "$dsoftbus_root_path/sdk/frame/common/include", 239 "$dsoftbus_root_path/sdk/transmission/session/include", 240 ] 241 242 cflags = [ 243 "-Wall", 244 "-fPIC", 245 "-fno-builtin", 246 "-std=c99", 247 ] 248 cflags_cc = cflags 249 deps = dsoftbus_server_common_deps 250 deps += [ 251 ":permission_json", 252 ":lnn_permission_json", 253 254 # softbus_utils need to be depended first cause softbus_utils and softbus_dfx_dump compiles the same file softbus_utils.c 255 # close src just depends softbus_utils therefore softbus_server should use the global variable of softbus_utils 256 "$dsoftbus_root_path/core/common:softbus_utils", 257 258 "$dsoftbus_dfx_path/dumper/legacy:softbus_dfx_dump", 259 "$dsoftbus_root_path/adapter:softbus_adapter", 260 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 261 "$cjson_shared_path", 262 "$ipc_single_path", 263 "$samgr_path", 264 ] 265 external_deps = [ 266 "bounds_checking_function:libsec_shared", 267 "device_auth:deviceauth_sdk", 268 ] 269 external_deps += auth_server_ex_deps 270 if (defined(global_parts_info) && 271 defined(global_parts_info.hmoshiviewdfx_hiview_xcommradar_plugin)) { 272 include_dirs += [ 273 "$dsoftbus_root_path/../../../vendor/huawei/base/hiviewdfx/hiview_plugins/communication_radar_plugin/interfaces/inner_api/communication_radar", 274 "$dsoftbus_dfx_path/statistics/include", 275 ] 276 sources += [ 277 "$dsoftbus_dfx_path/statistics/instant/bt_statistic.cpp", 278 "$dsoftbus_dfx_path/statistics/instant/instant_statistics.cpp", 279 "$dsoftbus_dfx_path/statistics/instant/wifi_statistic.cpp", 280 ] 281 external_deps += 282 [ "hiview_xcommradar_plugin:communication_radar_client" ] 283 } else { 284 sources += [ "$dsoftbus_dfx_path/statistics/instant/instant_statistics_virtual.cpp" ] 285 } 286 public_deps = [ "$dsoftbus_dfx_path:softbus_dfx" ] 287 if (support_bluetooth && 288 (dsoftbus_feature_conn_br || dsoftbus_feature_conn_ble)) { 289 deps += [ 290 "$btframework_path", 291 ] 292 include_dirs += [ 293 "$inner_api_path", 294 "$inner_api_path/c_header", 295 ] 296 } 297 } 298 executable("softbus_server") { 299 sources = [ "small/init/src/softbus_server_main.c" ] 300 include_dirs = [ "common/include" ] 301 deps = [ ":softbus_server_frame" ] 302 cflags = [ "-fPIC" ] 303 } 304 } 305} else { 306 ohos_prebuilt_etc("softbus_server.rc") { 307 relative_install_dir = "init" 308 if (use_musl) { 309 source = "$dsoftbus_root_path/core/frame/$os_type/init/src/softbus_server_musl.cfg" 310 } else { 311 source = 312 "$dsoftbus_root_path/core/frame/$os_type/init/src/softbus_server.cfg" 313 } 314 315 part_name = "dsoftbus" 316 subsystem_name = "communication" 317 } 318 ohos_prebuilt_etc("softbus_lnn_permission_json") { 319 source = "$dsoftbus_root_path/core/common/security/permission/softbus_lnn_permission.json" 320 install_enable = true 321 relative_install_dir = "communication/softbus" 322 part_name = "dsoftbus" 323 subsystem_name = "communication" 324 } 325 ohos_prebuilt_etc("softbus_permission_json") { 326 source = "$dsoftbus_root_path/core/common/security/permission/softbus_trans_permission.json" 327 install_enable = true 328 relative_install_dir = "communication/softbus" 329 part_name = "dsoftbus" 330 subsystem_name = "communication" 331 } 332 ohos_shared_library("softbus_server") { 333 sanitize = { 334 cfi = true 335 cfi_cross_dso = true 336 debug = false 337 } 338 branch_protector_ret = "pac_ret" 339 340 defines += AUTH_SERVER_DEFINES 341 defines += DISC_SERVER_DEFINES 342 defines += CONN_SERVER_DEFINES 343 defines += [ "__STDC_FORMAT_MACROS" ] 344 defines += G_ENHANCE_DISC_FUNC_PACK_BLE_DEFINES 345 defines += G_ENHANCE_DISC_FUNC_PACK_DISC_COAP_DEFINES 346 include_dirs = dsoftbus_server_common_inc 347 include_dirs += [ 348 "$dsoftbus_dfx_path/interface/include", 349 "$dsoftbus_dfx_path/interface/include/legacy", 350 "$dsoftbus_feature_product_config_path/spec_config", 351 "$dsoftbus_root_path/core/common/include", 352 "$dsoftbus_root_path/core/frame/$os_type/client_manager/include", 353 "$dsoftbus_root_path/core/frame/$os_type/init/include", 354 "$dsoftbus_root_path/core/frame/common/include", 355 "$dsoftbus_root_path/core/transmission/broadcast/include", 356 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 357 "$dsoftbus_root_path/interfaces/inner_kits/transport", 358 "$dsoftbus_root_path/interfaces/kits/bus_center", 359 "$dsoftbus_root_path/interfaces/kits/common", 360 "$dsoftbus_root_path/interfaces/kits/connection", 361 "$dsoftbus_root_path/interfaces/kits/transport", 362 "$dsoftbus_root_path/interfaces/kits/transport/enhance", 363 ] 364 sources = dsoftbus_server_common_src 365 sources += [ 366 "$dsoftbus_root_path/sdk/frame/$os_type/src/if_softbus_client.cpp", 367 "$os_type/client_manager/src/softbus_client_info_manager.cpp", 368 "$os_type/init/src/if_softbus_server.cpp", 369 "$os_type/init/src/softbus_server.cpp", 370 "$os_type/init/src/softbus_server_death_recipient.cpp", 371 "$os_type/init/src/softbus_server_stub.cpp", 372 "common/src/softbus_ddos.c", 373 "common/src/softbus_server_frame.c", 374 ] 375 sources += [ 376 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 377 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func.c", 378 "$dsoftbus_root_path/core/frame/init/src/g_enhance_conn_func.c", 379 "$dsoftbus_root_path/core/frame/init/src/g_enhance_disc_func.c", 380 "$dsoftbus_root_path/core/frame/init/src/g_enhance_disc_func_pack.c", 381 "$dsoftbus_root_path/core/frame/init/src/g_enhance_conn_func_pack.c", 382 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func_pack.c", 383 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func_pack.c", 384 "$dsoftbus_root_path/core/frame/init/src/g_enhance_trans_func_pack.c", 385 "$dsoftbus_root_path/core/frame/init/src/g_enhance_adapter_func_pack.c", 386 "$dsoftbus_root_path/core/frame/init/src/g_enhance_trans_func.c", 387 "$dsoftbus_root_path/core/frame/init/src/g_enhance_adapter_func.c", 388 "$dsoftbus_root_path/core/bus_center/lnn/manager/softbus_lnn_init.c", 389 "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_init.c", 390 "$dsoftbus_root_path/core/transmission/manager/softbus_trans_init.c", 391 "$dsoftbus_root_path/core/authentication/manager/softbus_authentication_init.c", 392 "$dsoftbus_root_path/core/connection/manager/softbus_conn_init.c", 393 "$dsoftbus_root_path/adapter/manager/softbus_adapter_init.c", 394 ] 395 396 include_dirs += [ 397 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include", 398 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/include", 399 "$dsoftbus_root_path/adapter/manager", 400 "$dsoftbus_root_path/core/authentication/manager", 401 "$dsoftbus_root_path/core/bus_center/lnn/manager", 402 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 403 "$dsoftbus_root_path/core/connection/manager", 404 "$dsoftbus_root_path/core/discovery/manager/include", 405 "$dsoftbus_root_path/core/frame/init/include", 406 "$dsoftbus_root_path/core/transmission/manager", 407 "$dsoftbus_root_path/sdk/frame/common/include", 408 "$dsoftbus_root_path/sdk/transmission/session/include", 409 ] 410 deps = dsoftbus_server_common_deps 411 deps += [ 412 ":softbus_permission_json", 413 ":softbus_lnn_permission_json", 414 ":softbus_server.rc", 415 416 # softbus_utils need to be depended first cause softbus_utils and softbus_dfx_dump compiles the same file softbus_utils.c 417 # close src just depends softbus_utils therefore softbus_server should use the global variable of softbus_utils 418 "$dsoftbus_root_path/core/common:softbus_utils", 419 420 "$dsoftbus_dfx_path/dumper/legacy:softbus_dfx_dump", 421 "$dsoftbus_root_path/adapter:softbus_adapter", 422 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 423 ] 424 external_deps = [ "cJSON:cjson" ] 425 external_deps += auth_server_ex_deps 426 public_deps = [ "$dsoftbus_dfx_path:softbus_dfx" ] 427 dsoftbus_server_common_external_deps = 428 bus_center_server_external_deps + disc_server_external_deps + 429 softbus_permission_external_deps + trans_session_external_deps + 430 conn_manager_external_deps 431 if (is_standard_system) { 432 external_deps += dsoftbus_server_common_external_deps 433 external_deps += [ 434 "device_auth:deviceauth_sdk", 435 "hilog:libhilog", 436 "ipc:ipc_single", 437 "kv_store:distributeddata_inner", 438 "netmanager_base:net_conn_manager_if", 439 "safwk:system_ability_fwk", 440 "samgr:samgr_proxy", 441 ] 442 if (dsoftbus_access_token_feature) { 443 external_deps += [ 444 "access_token:libaccesstoken_sdk", 445 "access_token:libprivacy_sdk", 446 "access_token:libtokenid_sdk", 447 ] 448 } 449 if (!defined(global_parts_info) || 450 defined(global_parts_info.deviceprofile_device_info_manager)) { 451 external_deps += [ 452 "device_info_manager:distributed_device_profile_common", 453 "device_info_manager:distributed_device_profile_sdk", 454 ] 455 } 456 if (!defined(global_parts_info) || 457 defined(global_parts_info.bundlemanager_bundle_framework)) { 458 cflags = [ "-DSUPPORT_BUNDLENAME" ] 459 } 460 if (!defined(global_parts_info) || 461 defined(global_parts_info.ability_ability_runtime)) { 462 cflags += [ "-DSUPPORT_ABILITY_RUNTIME" ] 463 } 464 } 465 if (defined(global_parts_info) && 466 defined(global_parts_info.hmoshiviewdfx_hiview_xcommradar_plugin)) { 467 include_dirs += [ 468 "$dsoftbus_root_path/../../../vendor/huawei/base/hiviewdfx/hiview_plugins/communication_radar_plugin/interfaces/inner_api/communication_radar", 469 "$dsoftbus_dfx_path/statistics/include", 470 ] 471 sources += [ 472 "$dsoftbus_dfx_path/statistics/instant/bt_statistic.cpp", 473 "$dsoftbus_dfx_path/statistics/instant/instant_statistics.cpp", 474 "$dsoftbus_dfx_path/statistics/instant/wifi_statistic.cpp", 475 ] 476 external_deps += [ "hiview_xcommradar_plugin:communication_radar_client" ] 477 } else { 478 sources += [ "$dsoftbus_dfx_path/statistics/instant/instant_statistics_virtual.cpp" ] 479 } 480 481 part_name = "dsoftbus" 482 subsystem_name = "communication" 483 } 484} 485