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 17config("sharing_demo_config") { 18 include_dirs = [ 19 "$SHARING_ROOT_DIR/services", 20 "$SHARING_ROOT_DIR/services/protocol", 21 "$SHARING_ROOT_DIR/services/protocol/rtp", 22 "$SHARING_ROOT_DIR/services/protocol/rtp/include", 23 "//utils/native/base/include", 24 ] 25} 26 27ohos_executable("sharing_ts_rtp_dec_demo") { 28 sanitize = { 29 cfi = true 30 cfi_cross_dso = true 31 debug = false 32 } 33 34 configs = [ ":sharing_demo_config" ] 35 36 sources = [ "ts_rtp_dec_demo.cpp" ] 37 38 deps = [ "$SHARING_ROOT_DIR/services/protocol/rtp:sharing_rtp" ] 39 40 external_deps = [ "hilog:libhilog" ] 41 42 relative_install_dir = "sharing_demo" 43 subsystem_name = "castplus" 44 part_name = "sharing_framework" 45} 46 47ohos_executable("sharing_h264_rtp_dec_demo") { 48 sanitize = { 49 cfi = true 50 cfi_cross_dso = true 51 debug = false 52 } 53 54 configs = [ ":sharing_demo_config" ] 55 56 sources = [ "h264_rtp_dec_demo.cpp" ] 57 58 deps = [ "$SHARING_ROOT_DIR/services/protocol/rtp:sharing_rtp" ] 59 60 external_deps = [ "hilog:libhilog" ] 61 subsystem_name = "castplus" 62 part_name = "sharing_framework" 63} 64 65ohos_executable("sharing_rtp_enc_demo") { 66 sanitize = { 67 cfi = true 68 cfi_cross_dso = true 69 debug = false 70 } 71 72 configs = [ ":sharing_demo_config" ] 73 74 sources = [ "rtp_enc_demo.cpp" ] 75 76 deps = [ "$SHARING_ROOT_DIR/services/protocol/rtp:sharing_rtp" ] 77 78 external_deps = [ "hilog:libhilog" ] 79 subsystem_name = "castplus" 80 part_name = "sharing_framework" 81} 82 83ohos_executable("sharing_rtp_dec_demo") { 84 sanitize = { 85 cfi = true 86 cfi_cross_dso = true 87 debug = false 88 } 89 90 configs = [ ":sharing_demo_config" ] 91 sources = [ "rtp_dec_demo.cpp" ] 92 93 deps = [ "$SHARING_ROOT_DIR/services/protocol/rtp:sharing_rtp" ] 94 95 external_deps = [ "hilog:libhilog" ] 96 subsystem_name = "castplus" 97 part_name = "sharing_framework" 98} 99