Refactor CMakeLists

Closes #2471
Closes #1816
This commit is contained in:
Mohammad Nejati
2024-11-20 19:54:25 +00:00
committed by Mohammad Nejati
parent a21250d12d
commit 75e45287fb
82 changed files with 916 additions and 1359 deletions

View File

@@ -7,8 +7,10 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (advanced)
add_subdirectory (http)
add_subdirectory (websocket)
find_package(OpenSSL)
add_subdirectory (echo-op)
add_subdirectory(advanced)
add_subdirectory(http)
add_subdirectory(websocket)
add_subdirectory(echo-op)

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,6 +8,9 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (server)
add_subdirectory (server-flex)
add_subdirectory (server-flex-awaitable)
add_subdirectory(server)
if (OPENSSL_FOUND)
add_subdirectory(server-flex)
add_subdirectory(server-flex-awaitable)
endif ()

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/advanced/server-flex-awaitable "/")
add_executable(advanced-server-flex-awaitable
Jamfile
advanced_server_flex_awaitable.cpp)
add_executable (advanced-server-flex-awaitable
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
advanced_server_flex_awaitable.cpp
)
target_include_directories(advanced-server-flex-awaitable
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET advanced-server-flex-awaitable PROPERTY FOLDER "example-advanced-server")
target_link_libraries (advanced-server-flex-awaitable
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
target_link_libraries(advanced-server-flex-awaitable
PRIVATE Boost::beast Boost::scope OpenSSL::SSL OpenSSL::Crypto)
endif()
set_target_properties(advanced-server-flex-awaitable
PROPERTIES FOLDER "example-advanced-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/advanced/server-flex "/")
add_executable(advanced-server-flex
Jamfile
advanced_server_flex.cpp)
add_executable (advanced-server-flex
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
advanced_server_flex.cpp
)
target_include_directories(advanced-server-flex
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET advanced-server-flex PROPERTY FOLDER "example-advanced-server")
target_link_libraries (advanced-server-flex
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
target_link_libraries(advanced-server-flex
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
endif()
set_target_properties(advanced-server-flex
PROPERTIES FOLDER "example-advanced-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,10 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/advanced/server "/")
add_executable (advanced-server
${BOOST_BEAST_FILES}
add_executable(advanced-server
Jamfile
advanced_server.cpp
)
advanced_server.cpp)
target_link_libraries(advanced-server
lib-asio
lib-beast)
target_link_libraries(advanced-server PRIVATE Boost::beast)
set_property(TARGET advanced-server PROPERTY FOLDER "example-advanced-server")
set_target_properties(advanced-server PROPERTIES FOLDER "example-advanced-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/echo-op "/")
add_executable (echo-op
${BOOST_BEAST_FILES}
add_executable(echo-op
Jamfile
echo_op.cpp
)
echo_op.cpp)
target_link_libraries(echo-op
lib-asio
lib-beast)
target_link_libraries(echo-op PRIVATE Boost::beast)
set_property(TARGET echo-op PROPERTY FOLDER "example")
set_target_properties(echo-op
PROPERTIES FOLDER "example-echo-op")

View File

@@ -7,5 +7,5 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (client)
add_subdirectory (server)
add_subdirectory(client)
add_subdirectory(server)

View File

@@ -7,19 +7,18 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (async)
add_subdirectory (awaitable)
add_subdirectory (coro)
add_subdirectory (crawl)
add_subdirectory (sync)
add_subdirectory (body)
add_subdirectory (methods)
add_subdirectory(async)
add_subdirectory(awaitable)
add_subdirectory(body)
add_subdirectory(coro)
add_subdirectory(crawl)
add_subdirectory(methods)
add_subdirectory(sync)
if (OPENSSL_FOUND)
add_subdirectory (async-ssl)
add_subdirectory (async-ssl-system-executor)
add_subdirectory (awaitable-ssl)
add_subdirectory (coro-ssl)
add_subdirectory (sync-ssl)
endif()
add_subdirectory(async-ssl)
add_subdirectory(async-ssl-system-executor)
add_subdirectory(awaitable-ssl)
add_subdirectory(coro-ssl)
add_subdirectory(sync-ssl)
endif ()

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/client/async-ssl-system-executor "/")
add_executable(http-client-async-ssl-system-executor
Jamfile
http_client_async_ssl_system_executor.cpp)
add_executable (http-client-async-ssl-system-executor
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
http_client_async_ssl_system_executor.cpp
)
target_include_directories(http-client-async-ssl-system-executor
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-client-async-ssl-system-executor PROPERTY FOLDER "example-http-client")
target_link_libraries(http-client-async-ssl-system-executor
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-client-async-ssl-system-executor
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-client-async-ssl-system-executor
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/client/async-ssl "/")
add_executable(http-client-async-ssl
Jamfile
http_client_async_ssl.cpp)
add_executable (http-client-async-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
http_client_async_ssl.cpp
)
target_include_directories(http-client-async-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-client-async-ssl PROPERTY FOLDER "example-http-client")
target_link_libraries(http-client-async-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-client-async-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-client-async-ssl
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/async "/")
add_executable (http-client-async
${BOOST_BEAST_FILES}
add_executable(http-client-async
Jamfile
http_client_async.cpp
)
http_client_async.cpp)
target_link_libraries(http-client-async
lib-asio
lib-beast)
target_link_libraries(http-client-async PRIVATE Boost::beast)
set_property(TARGET http-client-async PROPERTY FOLDER "example-http-client")
set_target_properties(http-client-async
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,19 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/awaitable "/")
add_executable (http-client-awaitable-ssl
${BOOST_BEAST_FILES}
add_executable(http-client-awaitable-ssl
Jamfile
http_client_awaitable_ssl.cpp
)
http_client_awaitable_ssl.cpp)
target_include_directories(http-client-awaitable-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
target_link_libraries(http-client-awaitable-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast)
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
set_property(TARGET http-client-awaitable-ssl PROPERTY FOLDER "example-http-client")
set_target_properties(http-client-awaitable-ssl
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/awaitable "/")
add_executable (http-client-awaitable
${BOOST_BEAST_FILES}
add_executable(http-client-awaitable
Jamfile
http_client_awaitable.cpp
)
http_client_awaitable.cpp)
target_link_libraries(http-client-awaitable
lib-asio
lib-beast)
target_link_libraries(http-client-awaitable PRIVATE Boost::beast)
set_property(TARGET http-client-awaitable PROPERTY FOLDER "example-http-client")
set_target_properties(http-client-awaitable
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/coro "/")
add_executable (http-client-json
${BOOST_BEAST_FILES}
add_executable(http-client-json
Jamfile
json_client.cpp
)
json_client.cpp)
target_link_libraries(http-client-json
lib-asio
lib-beast)
target_link_libraries(http-client-json PRIVATE Boost::beast Boost::json)
set_property(TARGET http-client-json PROPERTY FOLDER "example-json-client")
set_target_properties(http-client-json
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/client/coro-ssl "/")
add_executable(http-client-coro-ssl
Jamfile
http_client_coro_ssl.cpp)
add_executable (http-client-coro-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
http_client_coro_ssl.cpp
)
target_include_directories(http-client-coro-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-client-coro-ssl PROPERTY FOLDER "example-http-client")
target_link_libraries(http-client-coro-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-client-coro-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-client-coro-ssl
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/coro "/")
add_executable (http-client-coro
${BOOST_BEAST_FILES}
add_executable(http-client-coro
Jamfile
http_client_coro.cpp
)
http_client_coro.cpp)
target_link_libraries(http-client-coro
lib-asio
lib-beast)
target_link_libraries(http-client-coro PRIVATE Boost::beast)
set_property(TARGET http-client-coro PROPERTY FOLDER "example-http-client")
set_target_properties(http-client-coro
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,20 +8,12 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/crawl "/")
add_executable (http-crawl
${BOOST_BEAST_FILES}
add_executable(http-crawl
Jamfile
urls_large_data.hpp
urls_large_data.cpp
http_crawl.cpp
)
urls_large_data.cpp)
target_link_libraries(http-crawl
lib-asio
lib-beast)
set_property(TARGET http-crawl PROPERTY FOLDER "example-http-client")
target_link_libraries(http-crawl PRIVATE Boost::beast)
set_target_properties(http-crawl
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/methods "/")
add_executable (http-client-methods
${BOOST_BEAST_FILES}
add_executable(http-client-methods
Jamfile
http_client_methods.cpp
)
http_client_methods.cpp)
target_link_libraries(http-client-methods
lib-asio
lib-beast)
target_link_libraries(http-client-methods PRIVATE Boost::beast)
set_property(TARGET http-client-methods PROPERTY FOLDER "example-http-client-methods")
set_target_properties(http-client-methods
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/client/sync-ssl "/")
add_executable(http-client-sync-ssl
Jamfile
http_client_sync_ssl.cpp)
add_executable (http-client-sync-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
http_client_sync_ssl.cpp
)
target_include_directories(http-client-sync-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-client-sync-ssl PROPERTY FOLDER "example-http-client")
target_link_libraries(http-client-sync-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-client-sync-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-client-sync-ssl
PROPERTIES FOLDER "example-http-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/client/sync "/")
add_executable (http-client-sync
${BOOST_BEAST_FILES}
add_executable(http-client-sync
Jamfile
http_client_sync.cpp
)
http_client_sync.cpp)
target_link_libraries(http-client-sync
lib-asio
lib-beast)
target_link_libraries(http-client-sync PRIVATE Boost::beast)
set_property(TARGET http-client-sync PROPERTY FOLDER "example-http-client")
set_target_properties(http-client-sync
PROPERTIES FOLDER "example-http-client")

View File

@@ -7,18 +7,18 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (async)
add_subdirectory (awaitable)
add_subdirectory (coro)
add_subdirectory (fast)
add_subdirectory (small)
add_subdirectory (stackless)
add_subdirectory (sync)
add_subdirectory(async)
add_subdirectory(awaitable)
add_subdirectory(coro)
add_subdirectory(fast)
add_subdirectory(small)
add_subdirectory(stackless)
add_subdirectory(sync)
if (OPENSSL_FOUND)
add_subdirectory (async-ssl)
add_subdirectory (coro-ssl)
add_subdirectory (flex)
add_subdirectory (stackless-ssl)
add_subdirectory (sync-ssl)
endif()
add_subdirectory(async-ssl)
add_subdirectory(coro-ssl)
add_subdirectory(flex)
add_subdirectory(stackless-ssl)
add_subdirectory(sync-ssl)
endif ()

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/async-ssl "/")
add_executable(http-server-async-ssl
Jamfile
http_server_async_ssl.cpp)
add_executable (http-server-async-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_async_ssl.cpp
)
target_include_directories(http-server-async-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-server-async-ssl PROPERTY FOLDER "example-http-server")
target_link_libraries(http-server-async-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-server-async-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-server-async-ssl
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,18 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/server/async "/")
add_executable (http-server-async
${BOOST_BEAST_FILES}
add_executable(http-server-async
Jamfile
http_server_async.cpp
)
http_server_async.cpp)
target_link_libraries(http-server-async
lib-asio
lib-asio-ssl
lib-beast)
target_link_libraries(http-server-async PRIVATE Boost::beast)
set_property(TARGET http-server-async PROPERTY FOLDER "example-http-server")
set_target_properties(http-server-async
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/server/awaitable "/")
add_executable (http-server-awaitable
${BOOST_BEAST_FILES}
add_executable(http-server-awaitable
Jamfile
http_server_awaitable.cpp
)
http_server_awaitable.cpp)
target_link_libraries(http-server-awaitable
lib-asio
lib-beast)
target_link_libraries(http-server-awaitable PRIVATE Boost::beast)
set_property(TARGET http-server-awaitable PROPERTY FOLDER "example-http-server")
set_target_properties(http-server-awaitable
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/coro-ssl "/")
add_executable(http-server-coro-ssl
Jamfile
http_server_coro_ssl.cpp)
add_executable (http-server-coro-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_coro_ssl.cpp
)
target_include_directories(http-server-coro-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-server-coro-ssl PROPERTY FOLDER "example-http-server")
target_link_libraries(http-server-coro-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-server-coro-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-server-coro-ssl
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/server/coro "/")
add_executable (http-server-coro
${BOOST_BEAST_FILES}
add_executable(http-server-coro
Jamfile
http_server_coro.cpp
)
http_server_coro.cpp)
target_link_libraries(http-server-coro
lib-asio
lib-beast)
target_link_libraries(http-server-coro PRIVATE Boost::beast)
set_property(TARGET http-server-coro PROPERTY FOLDER "example-http-server")
set_target_properties(http-server-coro
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,20 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/fast "/")
add_executable (http-server-fast
${BOOST_BEAST_FILES}
${COMMON_FILES}
add_executable(http-server-fast
Jamfile
fields_alloc.hpp
http_server_fast.cpp
)
http_server_fast.cpp)
target_link_libraries(http-server-fast
lib-asio
lib-beast)
target_link_libraries(http-server-fast PRIVATE Boost::beast)
set_property(TARGET http-server-fast PROPERTY FOLDER "example-http-server")
set_target_properties(http-server-fast
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/flex "/")
add_executable(http-server-flex
Jamfile
http_server_flex.cpp)
add_executable (http-server-flex
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_flex.cpp
)
target_include_directories(http-server-flex
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-server-flex PROPERTY FOLDER "example-http-server")
target_link_libraries(http-server-flex
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-server-flex
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-server-flex
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/server/small "/")
add_executable (http-server-small
${BOOST_BEAST_FILES}
add_executable(http-server-small
Jamfile
http_server_small.cpp
)
http_server_small.cpp)
target_link_libraries(http-server-small
lib-asio
lib-beast)
target_link_libraries(http-server-small PRIVATE Boost::beast)
set_property(TARGET http-server-small PROPERTY FOLDER "example-http-server")
set_target_properties(http-server-small
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/stackless-ssl "/")
add_executable(http-server-stackless-ssl
Jamfile
http_server_stackless_ssl.cpp)
add_executable (http-server-stackless-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_stackless_ssl.cpp
)
target_include_directories(http-server-stackless-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-server-stackless-ssl PROPERTY FOLDER "example-http-server")
target_link_libraries(http-server-stackless-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (http-server-stackless-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(http-server-stackless-ssl
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/server/stackless "/")
add_executable (http-server-stackless
${BOOST_BEAST_FILES}
add_executable(http-server-stackless
Jamfile
http_server_stackless.cpp
)
http_server_stackless.cpp)
target_link_libraries(http-server-stackless
lib-asio
lib-beast)
target_link_libraries(http-server-stackless PRIVATE Boost::beast)
set_property(TARGET http-server-stackless PROPERTY FOLDER "example-http-server")
set_target_properties(http-server-stackless
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/sync-ssl "/")
add_executable(http-server-sync-ssl
Jamfile
http_server_sync_ssl.cpp)
add_executable (http-server-sync-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_sync_ssl.cpp
)
target_include_directories(http-server-sync-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET http-server-sync-ssl PROPERTY FOLDER "example-http-server")
target_link_libraries (http-server-sync-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
target_link_libraries(http-server-sync-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
endif()
set_target_properties(http-server-sync-ssl
PROPERTIES FOLDER "example-http-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,18 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/http/server/sync "/")
add_executable (http-server-sync
${BOOST_BEAST_FILES}
add_executable(http-server-sync
Jamfile
http_server_sync.cpp
)
http_server_sync.cpp)
target_link_libraries(http-server-sync
lib-asio
lib-asio-ssl
lib-beast)
target_link_libraries(http-server-sync PRIVATE Boost::beast)
set_property(TARGET http-server-sync PROPERTY FOLDER "example-http-server")
set_target_properties(http-server-sync
PROPERTIES FOLDER "example-http-server")

View File

@@ -7,5 +7,5 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (client)
add_subdirectory (server)
add_subdirectory(client)
add_subdirectory(server)

View File

@@ -7,14 +7,14 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (async)
add_subdirectory (awaitable)
add_subdirectory (coro)
add_subdirectory (sync)
add_subdirectory(async)
add_subdirectory(awaitable)
add_subdirectory(coro)
add_subdirectory(sync)
if (OPENSSL_FOUND)
add_subdirectory (async-ssl)
add_subdirectory (async-ssl-system-executor)
add_subdirectory (coro-ssl)
add_subdirectory (sync-ssl)
endif()
add_subdirectory(async-ssl)
add_subdirectory(async-ssl-system-executor)
add_subdirectory(coro-ssl)
add_subdirectory(sync-ssl)
endif ()

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/client/async-ssl-system-executor "/")
add_executable(websocket-client-async-ssl-system-executor
Jamfile
websocket_client_async_ssl_system_executor.cpp)
add_executable (websocket-client-async-ssl-system-executor
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
websocket_client_async_ssl_system_executor.cpp
)
target_include_directories(websocket-client-async-ssl-system-executor
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-client-async-ssl-system-executor PROPERTY FOLDER "example-websocket-client")
target_link_libraries(websocket-client-async-ssl-system-executor
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-client-async-ssl-system-executor
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-client-async-ssl-system-executor
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/client/async-ssl "/")
add_executable(websocket-client-async-ssl
Jamfile
websocket_client_async_ssl.cpp)
add_executable (websocket-client-async-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
websocket_client_async_ssl.cpp
)
target_include_directories(websocket-client-async-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-client-async-ssl PROPERTY FOLDER "example-websocket-client")
target_link_libraries(websocket-client-async-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-client-async-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-client-async-ssl
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/client/async "/")
add_executable (websocket-client-async
${BOOST_BEAST_FILES}
add_executable(websocket-client-async
Jamfile
websocket_client_async.cpp
)
websocket_client_async.cpp)
target_link_libraries(websocket-client-async
lib-asio
lib-beast)
target_link_libraries(websocket-client-async PRIVATE Boost::beast)
set_property(TARGET websocket-client-async PROPERTY FOLDER "example-websocket-client")
set_target_properties(websocket-client-async
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/client/awaitable "/")
add_executable (websocket-client-awaitable
${BOOST_BEAST_FILES}
add_executable(websocket-client-awaitable
Jamfile
websocket_client_awaitable.cpp
)
websocket_client_awaitable.cpp)
target_link_libraries(websocket-client-awaitable
lib-asio
lib-beast)
target_link_libraries(websocket-client-awaitable PRIVATE Boost::beast)
set_property(TARGET websocket-client-awaitable PROPERTY FOLDER "example-websocket-client")
set_target_properties(websocket-client-awaitable
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/client/coro-ssl "/")
add_executable(websocket-client-coro-ssl
Jamfile
websocket_client_coro_ssl.cpp)
add_executable (websocket-client-coro-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
websocket_client_coro_ssl.cpp
)
target_include_directories(websocket-client-coro-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-client-coro-ssl PROPERTY FOLDER "example-websocket-client")
target_link_libraries(websocket-client-coro-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-client-coro-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-client-coro-ssl
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/client/coro "/")
add_executable (websocket-client-coro
${BOOST_BEAST_FILES}
add_executable(websocket-client-coro
Jamfile
websocket_client_coro.cpp
)
websocket_client_coro.cpp)
target_link_libraries(websocket-client-coro
lib-asio
lib-beast)
target_link_libraries(websocket-client-coro PRIVATE Boost::beast)
set_property(TARGET websocket-client-coro PROPERTY FOLDER "example-websocket-client")
set_target_properties(websocket-client-coro
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/client/sync-ssl "/")
add_executable(websocket-client-sync-ssl
Jamfile
websocket_client_sync_ssl.cpp)
add_executable (websocket-client-sync-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile
websocket_client_sync_ssl.cpp
)
target_include_directories(websocket-client-sync-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-client-sync-ssl PROPERTY FOLDER "example-websocket-client")
target_link_libraries(websocket-client-sync-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-client-sync-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-client-sync-ssl
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/client/sync "/")
add_executable (websocket-client-sync
${BOOST_BEAST_FILES}
add_executable(websocket-client-sync
Jamfile
websocket_client_sync.cpp
)
websocket_client_sync.cpp)
target_link_libraries(websocket-client-sync
lib-asio
lib-beast)
target_link_libraries(websocket-client-sync PRIVATE Boost::beast)
set_property(TARGET websocket-client-sync PROPERTY FOLDER "example-websocket-client")
set_target_properties(websocket-client-sync
PROPERTIES FOLDER "example-websocket-client")

View File

@@ -7,17 +7,17 @@
# Official repository: https://github.com/boostorg/beast
#
add_subdirectory (async)
add_subdirectory (awaitable)
add_subdirectory (chat-multi)
add_subdirectory (coro)
add_subdirectory (fast)
add_subdirectory (stackless)
add_subdirectory (sync)
add_subdirectory(async)
add_subdirectory(awaitable)
add_subdirectory(chat-multi)
add_subdirectory(coro)
add_subdirectory(fast)
add_subdirectory(stackless)
add_subdirectory(sync)
if (OPENSSL_FOUND)
add_subdirectory (async-ssl)
add_subdirectory (coro-ssl)
add_subdirectory (stackless-ssl)
add_subdirectory (sync-ssl)
endif()
add_subdirectory(async-ssl)
add_subdirectory(coro-ssl)
add_subdirectory(stackless-ssl)
add_subdirectory(sync-ssl)
endif ()

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/server/async-ssl "/")
add_executable(websocket-server-async-ssl
Jamfile
websocket_server_async_ssl.cpp)
add_executable (websocket-server-async-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
websocket_server_async_ssl.cpp
)
target_include_directories(websocket-server-async-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-server-async-ssl PROPERTY FOLDER "example-websocket-server")
target_link_libraries(websocket-server-async-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-server-async-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-server-async-ssl
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/async "/")
add_executable (websocket-server-async
${BOOST_BEAST_FILES}
add_executable(websocket-server-async
Jamfile
websocket_server_async.cpp
)
websocket_server_async.cpp)
target_link_libraries(websocket-server-async
lib-asio
lib-beast)
target_link_libraries(websocket-server-async PRIVATE Boost::beast)
set_property(TARGET websocket-server-async PROPERTY FOLDER "example-websocket-server")
set_target_properties(websocket-server-async
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/awaitable "/")
add_executable (websocket-server-awaitable
${BOOST_BEAST_FILES}
add_executable(websocket-server-awaitable
Jamfile
websocket_server_awaitable.cpp
)
websocket_server_awaitable.cpp)
target_link_libraries(websocket-server-awaitable
lib-asio
lib-beast)
target_link_libraries(websocket-server-awaitable PRIVATE Boost::beast)
set_property(TARGET websocket-server-awaitable PROPERTY FOLDER "example-websocket-server")
set_target_properties(websocket-server-awaitable
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,35 +8,22 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/chat-multi "/")
add_executable(websocket-chat-multi
beast.hpp
chat_client.html
http_session.cpp
http_session.hpp
Jamfile
listener.cpp
listener.hpp
main.cpp
net.hpp
shared_state.cpp
shared_state.hpp
websocket_session.cpp
websocket_session.hpp)
file (GLOB APP_FILES
beast.hpp
http_session.cpp
http_session.hpp
Jamfile
listener.cpp
listener.hpp
main.cpp
net.hpp
shared_state.cpp
shared_state.hpp
websocket_session.cpp
websocket_session.hpp
chat_client.html
README.md
)
target_link_libraries(websocket-chat-multi PRIVATE Boost::beast)
source_group ("" FILES ${APP_FILES})
add_executable (websocket-chat-multi
${APP_FILES}
${BOOST_BEAST_FILES}
)
target_link_libraries(websocket-chat-multi
lib-asio
lib-beast)
set_property(TARGET websocket-chat-multi PROPERTY FOLDER "example-websocket-server")
set_target_properties(websocket-chat-multi
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/server/coro-ssl "/")
add_executable(websocket-server-coro-ssl
Jamfile
websocket_server_coro_ssl.cpp)
add_executable (websocket-server-coro-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
websocket_server_coro_ssl.cpp
)
target_include_directories(websocket-server-coro-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-server-coro-ssl PROPERTY FOLDER "example-websocket-server")
target_link_libraries(websocket-server-coro-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-server-coro-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-server-coro-ssl
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/coro "/")
add_executable (websocket-server-coro
${BOOST_BEAST_FILES}
add_executable(websocket-server-coro
Jamfile
websocket_server_coro.cpp
)
websocket_server_coro.cpp)
target_link_libraries(websocket-server-coro
lib-asio
lib-beast)
target_link_libraries(websocket-server-coro PRIVATE Boost::beast)
set_property(TARGET websocket-server-coro PROPERTY FOLDER "example-websocket-server")
set_target_properties(websocket-server-coro
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/fast "/")
add_executable (websocket-server-fast
${BOOST_BEAST_FILES}
add_executable(websocket-server-fast
Jamfile
websocket_server_fast.cpp
)
websocket_server_fast.cpp)
target_link_libraries(websocket-server-fast
lib-asio
lib-beast)
target_link_libraries(websocket-server-fast PRIVATE Boost::beast)
set_property(TARGET websocket-server-fast PROPERTY FOLDER "example-websocket-server")
set_target_properties(websocket-server-fast
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/server/stackless-ssl "/")
add_executable(websocket-server-stackless-ssl
Jamfile
websocket_server_stackless_ssl.cpp)
add_executable (websocket-server-stackless-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
websocket_server_stackless_ssl.cpp
)
target_include_directories(websocket-server-stackless-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-server-stackless-ssl PROPERTY FOLDER "example-websocket-server")
target_link_libraries(websocket-server-stackless-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-server-stackless-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-server-stackless-ssl
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/stackless "/")
add_executable (websocket-server-stackless
${BOOST_BEAST_FILES}
add_executable(websocket-server-stackless
Jamfile
websocket_server_stackless.cpp
)
websocket_server_stackless.cpp)
target_link_libraries(websocket-server-stackless
lib-asio
lib-beast)
target_link_libraries(websocket-server-stackless PRIVATE Boost::beast)
set_property(TARGET websocket-server-stackless PROPERTY FOLDER "example-websocket-server")
set_target_properties(websocket-server-stackless
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,25 +8,15 @@
# Official repository: https://github.com/boostorg/beast
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/websocket/server/sync-ssl "/")
add_executable(websocket-server-sync-ssl
Jamfile
websocket_server_sync_ssl.cpp)
add_executable (websocket-server-sync-ssl
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
websocket_server_sync_ssl.cpp
)
target_include_directories(websocket-server-sync-ssl
PRIVATE ${PROJECT_SOURCE_DIR})
set_property(TARGET websocket-server-sync-ssl PROPERTY FOLDER "example-websocket-server")
target_link_libraries(websocket-server-sync-ssl
PRIVATE Boost::beast OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries (websocket-server-sync-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
set_target_properties(websocket-server-sync-ssl
PROPERTIES FOLDER "example-websocket-server")

View File

@@ -1,5 +1,6 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
# Copyright (c) 2024 Mohammad Nejati
#
# 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)
@@ -7,17 +8,11 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/sync "/")
add_executable (websocket-server-sync
${BOOST_BEAST_FILES}
add_executable(websocket-server-sync
Jamfile
websocket_server_sync.cpp
)
websocket_server_sync.cpp)
target_link_libraries(websocket-server-sync
lib-asio
lib-beast)
target_link_libraries(websocket-server-sync PRIVATE Boost::beast)
set_property(TARGET websocket-server-sync PROPERTY FOLDER "example-websocket-server")
set_target_properties(websocket-server-sync
PROPERTIES FOLDER "example-websocket-server")