Re-introduce support for remote Lua console
Signed-off-by: Paul Cercueil <paul@crapouillou.net>master
parent
3b8b512857
commit
9164f1708e
|
@ -96,6 +96,11 @@ option(WITH_DEVKEYS "Include various extra keybindings for dev functions" ON)
|
||||||
option(USE_SYSTEM_LIBGLEW "Use the system's libglew" OFF)
|
option(USE_SYSTEM_LIBGLEW "Use the system's libglew" OFF)
|
||||||
option(USE_SYSTEM_LIBLUA "Use the system's liblua" OFF)
|
option(USE_SYSTEM_LIBLUA "Use the system's liblua" OFF)
|
||||||
option(PROFILER_ENABLED "Build pioneer with profiling support built-in." OFF)
|
option(PROFILER_ENABLED "Build pioneer with profiling support built-in." OFF)
|
||||||
|
option(REMOTE_LUA_REPL "Enable remote LUA console" OFF)
|
||||||
|
|
||||||
|
if (REMOTE_LUA_REPL)
|
||||||
|
set(REMOTE_LUA_REPL_PORT 12345 CACHE STRING "TCP port for remote LUA console")
|
||||||
|
endif (REMOTE_LUA_REPL)
|
||||||
|
|
||||||
list(APPEND SRC_FOLDERS
|
list(APPEND SRC_FOLDERS
|
||||||
src/
|
src/
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
#define PIONEER_EXTRAVERSION "@PROJECT_VERSION_GIT@"
|
#define PIONEER_EXTRAVERSION "@PROJECT_VERSION_GIT@"
|
||||||
#define PIONEER_VERSION "@PROJECT_VERSION@"
|
#define PIONEER_VERSION "@PROJECT_VERSION@"
|
||||||
#define PIONEER_DATA_DIR "@_PIONEER_DATA_DIR@"
|
#define PIONEER_DATA_DIR "@_PIONEER_DATA_DIR@"
|
||||||
|
#define REMOTE_LUA_REPL_PORT @REMOTE_LUA_REPL_PORT@
|
||||||
|
|
||||||
#cmakedefine01 WITH_OBJECTVIEWER
|
#cmakedefine01 WITH_OBJECTVIEWER
|
||||||
#cmakedefine01 WITH_DEVKEYS
|
#cmakedefine01 WITH_DEVKEYS
|
||||||
#cmakedefine01 HAS_FPE_OPS
|
#cmakedefine01 HAS_FPE_OPS
|
||||||
|
#cmakedefine REMOTE_LUA_REPL
|
||||||
|
|
||||||
#endif /* BUILDOPTS_H */
|
#endif /* BUILDOPTS_H */
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
// Copyright © 2008-2020 Pioneer Developers. See AUTHORS.txt for details
|
// Copyright © 2008-2020 Pioneer Developers. See AUTHORS.txt for details
|
||||||
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
|
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
|
||||||
|
|
||||||
#include "LuaConsole.h"
|
#include "buildopts.h"
|
||||||
|
|
||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
#include "KeyBindings.h"
|
#include "KeyBindings.h"
|
||||||
|
#include "LuaConsole.h"
|
||||||
#include "LuaManager.h"
|
#include "LuaManager.h"
|
||||||
#include "LuaUtils.h"
|
#include "LuaUtils.h"
|
||||||
#include "Pi.h"
|
#include "Pi.h"
|
||||||
|
|
Loading…
Reference in New Issue