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