1# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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") 15import("//foundation/CastEngine/castengine_wifi_display/config.gni") 16 17group("test_package") { 18 deps = [ 19 ":sharing_network_client_demo", 20 ":sharing_network_server_demo", 21 ":udp_client_demo", 22 ":udp_server_demo", 23 ] 24} 25 26config("sharing_network_demo_config") { 27 include_dirs = [ 28 "//utils/native/base/include", 29 "$SHARING_ROOT_DIR/services", 30 ] 31} 32 33ohos_executable("sharing_network_server_demo") { 34 sanitize = { 35 cfi = true 36 cfi_cross_dso = true 37 debug = false 38 } 39 40 configs = [ ":sharing_network_demo_config" ] 41 42 sources = [ "network_server_demo.cpp" ] 43 44 deps = [ 45 "$SHARING_ROOT_DIR/services:sharing_service", 46 "$SHARING_ROOT_DIR/services/common:sharing_common", 47 "$SHARING_ROOT_DIR/services/network:sharing_network", 48 "$SHARING_ROOT_DIR/services/utils:sharing_utils", 49 ] 50 51 external_deps = [ 52 "eventhandler:libeventhandler", 53 "hilog:libhilog", 54 ] 55 56 subsystem_name = "castplus" 57 part_name = "sharing_framework" 58} 59 60ohos_executable("sharing_network_client_demo") { 61 sanitize = { 62 cfi = true 63 cfi_cross_dso = true 64 debug = false 65 } 66 67 configs = [ ":sharing_network_demo_config" ] 68 69 sources = [ "network_client_demo.cpp" ] 70 71 deps = [ 72 "$SHARING_ROOT_DIR/services/common:sharing_common", 73 "$SHARING_ROOT_DIR/services/network:sharing_network", 74 "$SHARING_ROOT_DIR/services/utils:sharing_utils", 75 ] 76 77 external_deps = [ 78 "eventhandler:libeventhandler", 79 "hilog:libhilog", 80 ] 81 82 subsystem_name = "castplus" 83 part_name = "sharing_framework" 84} 85 86ohos_executable("udp_client_demo") { 87 sanitize = { 88 cfi = true 89 cfi_cross_dso = true 90 debug = false 91 } 92 93 sources = [ "udp_client_demo.cpp" ] 94 95 external_deps = [ "hilog:libhilog" ] 96 97 subsystem_name = "castplus" 98 part_name = "sharing_framework" 99} 100 101ohos_executable("udp_server_demo") { 102 sanitize = { 103 cfi = true 104 cfi_cross_dso = true 105 debug = false 106 } 107 108 sources = [ "udp_server_demo.cpp" ] 109 110 external_deps = [ "hilog:libhilog" ] 111 112 subsystem_name = "castplus" 113 part_name = "sharing_framework" 114} 115