Add asio and websocketpp as submodules

This commit is contained in:
Emmanuel Durand
2026-05-04 16:00:02 -04:00
parent 92666a3af7
commit 5c8fb5233f
9 changed files with 22 additions and 16 deletions
+6
View File
@@ -43,3 +43,9 @@
[submodule "external/imguifiledialog"]
path = external/imguifiledialog
url = https://github.com/aiekick/ImGuiFileDialog
[submodule "external/asio"]
path = external/asio
url = https://github.com/chriskohlhoff/asio.git
[submodule "external/websocketpp"]
path = external/websocketpp
url = https://github.com/zaphoyd/websocketpp.git
-3
View File
@@ -100,7 +100,6 @@ if (BUILD_CODE)
# Optional dependencies
find_package (Python3 COMPONENTS Interpreter Development)
find_package(OpenCV)
find_package(websocketpp)
pkg_search_module(GPHOTO libgphoto2)
pkg_search_module(JACK jack)
@@ -170,7 +169,6 @@ set(HAVE_PORTAUDIO ${PORTAUDIO_FOUND})
set(HAVE_SH4LT ${SH4LT_FOUND})
set(HAVE_SHMDATA ${SHMDATA_FOUND})
set(HAVE_PYTHON ${Python3_FOUND})
set(HAVE_WEBSOCKETPP ${websocketpp_FOUND})
set(HAVE_PORTABLE ${WITH_PORTABLE})
if (FFMPEG_libavformat_VERSION LESS 57)
@@ -336,7 +334,6 @@ info_cfg_option(Python3_VERSION)
info_cfg_option(JSONCPP_VERSION)
info_cfg_option(SH4LT_VERSION)
info_cfg_option(SHMDATA_VERSION)
info_cfg_option(websocketpp_VERSION)
info_cfg_option(ZMQ_VERSION)
info_cfg_option(DOXYGEN_FOUND)
info_cfg_option(ZIP)
Vendored Submodule
+1
Submodule external/asio added at 7609450f71
Vendored Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
SOURCE_DIR="$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)"
cd ${SOURCE_DIR}/asio/asio
./autogen.sh
./configure --prefix=${SOURCE_DIR}/third_parties
make -j$(nproc) && make install
Vendored Submodule
+1
Submodule external/websocketpp added at 266720951c
+4
View File
@@ -22,3 +22,7 @@ echo "Building ZMQ..."
# Sh4lt
echo "Building Sh4lt..."
./build_sh4lt.sh
# Asio
echo "Building Asio..."
./build_asio.sh
+2 -6
View File
@@ -110,6 +110,7 @@ include_directories(../external/stb)
include_directories(../external/tracy/public)
include_directories(../external/stduuid/include)
include_directories(../external/stduuid)
include_directories(../external/websocketpp)
include_directories(${GLFW_INCLUDE_DIRS})
include_directories(${LO_INCLUDE_DIRS})
@@ -179,6 +180,7 @@ target_sources(splash-${API_VERSION} PRIVATE
controller/controller_blender.cpp
controller/controller_gui.cpp
controller/controller_texcoord.cpp
controller/controller_websocket.cpp
controller/widget/widget.cpp
controller/widget/widget_attributes.cpp
controller/widget/widget_control.cpp
@@ -360,12 +362,6 @@ if (HAVE_PYTHON)
)
endif()
if (HAVE_WEBSOCKETPP)
target_sources(splash-${API_VERSION} PRIVATE
controller/controller_websocket.cpp
)
endif()
# Stdlib
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0.0")
-3
View File
@@ -37,9 +37,6 @@
/* Defined to 1 if python3.x is detected */
#cmakedefine01 HAVE_PYTHON
/* Defined to 1 if websocketpp is detected */
#cmakedefine01 HAVE_WEBSOCKETPP
/* Support mmx instructions */
#cmakedefine01 HAVE_MMX
-4
View File
@@ -12,9 +12,7 @@
#include "./controller/controller_osc.h"
#endif
#include "./controller/controller_texcoord.h"
#if HAVE_WEBSOCKETPP
#include "./controller/controller_websocket.h"
#endif
#include "./core/constants.h"
#include "./graphics/profiler_gl.h"
#include "./graphics/texture.h"
@@ -529,14 +527,12 @@ void Scene::setAsMaster(const std::string& configFilePath)
}
#endif
#if HAVE_WEBSOCKETPP
_websocket = std::make_shared<WebsocketController>(this);
if (_websocket)
{
_websocket->setName("websocket");
_objects["websocket"] = _websocket;
}
#endif
_keyboard = std::make_shared<Keyboard>(this);
_mouse = std::make_shared<Mouse>(this);