• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("//foundation/communication/dsoftbus/dsoftbus.gni")
15import(
16    "$dsoftbus_sdk_path/transmission/trans_channel/udp/stream/libsoftbus_stream/libsoftbus_stream.gni")
17
18dsoftbus_stream_sdk_path =
19    "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/stream"
20
21trans_dstream_src = []
22trans_dstream_inc = []
23trans_dstream_deps = []
24if (dsoftbus_feature_trans_udp == true) {
25  if (dsoftbus_feature_trans_udp_stream == true) {
26    trans_dstream_inc += [
27      "$dsoftbus_stream_sdk_path/adaptor/include",
28      "$dsoftbus_stream_sdk_path/include",
29    ]
30    trans_dstream_inc += libsoftbus_stream_inc
31
32    trans_dstream_src += [
33      "$dsoftbus_stream_sdk_path/adaptor/src/client_trans_udp_stream_interface.cpp",
34      "$dsoftbus_stream_sdk_path/adaptor/src/stream_adaptor.cpp",
35      "$dsoftbus_stream_sdk_path/src/client_trans_stream.c",
36    ]
37    trans_dstream_src += libsoftbus_stream_src
38
39    trans_dstream_deps += libsoftbus_stream_deps
40  } else {
41    trans_dstream_src +=
42        [ "$dsoftbus_stream_sdk_path/src/client_trans_stream_virtual.c" ]
43    trans_dstream_inc += [ "$dsoftbus_stream_sdk_path/include" ]
44  }
45}
46