-
Notifications
You must be signed in to change notification settings - Fork 1
/
QSanguosha.pro
421 lines (392 loc) · 11.7 KB
/
QSanguosha.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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# -------------------------------------------------
# Project created by QtCreator 2010-06-13T04:26:52
# -------------------------------------------------
TARGET = TouhouKeireikaku
QT += network widgets
TEMPLATE = app
CONFIG += audio
win32: QT += winextras
CONFIG += c++11
CONFIG += lua
SOURCES += \
swig/sanguosha_wrap.cxx \
src/client/aux-skills.cpp \
src/client/client.cpp \
src/client/clientplayer.cpp \
src/client/clientstruct.cpp \
src/core/banpair.cpp \
src/core/card.cpp \
src/core/engine.cpp \
src/core/general.cpp \
src/core/json.cpp \
src/core/lua-wrapper.cpp \
src/core/player.cpp \
src/core/protocol.cpp \
src/core/record-analysis.cpp \
src/core/RoomState.cpp \
src/core/settings.cpp \
src/core/skill.cpp \
src/core/structs.cpp \
src/core/util.cpp \
src/core/WrappedCard.cpp \
src/dialog/AboutUs.cpp \
src/dialog/cardoverview.cpp \
src/dialog/choosegeneraldialog.cpp \
src/dialog/configdialog.cpp \
src/dialog/connectiondialog.cpp \
src/dialog/customassigndialog.cpp \
src/dialog/distanceviewdialog.cpp \
src/dialog/generaloverview.cpp \
src/dialog/mainwindow.cpp \
src/dialog/playercarddialog.cpp \
src/dialog/roleassigndialog.cpp \
src/dialog/logindialog.cpp \
src/dialog/userinfodialog.cpp \
src/dialog/rewardoverview.cpp \
src/package/exppattern.cpp \
src/package/maneuvering.cpp \
src/package/package.cpp \
src/package/standard-cards.cpp \
src/package/standard.cpp \
src/package/thstandard.cpp \
src/package/special1v1.cpp \
src/scenario/miniscenarios.cpp \
src/scenario/scenario.cpp \
src/scenario/scenerule.cpp \
src/server/ai.cpp \
src/server/gamerule.cpp \
src/server/generalselector.cpp \
src/server/room.cpp \
src/server/roomthread.cpp \
src/server/roomthread1v1.cpp \
src/server/roomthread3v3.cpp \
src/server/roomthreadxmode.cpp \
src/server/server.cpp \
src/server/serverplayer.cpp \
src/ui/bubblechatbox.cpp \
src/ui/button.cpp \
src/ui/cardcontainer.cpp \
src/ui/carditem.cpp \
src/ui/chatwidget.cpp \
src/ui/clientlogbox.cpp \
src/ui/dashboard.cpp \
src/ui/GenericCardContainerUI.cpp \
src/ui/graphicspixmaphoveritem.cpp \
src/ui/heroskincontainer.cpp \
src/ui/indicatoritem.cpp \
src/ui/magatamasItem.cpp \
src/ui/photo.cpp \
src/ui/pixmapanimation.cpp \
src/ui/qsanbutton.cpp \
src/ui/QSanSelectableItem.cpp \
src/ui/rolecombobox.cpp \
src/ui/roomscene.cpp \
src/ui/sanfreetypefont.cpp \
src/ui/sanshadowtextfont.cpp \
src/ui/sansimpletextfont.cpp \
src/ui/sanuiutils.cpp \
src/ui/SkinBank.cpp \
src/ui/skinitem.cpp \
src/ui/sprite.cpp \
src/ui/startscene.cpp \
src/ui/TablePile.cpp \
src/ui/TimedProgressBar.cpp \
src/ui/uiUtils.cpp \
src/ui/window.cpp \
src/util/detector.cpp \
src/util/nativesocket.cpp \
src/util/recorder.cpp \
src/util/downloadmanager.cpp \
src/util/textprogressbar.cpp \
src/main.cpp \
src/ui/choosetriggerorderbox.cpp \
src/ui/graphicsbox.cpp \
src/ui/lightboxanimation.cpp \
src/package/hegemony-cards.cpp
HEADERS += \
src/client/aux-skills.h \
src/client/client.h \
src/client/clientplayer.h \
src/client/clientstruct.h \
src/core/audio.h \
src/core/banpair.h \
src/core/card.h \
src/core/compiler-specific.h \
src/core/engine.h \
src/core/general.h \
src/core/json.h \
src/core/lua-wrapper.h \
src/core/player.h \
src/core/protocol.h \
src/core/record-analysis.h \
src/core/RoomState.h \
src/core/settings.h \
src/core/skill.h \
src/core/structs.h \
src/core/util.h \
src/core/WrappedCard.h \
src/dialog/AboutUs.h \
src/dialog/cardoverview.h \
src/dialog/choosegeneraldialog.h \
src/dialog/configdialog.h \
src/dialog/connectiondialog.h \
src/dialog/customassigndialog.h \
src/dialog/distanceviewdialog.h \
src/dialog/generaloverview.h \
src/dialog/mainwindow.h \
src/dialog/playercarddialog.h \
src/dialog/roleassigndialog.h \
src/dialog/logindialog.h \
src/dialog/userinfodialog.h \
src/dialog/rewardoverview.h \
src/package/exppattern.h \
src/package/maneuvering.h \
src/package/package.h \
src/package/standard-equips.h \
src/package/standard.h \
src/package/thstandard.h \
src/package/special1v1.h \
src/scenario/miniscenarios.h \
src/scenario/scenario.h \
src/scenario/scenerule.h \
src/server/ai.h \
src/server/gamerule.h \
src/server/generalselector.h \
src/server/room.h \
src/server/roomthread.h \
src/server/roomthread1v1.h \
src/server/roomthread3v3.h \
src/server/roomthreadxmode.h \
src/server/server.h \
src/server/serverplayer.h \
src/ui/bubblechatbox.h \
src/ui/button.h \
src/ui/cardcontainer.h \
src/ui/carditem.h \
src/ui/chatwidget.h \
src/ui/clientlogbox.h \
src/ui/dashboard.h \
src/ui/GenericCardContainerUI.h \
src/ui/graphicspixmaphoveritem.h \
src/ui/heroskincontainer.h \
src/ui/indicatoritem.h \
src/ui/magatamasItem.h \
src/ui/photo.h \
src/ui/pixmapanimation.h \
src/ui/qsanbutton.h \
src/ui/QSanSelectableItem.h \
src/ui/rolecombobox.h \
src/ui/roomscene.h \
src/ui/sanfreetypefont.h \
src/ui/sanshadowtextfont.h \
src/ui/sansimpletextfont.h \
src/ui/sanuiutils.h \
src/ui/SkinBank.h \
src/ui/skinitem.h \
src/ui/sprite.h \
src/ui/startscene.h \
src/ui/TablePile.h \
src/ui/TimedProgressBar.h \
src/ui/uiUtils.h \
src/ui/window.h \
src/util/detector.h \
src/util/nativesocket.h \
src/util/recorder.h \
src/util/socket.h \
src/util/downloadmanager.h \
src/util/textprogressbar.h \
src/util/encryptor.h \
src/ui/choosetriggerorderbox.h \
src/ui/graphicsbox.h \
src/ui/lightboxanimation.h \
src/package/hegemony-cards.h
FORMS += \
src/dialog/cardoverview.ui \
src/dialog/logindialog.ui \
src/dialog/configdialog.ui \
src/dialog/userinfodialog.ui \
src/dialog/connectiondialog.ui \
src/dialog/generaloverview.ui \
src/dialog/mainwindow.ui \
src/dialog/rewardoverview.ui
INCLUDEPATH += include
INCLUDEPATH += src/client
INCLUDEPATH += src/core
INCLUDEPATH += src/dialog
INCLUDEPATH += src/package
INCLUDEPATH += src/scenario
INCLUDEPATH += src/server
INCLUDEPATH += src/ui
INCLUDEPATH += src/util
INCLUDEPATH += src/jsoncpp/include
INCLUDEPATH += C:/OpenSSL-Win32/include
win32{
RC_FILE += resource/icon.rc
}
macx{
ICON = resource/icon/sgs.icns
}
LIBS += -L.
win32-msvc*{
DEFINES += _CRT_SECURE_NO_WARNINGS
!contains(QMAKE_HOST.arch, x86_64) {
DEFINES += WIN32
LIBS += -L"$$_PRO_FILE_PWD_/lib/win/x86"
} else {
DEFINES += WIN64
LIBS += -L"$$_PRO_FILE_PWD_/lib/win/x64"
}
CONFIG(debug, debug|release) {
!winrt:INCLUDEPATH += include/vld
} else {
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
DEFINES += USE_BREAKPAD
SOURCES += src/breakpad/client/windows/crash_generation/client_info.cc \
src/breakpad/client/windows/crash_generation/crash_generation_client.cc \
src/breakpad/client/windows/crash_generation/crash_generation_server.cc \
src/breakpad/client/windows/crash_generation/minidump_generator.cc \
src/breakpad/client/windows/handler/exception_handler.cc \
src/breakpad/common/windows/guid_string.cc
HEADERS += src/breakpad/client/windows/crash_generation/client_info.h \
src/breakpad/client/windows/crash_generation/crash_generation_client.h \
src/breakpad/client/windows/crash_generation/crash_generation_server.h \
src/breakpad/client/windows/crash_generation/minidump_generator.h \
src/breakpad/client/windows/handler/exception_handler.h \
src/breakpad/common/windows/guid_string.h
INCLUDEPATH += src/breakpad
INCLUDEPATH += src/breakpad/client/windows
}
}
win32-g++{
DEFINES += WIN32
LIBS += -L"$$_PRO_FILE_PWD_/lib/win/MinGW"
DEFINES += GPP
}
winrt{
DEFINES += _CRT_SECURE_NO_WARNINGS
DEFINES += WINRT
!winphone {
LIBS += -L"$$_PRO_FILE_PWD_/lib/winrt/x64"
} else {
DEFINES += WINPHONE
contains($$QMAKESPEC, arm): LIBS += -L"$$_PRO_FILE_PWD_/lib/winphone/arm"
else : LIBS += -L"$$_PRO_FILE_PWD_/lib/winphone/x86"
}
}
macx{
DEFINES += MAC
LIBS += -L"$$_PRO_FILE_PWD_/lib/mac/lib"
}
ios{
DEFINES += IOS
CONFIG(iphonesimulator){
LIBS += -L"$$_PRO_FILE_PWD_/lib/ios/simulator/lib"
}
else {
LIBS += -L"$$_PRO_FILE_PWD_/lib/ios/device/lib"
}
}
linux{
android{
DEFINES += ANDROID
ANDROID_LIBPATH = $$_PRO_FILE_PWD_/lib/android/$$ANDROID_ARCHITECTURE/lib
LIBS += -L"$$ANDROID_LIBPATH"
}
else {
DEFINES += LINUX
!contains(QMAKE_HOST.arch, x86_64) {
LIBS += -L"$$_PRO_FILE_PWD_/lib/linux/x86"
QMAKE_LFLAGS += -Wl,--rpath=lib/linux/x86
}
else {
LIBS += -L"$$_PRO_FILE_PWD_/lib/linux/x64"
QMAKE_LFLAGS += -Wl,--rpath=lib/linux/x64
}
}
}
CONFIG(audio){
DEFINES += AUDIO_SUPPORT
INCLUDEPATH += include/fmod
CONFIG(debug, debug|release): LIBS += -lfmodexL
else:LIBS += -lfmodex
SOURCES += src/core/audio.cpp
android{
CONFIG(debug, debug|release):ANDROID_EXTRA_LIBS += $$ANDROID_LIBPATH/libfmodexL.so
else:ANDROID_EXTRA_LIBS += $$ANDROID_LIBPATH/libfmodex.so
}
}
CONFIG(lua){
android:DEFINES += "\"getlocaledecpoint()='.'\""
SOURCES += \
src/lua/lzio.c \
src/lua/lvm.c \
src/lua/lundump.c \
src/lua/ltm.c \
src/lua/ltablib.c \
src/lua/ltable.c \
src/lua/lstrlib.c \
src/lua/lstring.c \
src/lua/lstate.c \
src/lua/lparser.c \
src/lua/loslib.c \
src/lua/lopcodes.c \
src/lua/lobject.c \
src/lua/loadlib.c \
src/lua/lmem.c \
src/lua/lmathlib.c \
src/lua/llex.c \
src/lua/liolib.c \
src/lua/linit.c \
src/lua/lgc.c \
src/lua/lfunc.c \
src/lua/ldump.c \
src/lua/ldo.c \
src/lua/ldebug.c \
src/lua/ldblib.c \
src/lua/lctype.c \
src/lua/lcorolib.c \
src/lua/lcode.c \
src/lua/lbitlib.c \
src/lua/lbaselib.c \
src/lua/lauxlib.c \
src/lua/lapi.c
HEADERS += \
src/lua/lzio.h \
src/lua/lvm.h \
src/lua/lundump.h \
src/lua/lualib.h \
src/lua/luaconf.h \
src/lua/lua.hpp \
src/lua/lua.h \
src/lua/ltm.h \
src/lua/ltable.h \
src/lua/lstring.h \
src/lua/lstate.h \
src/lua/lparser.h \
src/lua/lopcodes.h \
src/lua/lobject.h \
src/lua/lmem.h \
src/lua/llimits.h \
src/lua/llex.h \
src/lua/lgc.h \
src/lua/lfunc.h \
src/lua/ldo.h \
src/lua/ldebug.h \
src/lua/lctype.h \
src/lua/lcode.h \
src/lua/lauxlib.h \
src/lua/lapi.h
INCLUDEPATH += src/lua
}
!build_pass{
system("lrelease $$_PRO_FILE_PWD_/builds/sanguosha.ts -qm $$_PRO_FILE_PWD_/sanguosha.qm")
SWIG_bin = "swig"
contains(QMAKE_HOST.os, "Windows"): SWIG_bin = "$$_PRO_FILE_PWD_/tools/swig/swig.exe"
system("$$SWIG_bin -c++ -lua $$_PRO_FILE_PWD_/swig/sanguosha.i")
}
TRANSLATIONS += builds/sanguosha.ts
CONFIG(debug, debug|release): LIBS += -lfreetype_D
else:LIBS += -lfreetype
INCLUDEPATH += $$_PRO_FILE_PWD_/include/freetype
DEPENDPATH += $$_PRO_FILE_PWD_/include/freetype
ANDROID_PACKAGE_SOURCE_DIR = $$_PRO_FILE_PWD_/resource/android