Repository navigation
Expand file tree
/
Copy pathLua4RS.pro
More file actions
117 lines (105 loc) · 2.94 KB
/
Copy pathLua4RS.pro
File metadata and controls
117 lines (105 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
!include("../Common/retroshare_plugin.pri")::error( "Could not include file ../Common/retroshare_plugin.pri" )
CONFIG += qt resources uic qrc
CONFIG += c++17
QT += network
greaterThan(QT_MAJOR_VERSION, 4) {
# Qt 5
QT += widgets
}
# Lua 5.4 or 5.5, see lua.pri (MSYS2: Lua comes from the toolchain dirs)
include(lua.pri)
HEADERS += \
mcp/Lua4RSTools.h \
mcp/McpGuiThread.h \
mcp/McpHttp.h \
mcp/McpProtocol.h \
mcp/McpSettings.h \
gui/McpPanel.h \
Lua/LuaExecutionGuard.h \
Lua/LuaBindings.h \
Lua/LuaRun.h \
Lua/LuaSandbox.h \
Lua/LuaStore.h \
Lua/LuaTrust.h \
Lua/LuaTrustStore.h \
Lua/BundledScripts.h \
gui/AccessText.h \
gui/ApprovalDialog.h \
gui/FunctionBrowser.h \
gui/LineDiff.h \
gui/JsonApiCatalog.h \
Lua/LuaJsonApi.h \
Lua4RSPlugin.h \
Lua4RSNotify.h \
gui/Lua4RSWidget.h \
gui/Lua4RSConfig.h \
gui/Lua4RSTextEdit.h \
Lua/LuaCore.h \
Lua/LuaToRS.h \
Lua/LuaToRSIds.h \
Lua/LuaList.h \
Lua/LuaContainer.h \
Lua/LuaEvent.h \
Lua/LuaEventCatalog.h \
service/p3Lua4RS.h \
interface/L4RInterface.h \
helper.h
SOURCES += \
mcp/Lua4RSTools.cpp \
mcp/McpHttp.cpp \
mcp/McpProtocol.cpp \
mcp/McpSettings.cpp \
gui/McpPanel.cpp \
Lua/LuaJsonApi.cpp \
Lua/LuaSandbox.cpp \
Lua/LuaStore.cpp \
Lua/LuaTrustStore.cpp \
Lua4RSPlugin.cpp \
Lua4RSNotify.cpp \
gui/AccessText.cpp \
gui/ApprovalDialog.cpp \
gui/LineDiff.cpp \
gui/Lua4RSWidget.cpp \
gui/Lua4RSConfig.cpp \
gui/Lua4RSTextEdit.cpp \
Lua/LuaCore.cpp \
Lua/LuaList.cpp \
Lua/LuaContainer.cpp \
service/p3Lua4RS.cpp \
helper.cpp
# MCP endpoint, mounted into RetroShare's JSON API server (needs restbed headers
# from the RetroShare build; override with RESTBED_INCLUDE_PATH=...).
rs_jsonapi {
DEFINES += LUA4RS_MCP
isEmpty(RESTBED_INCLUDE_PATH): RESTBED_INCLUDE_PATH = $$clean_path($$OUT_PWD/../../supportlibs/restbed/include)
!exists($$RESTBED_INCLUDE_PATH/restbed): error("Lua4RS: restbed headers not found in $$RESTBED_INCLUDE_PATH (set RESTBED_INCLUDE_PATH)")
INCLUDEPATH += $$RESTBED_INCLUDE_PATH
HEADERS += mcp/McpServer.h
SOURCES += mcp/McpServer.cpp
message("Lua4RS: MCP endpoint enabled")
} else {
message("Lua4RS: built without rs_jsonapi, no MCP endpoint")
}
# These bindings are included by LuaCore.cpp and must not be linked twice.
OTHER_FILES += \
Lua/LuaToRS.cpp \
Lua/LuaToRSPeers.cpp \
Lua/LuaToRSServerConfig.cpp \
Lua/LuaToRSDiscovery.cpp \
Lua/LuaToRSChat.cpp \
Lua/LuaToRSFile.cpp \
Lua/LuaToRSIdentity.cpp \
Lua/LuaToRSMail.cpp \
Lua/LuaToRSServices.cpp
FORMS += \
gui/Lua4RSWidget.ui \
gui/Lua4RSConfig.ui
TARGET = Lua4RS
RESOURCES += \
Lua4RS_images.qrc \
Lua4RS_lang.qrc \
scripts/examples/examples.qrc
TRANSLATIONS += \
lang/Lua4RS_en.ts \
lang/Lua4RS_de.ts
XUP.QT_VERSION = Qt System (4.8.1)