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") 15conn_common_src = [ 16 "$dsoftbus_root_path/core/connection/common/src/softbus_base_listener.c", 17 "$dsoftbus_root_path/core/connection/common/src/softbus_conn_common.c", 18 "$dsoftbus_root_path/core/connection/common/src/softbus_datahead_transform.c", 19 "$dsoftbus_root_path/core/connection/common/src/softbus_socket.c", 20 "$dsoftbus_root_path/core/connection/common/src/softbus_tcp_socket.c", 21] 22conn_common_inc = [ 23 "$dsoftbus_root_path/core/connection/interface", 24 "$dsoftbus_root_path/core/connection/common/include", 25 "$dsoftbus_root_path/core/connection/manager", 26 "$dsoftbus_root_path/core/transmission/trans_channel/proxy/include", 27] 28 29native_source_path = rebase_path("$dsoftbus_root_path") 30newip_dir = "dsoftbus_enhance/components/newip/network" 31newip_enhanced = exec_script("$dsoftbus_root_path/check_sub_module.py", 32 [ 33 "$native_source_path", 34 "$newip_dir", 35 ], 36 "value") 37 38if (newip_enhanced) { 39 import("../../../dsoftbus_enhance/components/newip/network/network.gni") 40 41 conn_common_src += newip_connection_src 42 conn_common_inc += newip_connection_include 43} 44