forked from Mogara/QSanguosha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QSanguosha.pro
549 lines (516 loc) · 15.9 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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
# -------------------------------------------------
# Project created by QtCreator 2010-06-13T04:26:52
# -------------------------------------------------
TARGET = QSanguosha
QT += network widgets sql
!winrt:QT += declarative
TEMPLATE = app
CONFIG += audio
CONFIG += lua
#CONFIG += lua53
SOURCES += \
src/main.cpp \
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/lua-wrapper.cpp \
src/core/player.cpp \
src/core/protocol.cpp \
src/core/record-analysis.cpp \
src/core/roomconfig.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/core/version.cpp \
src/core/json.cpp \
src/dialog/aboutus.cpp \
src/dialog/cardeditor.cpp \
src/dialog/cardoverview.cpp \
src/dialog/configdialog.cpp \
src/dialog/connectiondialog.cpp \
src/dialog/customassigndialog.cpp \
src/dialog/distanceviewdialog.cpp \
src/dialog/freechoosedialog.cpp \
src/dialog/generaloverview.cpp \
src/dialog/mainwindow.cpp \
src/dialog/rule-summary.cpp \
src/dialog/updatechecker.cpp \
src/dialog/udpdetectordialog.cpp \
src/dialog/avatarmodel.cpp \
src/dialog/generalmodel.cpp \
src/dialog/serverdialog.cpp \
src/dialog/flatdialog.cpp \
src/dialog/banipdialog.cpp \
src/dialog/banlistdialog.cpp \
src/package/exppattern.cpp \
src/package/formation.cpp \
src/package/jiange-defense.cpp \
src/package/momentum.cpp \
src/package/standard.cpp \
src/package/standard-basics.cpp \
src/package/standard-equips.cpp \
src/package/standard-tricks.cpp \
src/package/standard-qun-generals.cpp \
src/package/standard-shu-generals.cpp \
src/package/standard-wu-generals.cpp \
src/package/standard-wei-generals.cpp \
src/package/standard-package.cpp \
src/package/strategic-advantage.cpp \
src/package/package.cpp \
src/scenario/miniscenarios.cpp \
src/scenario/scenario.cpp \
src/scenario/scenerule.cpp \
src/scenario/jiange-defense-scenario.cpp \
src/server/ai.cpp \
src/server/gamerule.cpp \
src/server/generalselector.cpp \
src/server/room.cpp \
src/server/roomthread.cpp \
src/server/serverplayer.cpp \
src/server/server.cpp \
src/server/server-lobby.cpp \
src/server/server-room.cpp \
src/server/lobbyplayer.cpp \
src/ui/button.cpp \
src/ui/cardcontainer.cpp \
src/ui/carditem.cpp \
src/ui/chatwidget.cpp \
src/ui/choosegeneralbox.cpp \
src/ui/clientlogbox.cpp \
src/ui/dashboard.cpp \
src/ui/genericcardcontainerui.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/skinbank.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/ui/chooseoptionsbox.cpp \
src/ui/choosetriggerorderbox.cpp \
src/ui/graphicsbox.cpp \
src/ui/guanxingbox.cpp \
src/ui/title.cpp \
src/ui/bubblechatbox.cpp \
src/ui/stylehelper.cpp \
src/ui/playercardbox.cpp \
src/ui/graphicspixmaphoveritem.cpp \
src/ui/heroskincontainer.cpp \
src/ui/skinitem.cpp \
src/ui/lobbyscene.cpp \
src/ui/tile.cpp \
src/util/detector.cpp \
src/util/nativesocket.cpp \
src/util/recorder.cpp \
swig/sanguosha_wrap.cxx
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/lua-wrapper.h \
src/core/namespace.h \
src/core/player.h \
src/core/protocol.h \
src/core/record-analysis.h \
src/core/roomconfig.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/core/version.h \
src/core/json.h \
src/dialog/aboutus.h \
src/dialog/cardeditor.h \
src/dialog/cardoverview.h \
src/dialog/configdialog.h \
src/dialog/connectiondialog.h \
src/dialog/customassigndialog.h \
src/dialog/distanceviewdialog.h \
src/dialog/freechoosedialog.h \
src/dialog/generaloverview.h \
src/dialog/mainwindow.h \
src/dialog/rule-summary.h \
src/dialog/updatechecker.h \
src/dialog/udpdetectordialog.h \
src/dialog/avatarmodel.h \
src/dialog/generalmodel.h \
src/dialog/serverdialog.h \
src/dialog/flatdialog.h \
src/dialog/banipdialog.h \
src/dialog/banlistdialog.h \
src/package/exppattern.h \
src/package/formation.h \
src/package/jiange-defense.h \
src/package/momentum.h \
src/package/package.h \
src/package/standard.h \
src/package/standard-basics.h \
src/package/standard-equips.h \
src/package/standard-tricks.h \
src/package/standard-qun-generals.h \
src/package/standard-shu-generals.h \
src/package/standard-wu-generals.h \
src/package/standard-wei-generals.h \
src/package/strategic-advantage.h \
src/package/standard-package.h \
src/scenario/miniscenarios.h \
src/scenario/scenario.h \
src/scenario/scenerule.h \
src/scenario/jiange-defense-scenario.h \
src/server/ai.h \
src/server/gamerule.h \
src/server/generalselector.h \
src/server/room.h \
src/server/roomthread.h \
src/server/serverplayer.h \
src/server/server.h \
src/server/lobbyplayer.h \
src/ui/button.h \
src/ui/cardcontainer.h \
src/ui/carditem.h \
src/ui/chatwidget.h \
src/ui/choosegeneralbox.h \
src/ui/clientlogbox.h \
src/ui/dashboard.h \
src/ui/genericcardcontainerui.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/skinbank.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/ui/chooseoptionsbox.h \
src/ui/choosetriggerorderbox.h \
src/ui/graphicsbox.h \
src/ui/guanxingbox.h \
src/ui/title.h \
src/ui/bubblechatbox.h \
src/ui/stylehelper.h \
src/ui/playercardbox.h \
src/ui/graphicspixmaphoveritem.h \
src/ui/heroskincontainer.h \
src/ui/skinitem.h \
src/ui/lobbyscene.h \
src/ui/tile.h \
src/util/detector.h \
src/util/nativesocket.h \
src/util/recorder.h \
src/util/socket.h
FORMS += \
src/dialog/cardoverview.ui \
src/dialog/configdialog.ui \
src/dialog/connectiondialog.ui \
src/dialog/generaloverview.ui \
src/dialog/mainwindow.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
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/core/exceptionhandler.cpp \
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/core/exceptionhandler.h \
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
}
}
win32-g++{
DEFINES += WIN32
LIBS += -L"$$_PRO_FILE_PWD_/lib/win/MinGW"
DEFINES += GPP
}
winrt{
DEFINES += _CRT_SECURE_NO_WARNINGS
DEFINES += WINRT
LIBS += -L"$$_PRO_FILE_PWD_/lib/winrt/x64"
}
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{
CONFIG(release, debug|release) {
SOURCES += src/core/exceptionhandler.cpp \
src/breakpad/client/linux/crash_generation/crash_generation_client.cc \
src/breakpad/client/linux/crash_generation/crash_generation_server.cc \
src/breakpad/client/linux/dump_writer_common/seccomp_unwinder.cc \
src/breakpad/client/linux/dump_writer_common/thread_info.cc \
src/breakpad/client/linux/dump_writer_common/ucontext_reader.cc \
src/breakpad/client/linux/handler/exception_handler.cc \
src/breakpad/client/linux/handler/minidump_descriptor.cc \
src/breakpad/client/linux/log/log.cc \
src/breakpad/client/linux/microdump_writer/microdump_writer.cc \
src/breakpad/client/linux/minidump_writer/linux_dumper.cc \
src/breakpad/client/linux/minidump_writer/linux_ptrace_dumper.cc \
src/breakpad/client/linux/minidump_writer/minidump_writer.cc \
src/breakpad/client/minidump_file_writer.cc \
src/breakpad/common/convert_UTF.c \
src/breakpad/common/md5.cc \
src/breakpad/common/string_conversion.cc \
src/breakpad/common/linux/elfutils.cc \
src/breakpad/common/linux/file_id.cc \
src/breakpad/common/linux/guid_creator.cc \
src/breakpad/common/linux/linux_libc_support.cc \
src/breakpad/common/linux/memory_mapped_file.cc \
src/breakpad/common/linux/safe_readlink.cc
HEADERS += src/core/exceptionhandler.h \
src/breakpad/client/linux/handler/exception_handler.h
QMAKE_CXXFLAGS += -g
DEFINES += USE_BREAKPAD
INCLUDEPATH += src/breakpad
}
android{
DEFINES += ANDROID
ANDROID_LIBPATH = $$_PRO_FILE_PWD_/lib/android/$$ANDROID_ARCHITECTURE/lib
LIBS += -L"$$ANDROID_LIBPATH"
CONFIG(release, debug|release) {
SOURCES += src/breakpad/common/android/breakpad_getcontext.S
INCLUDEPATH += src/breakpad/common/android/include
}
}
else {
DEFINES += LINUX
!contains(QMAKE_HOST.arch, x86_64) {
LIBS += -L"$$_PRO_FILE_PWD_/lib/linux/x86"
}
else {
LIBS += -L"$$_PRO_FILE_PWD_/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
}
CONFIG(lua53){
android:DEFINES += "\"l_getlocaledecpoint()='.'\""
SOURCES += \
src/lua53/lzio.c \
src/lua53/lvm.c \
src/lua53/lundump.c \
src/lua53/ltm.c \
src/lua53/ltablib.c \
src/lua53/ltable.c \
src/lua53/lstrlib.c \
src/lua53/lstring.c \
src/lua53/lstate.c \
src/lua53/lparser.c \
src/lua53/loslib.c \
src/lua53/lopcodes.c \
src/lua53/lobject.c \
src/lua53/loadlib.c \
src/lua53/lmem.c \
src/lua53/lmathlib.c \
src/lua53/llex.c \
src/lua53/liolib.c \
src/lua53/linit.c \
src/lua53/lgc.c \
src/lua53/lfunc.c \
src/lua53/ldump.c \
src/lua53/ldo.c \
src/lua53/ldebug.c \
src/lua53/ldblib.c \
src/lua53/lctype.c \
src/lua53/lcorolib.c \
src/lua53/lcode.c \
src/lua53/lbitlib.c \
src/lua53/lbaselib.c \
src/lua53/lauxlib.c \
src/lua53/lapi.c \
src/lua53/lutf8lib.c
HEADERS += \
src/lua53/lzio.h \
src/lua53/lvm.h \
src/lua53/lundump.h \
src/lua53/lualib.h \
src/lua53/luaconf.h \
src/lua53/lua.hpp \
src/lua53/lua.h \
src/lua53/ltm.h \
src/lua53/ltable.h \
src/lua53/lstring.h \
src/lua53/lstate.h \
src/lua53/lparser.h \
src/lua53/lopcodes.h \
src/lua53/lobject.h \
src/lua53/lmem.h \
src/lua53/llimits.h \
src/lua53/llex.h \
src/lua53/lgc.h \
src/lua53/lfunc.h \
src/lua53/ldo.h \
src/lua53/ldebug.h \
src/lua53/lctype.h \
src/lua53/lcode.h \
src/lua53/lauxlib.h \
src/lua53/lapi.h
INCLUDEPATH += src/lua53
}
CONFIG(opengl){
QT += opengl
DEFINES += USING_OPENGL
}
TRANSLATIONS += builds/sanguosha.ts
!build_pass{
system("lrelease builds/sanguosha.ts -qm $$PWD/sanguosha.qm")
SWIG_bin = "swig"
win32: SWIG_bin = "$$PWD/tools/swig/swig.exe"
system("$$SWIG_bin -c++ -lua $$PWD/swig/sanguosha.i")
}
OTHER_FILES += \
sanguosha.qss \
ui-script/animation.qml \
resource/android/AndroidManifest.xml \
builds/sanguosha.ts
LIBS += -lfreetype
INCLUDEPATH += $$PWD/include/freetype
DEPENDPATH += $$PWD/include/freetype
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/resource/android