mirror of
https://gitlab.com/splashmapper/splash.git
synced 2026-06-16 12:33:50 +02:00
Add asio and websocketpp as submodules
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
+1
Submodule external/asio added at 7609450f71
+8
@@ -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
|
||||
+1
Submodule external/websocketpp added at 266720951c
@@ -22,3 +22,7 @@ echo "Building ZMQ..."
|
||||
# Sh4lt
|
||||
echo "Building Sh4lt..."
|
||||
./build_sh4lt.sh
|
||||
|
||||
# Asio
|
||||
echo "Building Asio..."
|
||||
./build_asio.sh
|
||||
|
||||
+2
-6
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user