# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//foundation/communication/dsoftbus/dsoftbus.gni") p2p_connection_src = [] p2p_connection_deps = [] p2p_connection_inc = [ "$dsoftbus_root_path/core/connection/p2p/adapter", "$dsoftbus_root_path/core/connection/p2p/common/include", "$dsoftbus_root_path/core/connection/p2p/interface", "$dsoftbus_root_path/core/connection/p2p/manager/include", "$dsoftbus_root_path/core/connection/p2p/message/include", "$dsoftbus_root_path/core/connection/p2p/negotiation/include", "$dsoftbus_root_path/core/connection/p2p/adapter", "//foundation/communication/wifi/interfaces/innerkits/native_c", ] if (dsoftbus_standard_feature_conn_p2p == true) { p2p_connection_src += [ "$dsoftbus_root_path/core/connection/p2p/message/src/p2plink_message.c", "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_channel_freq.c", "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_json_payload.c", "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_negotiation.c", "$dsoftbus_root_path/core/connection/p2p/negotiation/src/p2plink_state_machine.c", "$dsoftbus_root_path/core/connection/p2p/common/src/p2plink_loop.c", "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_device.c", "$dsoftbus_root_path/core/connection/p2p/common/src/p2plink_common.c", "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_reference.c", "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_broadcast_receiver.c", "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_control_message.c", "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_manager.c", "$dsoftbus_root_path/core/connection/p2p/manager/src/p2plink_lnn_sync.c", "$dsoftbus_root_path/core/connection/p2p/interface/p2plink_interface.c", "$dsoftbus_root_path/core/connection/p2p/adapter/p2plink_adapter.c", ] p2p_connection_deps += [ "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard:wifi_sdk" ] } else { p2p_connection_src += [ "$dsoftbus_root_path/core/connection/p2p/interface/p2plink_interface_virtual.c" ] }