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") 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 28 "//foundation/communication/wifi/interfaces/innerkits/native_c", 29] 30 31if (dsoftbus_standard_feature_conn_p2p == true) { 32 p2p_connection_src += [ 33 "$dsoftbus_root_path/core/connection/p2p/message/src/p2plink_message.c", 34 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_channel_freq.c", 35 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_json_payload.c", 36 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_negotiation.c", 37 "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_state_machine.c", 38 "$dsoftbus_root_path/core/connection/p2p/common/src/p2plink_loop.c", 39 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_device.c", 40 "$dsoftbus_root_path/core/connection/p2p/common/src/p2plink_common.c", 41 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_reference.c", 42 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_broadcast_receiver.c", 43 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_control_message.c", 44 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_manager.c", 45 "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_lnn_sync.c", 46 "$dsoftbus_root_path/core/connection/p2p/interface/p2plink_interface.c", 47 "$dsoftbus_root_path/core/connection/p2p/adapter/p2plink_adapter.c", 48 ] 49 p2p_connection_deps += [ "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard:wifi_sdk" ] 50} else { 51 p2p_connection_src += [ "$dsoftbus_root_path/core/connection/p2p/interface/p2plink_interface_virtual.c" ] 52} 53