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("../../core/common/dfx/dsoftbus_dfx.gni")
15import("../../core/connection/ble/conn_ble.gni")
16import("../../core/connection/br/conn_br.gni")
17import("../../dsoftbus.gni")
18
19#import("//foundation/communication/dsoftbus/core/connection/common/conn_common.gni")
20import("../../core/connection/tcp/conn_tcp.gni")
21conn_manager_src = ble_connection_src + br_connection_src + tcp_connection_src
22conn_manager_inc = ble_connection_inc + br_connection_inc + tcp_connection_inc
23conn_manager_external_deps = ble_connection_external_deps
24conn_manager_common_deps = [ "$dsoftbus_dfx_path/log:softbus_dfx_log" ]
25
26conn_manager_src += [
27  "$dsoftbus_root_path/core/connection/manager/softbus_conn_manager.c",
28  "$dsoftbus_root_path/core/connection/manager/softbus_conn_flow_control.c",
29]
30conn_manager_inc += [
31  "$dsoftbus_root_path/core/connection/manager",
32  "$dsoftbus_root_path/core/connection/interface",
33  "$dsoftbus_root_path/core/common/include",
34  "$dsoftbus_root_path/core/common/dfx/hisysevent_adapter/include",
35  "$dsoftbus_root_path/core/connection/coap/include",
36]
37if (dsoftbus_feature_ex_kits == true) {
38  import(
39      "$dsoftbus_root_path/dsoftbus_enhance/core/connection/coap/conn_coap.gni")
40
41  conn_manager_inc += conn_coap_inc
42  conn_manager_src += conn_coap_src
43  conn_manager_common_deps += conn_coap_common_deps
44  conn_manager_external_deps += conn_coap_external_deps
45
46  import(
47      "$dsoftbus_root_path/dsoftbus_enhance/core/connection/legacy/legacy.gni")
48
49  conn_manager_inc += legacy_connection_inc
50  conn_manager_src += legacy_connection_src
51  conn_manager_common_deps += legacy_connection_common_deps
52  conn_manager_external_deps += legacy_connection_external_deps
53} else {
54  conn_manager_src += [
55    "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_conflict_virtual.c",
56    "$dsoftbus_root_path/core/connection/coap/src/conn_coap_manager_virtual.c",
57  ]
58}
59