1# Copyright (c) 2021-2022 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") 15 16p2p_connection_src = [] 17p2p_connection_deps = [] 18 19p2p_connection_inc = [ 20 "$dsoftbus_root_path/core/connection/p2p/adapter", 21 "$dsoftbus_root_path/core/connection/p2p/common/include", 22 "$dsoftbus_root_path/core/connection/p2p/interface", 23 "$dsoftbus_root_path/core/connection/p2p/manager/include", 24 "$dsoftbus_root_path/core/connection/p2p/message/include", 25 "$dsoftbus_root_path/core/connection/p2p/negotiation/include", 26 "$dsoftbus_root_path/core/connection/p2p/adapter", 27 "$dsoftbus_root_path/core/common/include", 28 "//foundation/communication/wifi/wifi/interfaces/kits/c", 29] 30 31if (dsoftbus_feature_conn_p2p == true && 32 softbus_communication_wifi_feature == true) { 33 p2p_connection_src += [ 34 "$dsoftbus_root_path/core/connection/p2p/message/src/p2plink_message.c", 35 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_channel_freq.c", 36 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_json_payload.c", 37 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_negotiation.c", 38 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_state_machine.c", 39 "$dsoftbus_root_path/core/connection/p2p/common/src/p2plink_loop.c", 40 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_device.c", 41 "$dsoftbus_root_path/core/connection/p2p/common/src/p2plink_common.c", 42 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_reference.c", 43 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_broadcast_receiver.c", 44 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_control_message.c", 45 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_manager.c", 46 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_lnn_sync.c", 47 "$dsoftbus_root_path/core/connection/p2p/interface/p2plink_interface.c", 48 "$dsoftbus_root_path/core/connection/p2p/adapter/p2plink_adapter.c", 49 ] 50 p2p_connection_deps += 51 [ "//foundation/communication/wifi/wifi/frameworks/native:wifi_sdk" ] 52} else { 53 p2p_connection_src += [ "$dsoftbus_root_path/core/connection/p2p/interface/p2plink_interface_virtual.c" ] 54} 55