2
0
mirror of https://github.com/boostorg/cobalt.git synced 2026-01-19 04:02:16 +00:00

added autolink

Closes #239
This commit is contained in:
Klemens Morgenstern
2025-10-06 11:11:00 +08:00
committed by Klemens Morgenstern
parent 5a85b3de86
commit 7f433d8b5a
24 changed files with 66 additions and 4 deletions

View File

@@ -92,4 +92,12 @@ namespace pmr = std::pmr;
}
#if !defined(BOOST_COBALT_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_COBALT_NO_LIB)
#define BOOST_LIB_NAME boost_cobalt
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COBALT_DYN_LINK)
#define BOOST_DYN_LINK
#endif
#include <boost/config/auto_link.hpp>
#endif
#endif //BOOST_COBALT_CONFIG_HPP

View File

@@ -9,6 +9,7 @@
#define BOOST_COBALT_EXPERIMENTAL_IO_ACCEPTOR_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/ops.hpp>
#include <boost/cobalt/io/stream_socket.hpp>
#include <boost/cobalt/io/seq_packet_socket.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IODATAGRAM_SOCKET_HPP
#define BOOST_COBALT_IODATAGRAM_SOCKET_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/endpoint.hpp>
#include <boost/cobalt/io/socket.hpp>

View File

@@ -0,0 +1,22 @@
//
// Copyright (c) 2025 Klemens Morgenstern (klemens.morgenstern@gmx.net)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/config.hpp>
#ifndef BOOST_COBALT_IO_DETAIL_CONFIG_HPP
#define BOOST_COBALT_IO_DETAIL_CONFIG_HPP
#if !defined(BOOST_COBALT_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_COBALT_NO_LIB) && !defined(BOOST_COBALT_IO_NO_LIB)
#define BOOST_LIB_NAME boost_cobalt_io
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COBALT_DYN_LINK)
#define BOOST_DYN_LINK
#endif
#include <boost/config/auto_link.hpp>
#endif
#endif // BOOST_COBALT_IO_DETAIL_CONFIG_HPP

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_ENDPOINT_HPP
#define BOOST_COBALT_IO_ENDPOINT_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/config.hpp>
#include <boost/cobalt/detail/exception.hpp>
@@ -373,4 +374,4 @@ const ip_address* tag_invoke(get_endpoint_tag<AF_UNSPEC>,
}
#endif //BOOST_COBALT_IO_ENDPOINT_HPP
#endif //BOOST_COBALT_IO_ENDPOINT_HPP

View File

@@ -10,6 +10,7 @@
#include <boost/asio/basic_file.hpp>
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/config.hpp>
#include <boost/system/result.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_OPS_HPP
#define BOOST_COBALT_OPS_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/config.hpp>
#include <boost/cobalt/detail/handler.hpp>
#include <boost/cobalt/io/buffer.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_PIPE_HPP
#define BOOST_COBALT_IO_PIPE_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/config.hpp>
#include <boost/cobalt/io/buffer.hpp>
#include <boost/cobalt/io/ops.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_RANDOM_ACCESS_DEVICE_HPP
#define BOOST_COBALT_IO_RANDOM_ACCESS_DEVICE_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/buffer.hpp>
#include <boost/cobalt/io/ops.hpp>

View File

@@ -10,6 +10,7 @@
#include <boost/asio/basic_random_access_file.hpp>
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/config.hpp>
#include <boost/cobalt/io/buffer.hpp>
#include <boost/cobalt/io/file.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_READ_HPP
#define BOOST_COBALT_IO_READ_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/buffer.hpp>
#include <boost/cobalt/io/ops.hpp>

View File

@@ -9,6 +9,7 @@
#ifndef BOOST_COBALT_RESOLVER_HPP
#define BOOST_COBALT_RESOLVER_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/endpoint.hpp>
#include <boost/cobalt/io/ops.hpp>
#include <boost/cobalt/op.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IOSEQ_PACKET_SOCKET_HPP
#define BOOST_COBALT_IOSEQ_PACKET_SOCKET_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/endpoint.hpp>
#include <boost/cobalt/io/socket.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_SERIAL_PORT_HPP
#define BOOST_COBALT_IO_SERIAL_PORT_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/op.hpp>
#include <boost/cobalt/io/ops.hpp>
#include <boost/cobalt/io/buffer.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_SIGNAL_SET_HPP
#define BOOST_COBALT_IO_SIGNAL_SET_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/op.hpp>
#include <boost/asio/basic_signal_set.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_SLEEP_HPP
#define BOOST_COBALT_IO_SLEEP_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/ops.hpp>
#include <boost/cobalt/io/steady_timer.hpp>
#include <boost/cobalt/io/system_timer.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IOSOCKET_HPP
#define BOOST_COBALT_IOSOCKET_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/endpoint.hpp>
#include <boost/cobalt/io/ops.hpp>
#include <boost/asio/socket_base.hpp>

View File

@@ -6,8 +6,18 @@
//
#ifndef BOOST_COBALT_SSL_HPP
#define BOOST_COBALT_SSL_HPP
#ifndef BOOST_COBALT_IO_SSL_HPP
#define BOOST_COBALT_IO_SSL_HPP
#if !defined(BOOST_COBALT_SSL_SOURCE) && !defined(BOOST_ALL_NO_LIB) \
&& !defined(BOOST_COBALT_NO_LIB) && !defined(BOOST_COBALT_IO_SSL_NO_LIB)
#define BOOST_LIB_NAME boost_cobalt_io_ssl
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COBALT_DYN_LINK)
#define BOOST_DYN_LINK
#endif
#include <boost/config/auto_link.hpp>
#endif
#include <boost/cobalt/io/socket.hpp>
#include <boost/cobalt/io/stream.hpp>
@@ -140,4 +150,5 @@ struct BOOST_SYMBOL_VISIBLE stream final : private detail::stream_impl, socket,
}
#endif //BOOST_COBALT_SSL_HPP
#endif //BOOST_COBALT_IO_SSL_HPP

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_STEADY_TIMER_HPP
#define BOOST_COBALT_IO_STEADY_TIMER_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/op.hpp>
#include <boost/cobalt/io/ops.hpp>
#include <boost/asio/basic_waitable_timer.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_STREAM_HPP
#define BOOST_COBALT_IO_STREAM_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/buffer.hpp>
#include <boost/cobalt/io/ops.hpp>

View File

@@ -10,6 +10,7 @@
#include <boost/asio/basic_stream_file.hpp>
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/config.hpp>
#include <boost/cobalt/io/buffer.hpp>
#include <boost/cobalt/io/file.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_STREAM_SOCKET_HPP
#define BOOST_COBALT_IO_STREAM_SOCKET_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/endpoint.hpp>
#include <boost/cobalt/io/socket.hpp>
#include <boost/cobalt/io/stream.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_SYSTEM_TIMER_HPP
#define BOOST_COBALT_IO_SYSTEM_TIMER_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/op.hpp>
#include <boost/cobalt/io/ops.hpp>
#include <boost/asio/basic_waitable_timer.hpp>

View File

@@ -8,6 +8,7 @@
#ifndef BOOST_COBALT_IO_WRITE_HPP
#define BOOST_COBALT_IO_WRITE_HPP
#include <boost/cobalt/io/detail/config.hpp>
#include <boost/cobalt/io/buffer.hpp>
#include <boost/cobalt/io/ops.hpp>