/
ui.pro
288 lines (253 loc) · 7.2 KB
/
ui.pro
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
#-------------------------------------------------
#
# Project created by QtCreator 2011-05-12T11:34:33
#
#-------------------------------------------------
QT += core gui xml network websockets
CONFIG += silent c++17
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat
USE_SCINTILLAEDIT=y
LUA_ENGINE=$$(LUA_ENGINE)
LUA_ENGINE=luau
isEmpty(LUA_ENGINE): LUA_ENGINE=lua
equals(LUA_ENGINE,luau): LUA_INCLUDE=../luau/VM/include ../luau/VM/src ../luau/Ast/include ../luau/Compiler/include ../luau/Analysis/include
equals(LUA_ENGINE,lua): LUA_INCLUDE=../lua/src
DEFINES+= LUAU_ENABLE_ASSERT
CONFIG(debug, debug|release){
_CONFIG_ = debug
} else {
_CONFIG_ = release
}
defineReplace(expand) {
names = $$1
prefix=$$2
suffix=$$3
expanded =
for(name, names) {
expanded+= $${prefix}$${name}$${suffix}
}
return ($$expanded)
}
equals(LUA_ENGINE,luau): LUA_SOURCES =\
$$expand(lapi laux lbaselib lbitlib lbuiltins lcorolib ldblib ldebug ldo lfunc lgc lgcdebug linit lint64lib liolib lmathlib lmem lnumprint lobject loslib lperf lstate lstring lstrlib \
ltable ltablib ltm ludata lutf8lib lvmexecute lvmload lvmutils,../luau/VM/src/,.cpp) \
$$expand(lcode Compiler BytecodeBuilder PseudoCode,../luau/Compiler/src/,.cpp) \
$$expand(AstQuery Autocomplete BuiltinDefinitions Config EmbeddedBuiltinDefinitions Error Frontend IostreamHelpers JsonEncoder Linter LValue Module Quantify RequireTracer \
Scope Substitution Symbol ToDot TopoSortStatements Tostring Transpiler TxnLog TypeAttach TypedAllocator TypeInfer TypePack TypeUtils TypeVar Unifiable Unifier,../luau/Analysis/src/,.cpp) \
$$expand(Ast Confusables Lexer Location Parser StringUtils TimeTrace,../luau/Ast/src/,.cpp)
equals(LUA_ENGINE,lua): LUA_SOURCES =\
../lua/src/lapi.c \
../lua/src/lauxlib.c \
../lua/src/lcode.c \
../lua/src/ldebug.c \
../lua/src/ldo.c \
../lua/src/ldump.c \
../lua/src/lfunc.c \
../lua/src/llex.c \
../lua/src/lmem.c \
../lua/src/lobject.c \
../lua/src/lopcodes.c \
../lua/src/lparser.c \
../lua/src/lstate.c \
../lua/src/lstring.c \
../lua/src/ltable.c \
../lua/src/ltm.c \
../lua/src/lundump.c \
../lua/src/lvm.c \
../lua/src/lzio.c \
../lua/src/lgc.c \
../lua/src/linit.c \
../lua/src/lbaselib.c \
../lua/src/ldblib.c \
../lua/src/liolib.c \
../lua/src/lmathlib.c \
../lua/src/loslib.c \
../lua/src/ltablib.c \
../lua/src/lstrlib.c \
../lua/src/lutf8lib.c \
../lua/src/lint64.c \
../lua/src/loadlib.c
#macx {
#CONFIG += release x86 x86_64
#}
win32 {
RC_FILE = ui.rc
}
macx {
ICON = "gideros.icns"
#QT += macextras
}
win32 {
TARGET = "GiderosStudio"
}
debug_in_place{
DESTDIR = ../Build.Win
}
macx {
TARGET = "Gideros Studio"
}
unix:!macx {
TARGET = "GiderosStudio"
QMAKE_CXXFLAGS += -std=gnu++0x
}
TEMPLATE = app
INCLUDEPATH += \
"../iconlibrary" \
"../libpreviewwidget"\
"../libnetwork"\
"../libgid/src/qt"\
$$LUA_INCLUDE \
"../libpvrt" \
"../libgid/include" \
"../libgfile" \
"../libgideros"
SOURCES += \
main.cpp\
mainwindow.cpp\
librarywidget.cpp\
outlinewidget.cpp\
giderosnetworkclient2.cpp\
finddialog.cpp\
replacedialog.cpp\
findinfilesdialog.cpp\
newprojectdialog.cpp\
fileassociationsdialog.cpp\
fileassociationeditdialog.cpp\
pluginselector.cpp \
plugineditor.cpp \
playersettingsdialog.cpp\
gotolinedialog.cpp\
savechangesdialog.cpp\
librarytreewidget.cpp\
codedependenciesdialog.cpp\
addnewfiledialog.cpp\
"../libpreviewwidget/previewwidget.cpp"\
"../iconlibrary/iconlibrary.cpp"\
"../libnetwork/bytebuffer.cpp" \
exportprojectdialog.cpp \
exportprogress.cpp \
aboutdialog.cpp \
projectpropertiesdialog.cpp \
startpagewidget2.cpp \
recentprojectswidget.cpp \
exampleprojectswidget.cpp \
projectproperties.cpp \
propertyeditingtable.cpp \
mdiarea.cpp \
mdisubwindow.cpp \
dependencygraph.cpp \
addons.cpp \
qtutils.cpp \
preferencesdialog.cpp \
profilerreport.cpp
equals(USE_SCINTILLAEDIT,y): SOURCES+= textedit.cpp
equals(USE_SCINTILLAEDIT,y): DEFINES+= USE_SCINTILLAEDIT
equals(USE_SCINTILLAEDIT,n): SOURCES+= textedit_qs.cpp
SOURCES += $$files(../libpvrt/*.cpp)
SOURCES += "../libgid/src/platformutil.cpp"\
"../libgid/src/aes.c" \
"../libgid/src/md5.c"
HEADERS += \
mainwindow.h\
librarywidget.h\
giderosnetworkclient2.h\
finddialog.h\
replacedialog.h\
findinfilesdialog.h\
newprojectdialog.h\
fileassociationsdialog.h\
fileassociationeditdialog.h\
textedit.h\
playersettingsdialog.h\
gotolinedialog.h\
savechangesdialog.h\
librarytreewidget.h\
outlinewidget.h\
codedependenciesdialog.h\
addnewfiledialog.h\
"../libpreviewwidget/previewwidget.h" \
exportprojectdialog.h \
exportprogress.h \
aboutdialog.h \
projectpropertiesdialog.h \
projectproperties.h \
propertyeditingtable.h \
startpagewidget2.h \
recentprojectswidget.h \
exampleprojectswidget.h \
mdiarea.h \
mdisubwindow.h \
pluginselector.h \
plugineditor.h \
dependencygraph.h \
addons.h \
qtutils.h \
preferencesdialog.h \
settingskeys.h \
profilerreport.h
FORMS += mainwindow.ui \
savechangesdialog.ui \
replacedialog.ui \
playersettingsdialog.ui \
newprojectdialog.ui \
librarywidget.ui \
gotolinedialog.ui \
findreplacedialog.ui \
findinfilesdialog.ui \
finddialog.ui \
fileassociationsdialog.ui \
fileassociationeditdialog.ui \
codedependenciesdialog.ui \
addnewfiledialog.ui \
exportprojectdialog.ui \
exportprogress.ui \
aboutdialog.ui \
projectpropertiesdialog.ui \
pluginselector.ui \
plugineditor.ui \
startpagewidget2.ui \
preferencesdialog.ui
DEFINES += DESKTOP_TOOLS
SOURCES += $$LUA_SOURCES
SOURCES += \
../plugins/json/source/strbuf.c \
../plugins/json/source/fpconv.c \
../plugins/json/source/lua_cjson.c
HEADERS += \
../plugins/json/source/strbuf.h \
../plugins/json/source/fpconv.h
win32 {
LIBS += -liphlpapi
}
macx {
LIBS += -framework CoreFoundation
LIBS += -framework IOKit
INCLUDEPATH += $$[QT_INSTALL_HEADERS]
LIBS += -L$$[QT_INSTALL_LIBS]
}
equals(USE_SCINTILLAEDIT,y): LIBS += -L"../scintilla/qt/ScintillaEdit/$$_CONFIG_" -L"../lexilla/src/$$_CONFIG_"
win32 {
LIBS += -L$$[QT_INSTALL_LIBS]
CONFIG(debug, debug|release) {
equals(USE_SCINTILLAEDIT,y): LIBS += -lScintillaEdit5 -lLexilla5
equals(USE_SCINTILLAEDIT,n): LIBS += -lqscintilla2_qt$${QT_MAJOR_VERSION}d
}
else
{
equals(USE_SCINTILLAEDIT,n): LIBS += -lqscintilla2_qt$${QT_MAJOR_VERSION}
equals(USE_SCINTILLAEDIT,y): LIBS += -lScintillaEdit5 -lLexilla5
}
}
macx {
equals(USE_SCINTILLAEDIT,n): LIBS += -lqscintilla2_qt$${QT_MAJOR_VERSION}
equals(USE_SCINTILLAEDIT,y): LIBS += -lScintillaEdit -lLexilla
}
unix:!macx {
equals(USE_SCINTILLAEDIT,n): LIBS += -lqscintilla2_qt$${QT_MAJOR_VERSION}
equals(USE_SCINTILLAEDIT,y): LIBS += -lScintillaEdit -lLexilla
#LIBS += -lqt5scintilla2 #For PI ?
QMAKE_LFLAGS += '-Wl,-rpath,\'\$$ORIGIN\''
}
RESOURCES += \
ui.qrc