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