diff --git a/.gitignore b/.gitignore index 1d0c71514..acaa1ef15 100644 --- a/.gitignore +++ b/.gitignore @@ -91,4 +91,10 @@ install Makefile bin +# bazel +MODULE.bazel.lock +bazel-bin +bazel-out +bazel-* + Testing/Temporary/CTestCostData.txt diff --git a/BUILD b/BUILD new file mode 100644 index 000000000..a6c7e47bc --- /dev/null +++ b/BUILD @@ -0,0 +1,13 @@ +package(default_visibility = ["//visibility:public"]) + +################# +## WebSocket++ ## +################# +cc_library( + name = "websocketpp", + hdrs = glob(["websocketpp/**/*.hpp"]), + includes = ["."], + deps = [ + "@asio//:asio", + ], +) diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 000000000..57150f578 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,6 @@ +module( + name = "websocketpp", + repo_name = "andreazevedo_websocketpp", +) + +bazel_dep(name = "asio", version = "1.32.0") diff --git a/websocketpp/endpoint.hpp b/websocketpp/endpoint.hpp index c124b1d9a..9ce8a6261 100644 --- a/websocketpp/endpoint.hpp +++ b/websocketpp/endpoint.hpp @@ -109,7 +109,7 @@ class endpoint : public config::transport_type, public config::endpoint_base { /// Destructor - ~endpoint() {} + ~endpoint() {} #ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_ // no copy constructor because endpoints are not copyable diff --git a/websocketpp/logger/basic.hpp b/websocketpp/logger/basic.hpp index 84514130e..4c9d83649 100644 --- a/websocketpp/logger/basic.hpp +++ b/websocketpp/logger/basic.hpp @@ -58,33 +58,33 @@ namespace log { template class basic { public: - basic(channel_type_hint::value h = + basic(channel_type_hint::value h = channel_type_hint::access) : m_static_channels(0xffffffff) , m_dynamic_channels(0) , m_out(h == channel_type_hint::error ? &std::cerr : &std::cout) {} - basic(std::ostream * out) + basic(std::ostream * out) : m_static_channels(0xffffffff) , m_dynamic_channels(0) , m_out(out) {} - basic(level c, channel_type_hint::value h = + basic(level c, channel_type_hint::value h = channel_type_hint::access) : m_static_channels(c) , m_dynamic_channels(0) , m_out(h == channel_type_hint::error ? &std::cerr : &std::cout) {} - basic(level c, std::ostream * out) + basic(level c, std::ostream * out) : m_static_channels(c) , m_dynamic_channels(0) , m_out(out) {} /// Destructor - ~basic() {} + ~basic() {} /// Copy constructor - basic(basic const & other) + basic(basic const & other) : m_static_channels(other.m_static_channels) , m_dynamic_channels(other.m_dynamic_channels) , m_out(other.m_out) @@ -97,7 +97,7 @@ class basic { #ifdef _WEBSOCKETPP_MOVE_SEMANTICS_ /// Move constructor - basic(basic && other) + basic(basic && other) : m_static_channels(other.m_static_channels) , m_dynamic_channels(other.m_dynamic_channels) , m_out(other.m_out) diff --git a/websocketpp/roles/server_endpoint.hpp b/websocketpp/roles/server_endpoint.hpp index 9cc652f75..63b200a54 100644 --- a/websocketpp/roles/server_endpoint.hpp +++ b/websocketpp/roles/server_endpoint.hpp @@ -72,11 +72,11 @@ class server : public endpoint,config> { } /// Destructor - ~server() {} + ~server() {} #ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_ // no copy constructor because endpoints are not copyable - server(server &) = delete; + server(server &) = delete; // no copy assignment operator because endpoints are not copyable server & operator=(server const &) = delete; @@ -84,7 +84,7 @@ class server : public endpoint,config> { #ifdef _WEBSOCKETPP_MOVE_SEMANTICS_ /// Move constructor - server(server && o) : endpoint,config>(std::move(o)) {} + server(server && o) : endpoint,config>(std::move(o)) {} #ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_ // no move assignment operator because of const member variables