1# Copyright (C) 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 14include_directories(connection_module/include) 15include_directories(async_work/include) 16include_directories(connection_exec/include) 17include_directories(async_context/include) 18include_directories(options/include) 19include_directories(constant/include) 20include_directories(observer/include) 21 22add_library(connection SHARED 23 options/src/net_address.cpp 24 async_context/src/getaddressbyname_context.cpp 25 async_context/src/getdefaultnet_context.cpp 26 async_context/src/parse_nethandle_context.cpp 27 connection_exec/src/connection_exec.cpp 28 async_work/src/connection_async_work.cpp 29 connection_module/src/connection_module.cpp 30 options/src/netconnection.cpp 31 async_context/src/register_context.cpp 32 async_context/src/bindsocket_context.cpp 33 observer/src/net_conn_callback_observer.cpp 34 ) 35