Skip to content

Commit

Permalink
Change folder struture in boost support lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Iandiehard committed Jan 21, 2024
1 parent 39d365f commit c13d5f6
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 26 deletions.
16 changes: 8 additions & 8 deletions diag-client-lib/lib/boost-support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ set(CMAKE_CXX_EXTENSIONS OFF)
find_package(Boost 1.78.0)
find_package(OpenSSL)

file(GLOB LIBBOOST_COMMON_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/common/*.cpp")
file(GLOB LIBBOOST_CLIENT_TCP_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/client/tcp/*.cpp")
file(GLOB LIBBOOST_SOCKET_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/socket/*.cpp")
file(GLOB LIBBOOST_SOCKET_TCP_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/socket/tcp/*.cpp")
file(GLOB LIBBOOST_SOCKET_TLS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/socket/tls/*.cpp")
file(GLOB LIBBOOST_SOCKET_UDP_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/socket/udp/*.cpp")
file(GLOB LIBBOOST_JSON_PARSER_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/parser/*.cpp")
file(GLOB LIBBOOST_COMMON_SRCS "src/boost-support/common/*.cpp")
file(GLOB LIBBOOST_CLIENT_TCP_SRCS "include/boost-support/client/tcp/*.cpp")
file(GLOB LIBBOOST_SOCKET_SRCS "src/boost-support/socket/*.cpp")
file(GLOB LIBBOOST_SOCKET_TCP_SRCS "src/boost-support/socket/tcp/*.cpp")
file(GLOB LIBBOOST_SOCKET_TLS_SRCS "src/boost-support/socket/tls/*.cpp")
file(GLOB LIBBOOST_SOCKET_UDP_SRCS "src/boost-support/socket/udp/*.cpp")
file(GLOB LIBBOOST_JSON_PARSER_SRCS "include/boost-support/parser/*.cpp")

set(LIBBOOST_SOCKET_SRCS
${LIBBOOST_SOCKET_SRCS}
Expand All @@ -38,7 +38,7 @@ add_library(${PROJECT_NAME}

#Link include directory
target_include_directories(${PROJECT_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <string_view>
#include <vector>

#include "tcp_message.h"
#include "src/boost-support/socket/tcp/tcp_message.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <boost/asio.hpp>

#include "core/include/result.h"
#include "socket/tcp/tcp_message.h"
#include "src/boost-support/socket/tcp/tcp_message.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>

#include "socket/tls/tls_version.h"
#include "tls_version.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <boost/asio.hpp>

#include "core/include/result.h"
#include "socket/tcp/tcp_message.h"
#include "socket/tls/tls_context.h"
#include "src/boost-support/socket/tcp/tcp_message.h"
#include "tls_context.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <vector>

#include "core/include/result.h"
#include "socket/udp/udp_message.h"
#include "udp_message.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include "parser/json_parser.h"
#include "include/boost-support/parser/json_parser.h"

#include "common/logger.h"
#include "src/boost-support/common/logger.h"

namespace boost_support {
namespace parser {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "socket/tcp/tcp_server.h"

#include "server/tcp/tcp_server.h"
#include "common/logger.h"

namespace boost_support {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include "socket/io_context.h"
#include "io_context.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include "socket/tcp/tcp_socket.h"
#include "include/boost-support/socket/tcp/tcp_socket.h"

#include <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include "socket/tcp/tls_client.h"
#include "tls_client.h"

#include <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <thread>

#include "core/include/result.h"
#include "socket/tcp/tcp_message.h"
#include "tcp_message.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "socket/tcp/tls_server.h"
#include "tls_server.h"

#include <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <vector>

#include "core/include/result.h"
#include "socket/tcp/tcp_message.h"
#include "tcp_message.h"

namespace boost_support {
namespace socket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include "socket/tls/tls_socket.h"
#include "include/boost-support/socket/tls/tls_socket.h"

#include <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include "socket/udp/udp_client.h"
#include "include/boost-support/socket/udp/udp_client.h"

#include "common/logger.h"

Expand Down

0 comments on commit c13d5f6

Please sign in to comment.