• 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("../../../../../dsoftbus.gni")
15
16dsoftbus_file_sdk_path =
17    "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file"
18
19trans_file_sdk_inc = [ "$dsoftbus_file_sdk_path/include" ]
20trans_file_sdk_src = []
21trans_file_sdk_deps = []
22
23if (dsoftbus_feature_trans_udp_file == true && dsoftbus_feature_dfile == true) {
24  trans_file_sdk_src += [
25    "$dsoftbus_file_sdk_path/src/client_trans_file.c",
26    "$dsoftbus_file_sdk_path/src/client_trans_file_listener.c",
27    "$dsoftbus_file_sdk_path/src/file_adapter.c",
28  ]
29
30  if (!defined(global_parts_info) ||
31    defined(global_parts_info.communication_dsoftbus_service_ext)) {
32    trans_file_sdk_inc += [
33      "$dsoftbus_root_path/components/nstackx_enhanced/nstackx_core/dfile/interface",
34      "$dsoftbus_root_path/components/nstackx_enhanced/nstackx_util/interface",
35    ]
36    trans_file_sdk_deps += [ "$dsoftbus_root_path/components/nstackx_enhanced/nstackx_core/dfile:nstackx_dfile" ]
37  } else {
38    trans_file_sdk_inc += [
39      "$dsoftbus_root_path/components/nstackx/nstackx_core/dfile/interface",
40      "$dsoftbus_root_path/components/nstackx/nstackx_util/interface",
41    ]
42    trans_file_sdk_deps += [ "$dsoftbus_root_path/components/nstackx/nstackx_core/dfile:nstackx_dfile.open" ]
43  }
44} else {
45  trans_file_sdk_src +=
46      [ "$dsoftbus_file_sdk_path/src/client_trans_file_virtual.c" ]
47}
48