• 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_rtsp_config") {
18  include_dirs = [
19    "$SHARING_ROOT_DIR/services/protocol/rtsp/include",
20    "//utils/native/base/include",
21    "$SHARING_ROOT_DIR/services",
22    "$SHARING_ROOT_DIR/services/common",
23    "$SHARING_ROOT_DIR/services/protocol",
24    "$SHARING_ROOT_DIR/services/protocol/rtp",
25    "$SHARING_ROOT_DIR/services/protocol/rtp/interfaces",
26    "//utils/native/base/include",
27  ]
28}
29
30ohos_executable("sharing_rtsp_pusher_demo") {
31  sanitize = {
32    cfi = true
33    cfi_cross_dso = true
34    debug = false
35  }
36
37  configs = [ ":sharing_rtsp_config" ]
38
39  sources = [ "rtsp_pusher_demo.cpp" ]
40
41  deps = [
42    "$SHARING_ROOT_DIR/services/common:sharing_common",
43    "$SHARING_ROOT_DIR/services/network:sharing_network",
44    "$SHARING_ROOT_DIR/services/protocol/rtsp:sharing_rtsp",
45    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
46  ]
47
48  external_deps = [ "hilog:libhilog" ]
49
50  subsystem_name = "castplus"
51  part_name = "sharing_framework"
52}
53
54ohos_executable("sharing_rtsp_player_demo") {
55  sanitize = {
56    cfi = true
57    cfi_cross_dso = true
58    debug = false
59  }
60
61  configs = [ ":sharing_rtsp_config" ]
62
63  sources = [ "rtsp_player_demo.cpp" ]
64
65  deps = [
66    "$SHARING_ROOT_DIR/services/common:sharing_common",
67    "$SHARING_ROOT_DIR/services/network:sharing_network",
68    "$SHARING_ROOT_DIR/services/protocol/rtp:sharing_rtp",
69    "$SHARING_ROOT_DIR/services/protocol/rtsp:sharing_rtsp",
70    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
71  ]
72
73  external_deps = [ "hilog:libhilog" ]
74
75  subsystem_name = "castplus"
76  part_name = "sharing_framework"
77}
78