-
Notifications
You must be signed in to change notification settings - Fork 64
/
cubiomes-viewer.pro
252 lines (231 loc) · 6.57 KB
/
cubiomes-viewer.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
#-------------------------------------------------
#
# Project created by QtCreator 2020-07-11T11:37:33
#
#-------------------------------------------------
QT += core widgets
# uncomment to override the profile compiler
#QMAKE_CC = clang
#QMAKE_CXX = clang++
CHARSET = -finput-charset=UTF-8 -fexec-charset=UTF-8
QMAKE_CFLAGS = $$CHARSET -fwrapv -DSTRUCT_CONFIG_OVERRIDE=1
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
QMAKE_CXXFLAGS_RELEASE *= -O3 -g3
greaterThan(QT_MAJOR_VERSION, 5) {
QMAKE_CXXFLAGS += -std=gnu++17
DEFINES += QT_DISABLE_DEPRECATED_UP_TO=0x050F00
} else {
QMAKE_CXXFLAGS += -std=gnu++11
equals(QMAKE_CXX, g++) {
QMAKE_CXXFLAGS += -Wno-deprecated-copy
}
}
win32: {
CONFIG += static_gnu
# thank you nullprogram for dealing with the Windows UTF-16 nonsense
LIBWINSANE = $$PWD/src/libwinsane
libwinsane.target = libwinsane
libwinsane.output = $$LIBWINSANE/libwinsane.o
libwinsane.commands = $(MAKE) -C $$LIBWINSANE -f $$LIBWINSANE/Makefile
QMAKE_EXTRA_TARGETS += libwinsane
PRE_TARGETDEPS += libwinsane
LIBS += $$LIBWINSANE/libwinsane.o
} else {
DEFINES += "LUA_USE_POSIX=1"
}
wasm: {
DEFINES += "WASM=1"
#QT_WASM_SOURCE_MAP=1
QT_WASM_INITIAL_MEMORY = 256MB
QT_WASM_PTHREAD_POOL_SIZE = 32
CONFIG(debug, debug|release): {
#QMAKE_CFLAGS += -O3 -gsource-map
}
}
#CONFIG += sanitizer
#CONFIG += sanitize_undefined
#CONFIG += sanitize_thread
static_gnu: {
LIBS += -static -static-libgcc -static-libstdc++
}
CONFIG(debug, debug|release): {
CUTARGET = debug
} else {
CUTARGET = release
}
# compile cubiomes
CUPATH = $$PWD/cubiomes
QMAKE_PRE_LINK += $(MAKE) -C $$CUPATH -f $$CUPATH/makefile CC=\"$$QMAKE_CC\" CFLAGS=\"$(CFLAGS) $$QMAKE_CFLAGS\" $$CUTARGET
QMAKE_CLEAN += $$CUPATH/*.o $$CUPATH/libcubiomes.a
LIBS += $$CUPATH/libcubiomes.a -lm
LUAPATH = $$PWD/lua/src
TARGET = cubiomes-viewer
SOURCES += \
$$LUAPATH/lapi.c \
$$LUAPATH/lauxlib.c \
$$LUAPATH/lbaselib.c \
$$LUAPATH/lcode.c \
$$LUAPATH/lcorolib.c \
$$LUAPATH/lctype.c \
$$LUAPATH/ldblib.c \
$$LUAPATH/ldebug.c \
$$LUAPATH/ldo.c \
$$LUAPATH/ldump.c \
$$LUAPATH/lfunc.c \
$$LUAPATH/lgc.c \
$$LUAPATH/linit.c \
$$LUAPATH/liolib.c \
$$LUAPATH/llex.c \
$$LUAPATH/lmathlib.c \
$$LUAPATH/lmem.c \
$$LUAPATH/loadlib.c \
$$LUAPATH/lobject.c \
$$LUAPATH/lopcodes.c \
$$LUAPATH/loslib.c \
$$LUAPATH/lparser.c \
$$LUAPATH/lstate.c \
$$LUAPATH/lstring.c \
$$LUAPATH/lstrlib.c \
$$LUAPATH/ltable.c \
$$LUAPATH/ltablib.c \
$$LUAPATH/ltm.c \
$$LUAPATH/lundump.c \
$$LUAPATH/lutf8lib.c \
$$LUAPATH/lvm.c \
$$LUAPATH/lzio.c \
src/aboutdialog.cpp \
src/biomecolordialog.cpp \
src/conditiondialog.cpp \
src/config.cpp \
src/configdialog.cpp \
src/extgendialog.cpp \
src/exportdialog.cpp \
src/formconditions.cpp \
src/formgen48.cpp \
src/formsearchcontrol.cpp \
src/gotodialog.cpp \
src/headless.cpp \
src/maptoolsdialog.cpp \
src/message.cpp \
src/presetdialog.cpp \
src/layerdialog.cpp \
src/mapview.cpp \
src/rangedialog.cpp \
src/scripts.cpp \
src/search.cpp \
src/searchthread.cpp \
src/tabbiomes.cpp \
src/tablocations.cpp \
src/tabstructures.cpp \
src/mainwindow.cpp \
src/main.cpp \
src/util.cpp \
src/widgets.cpp \
src/world.cpp
HEADERS += \
$$CUPATH/finders.h \
$$CUPATH/generator.h \
$$CUPATH/layers.h \
$$CUPATH/biomes.h \
$$CUPATH/quadbase.h \
$$CUPATH/util.h \
$$LUAPATH/lapi.h \
$$LUAPATH/lauxlib.h \
$$LUAPATH/lcode.h \
$$LUAPATH/lctype.h \
$$LUAPATH/ldebug.h \
$$LUAPATH/ldo.h \
$$LUAPATH/lfunc.h \
$$LUAPATH/lgc.h \
$$LUAPATH/ljumptab.h \
$$LUAPATH/llex.h \
$$LUAPATH/llimits.h \
$$LUAPATH/lmem.h \
$$LUAPATH/lobject.h \
$$LUAPATH/lopcodes.h \
$$LUAPATH/lopnames.h \
$$LUAPATH/lparser.h \
$$LUAPATH/lprefix.h \
$$LUAPATH/lstate.h \
$$LUAPATH/lstring.h \
$$LUAPATH/ltable.h \
$$LUAPATH/ltm.h \
$$LUAPATH/lua.h \
$$LUAPATH/lua.hpp \
$$LUAPATH/luaconf.h \
$$LUAPATH/lualib.h \
$$LUAPATH/lundump.h \
$$LUAPATH/lvm.h \
$$LUAPATH/lzio.h \
src/aboutdialog.h \
src/biomecolordialog.h \
src/conditiondialog.h \
src/config.h \
src/configdialog.h \
src/extgendialog.h \
src/exportdialog.h \
src/formconditions.h \
src/formgen48.h \
src/formsearchcontrol.h \
src/gotodialog.h \
src/headless.h \
src/maptoolsdialog.h \
src/message.h \
src/presetdialog.h \
src/layerdialog.h \
src/mapview.h \
src/qzipwriter.h \
src/rangedialog.h \
src/scripts.h \
src/search.h \
src/searchthread.h \
src/seedtables.h \
src/tabbiomes.h \
src/tablocations.h \
src/tabstructures.h \
src/mainwindow.h \
src/util.h \
src/widgets.h \
src/world.h
FORMS += \
src/aboutdialog.ui \
src/biomecolordialog.ui \
src/conditiondialog.ui \
src/configdialog.ui \
src/extgendialog.ui \
src/exportdialog.ui \
src/formconditions.ui \
src/formgen48.ui \
src/formsearchcontrol.ui \
src/gotodialog.ui \
src/maptoolsdialog.ui \
src/presetdialog.ui \
src/layerdialog.ui \
src/mainwindow.ui \
src/rangedialog.ui \
src/tabbiomes.ui \
src/tablocations.ui \
src/tabstructures.ui
RESOURCES += \
rc/icons.qrc \
rc/style.qrc \
rc/examples.qrc \
rc/lang.qrc \
rc/qh.qrc
# ----- translations (pluralization) -----
TRANSLATIONS += \
rc/lang/en_US.ts \
rc/lang/de_DE.ts \
rc/lang/zh_CN.ts
# enable network features with: qmake CONFIG+=with_network
with_network: {
QT += network
DEFINES += "WITH_UPDATER=1"
SOURCES += src/updater.cpp
HEADERS += src/updater.h
}
# enable dbus features with: qmake CONFIG+=with_dbus
with_dbus: {
QT += dbus
DEFINES += "WITH_DBUS=1"
}