client.pro 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2018-03-07T02:18:16
  4. #
  5. #-------------------------------------------------
  6. QT += core gui multimedia
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = game
  9. TEMPLATE = app
  10. CONFIG += c++14
  11. # The following define makes your compiler emit warnings if you use
  12. # any feature of Qt which has been marked as deprecated (the exact warnings
  13. # depend on your compiler). Please consult the documentation of the
  14. # deprecated API in order to know how to port your code away from it.
  15. DEFINES += QT_DEPRECATED_WARNINGS
  16. # You can also make your code fail to compile if you use deprecated APIs.
  17. # In order to do so, uncomment the following line.
  18. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  19. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  20. INCLUDEPATH += $$PWD/include/
  21. INCLUDEPATH += $$PWD/ui/
  22. # ================================================== #
  23. message(================QT INFO====================)
  24. message(Qt version: $$[QT_VERSION])
  25. message(Qt is installed in $$[QT_INSTALL_PREFIX])
  26. # ================================================== #
  27. message(==========BUILDING EXTERNAL RES============)
  28. win32 {
  29. build_pass: CONFIG(debug, debug|release) {
  30. DESTDIR = $$OUT_PWD/debug
  31. }
  32. else: build_pass {
  33. DESTDIR = $$OUT_PWD/release
  34. }
  35. }
  36. unix {
  37. DESTDIR = $$OUT_PWD
  38. }
  39. guiRes.target = BuildResources
  40. exists($$DESTDIR/res) {
  41. message("Directory $$DESTDIR/res already exists")
  42. } else {
  43. guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
  44. }
  45. EXT_RES = \
  46. "$$PWD/res/main_menu.qrc -o $$DESTDIR/res/data1.gtr" \
  47. "$$PWD/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/game_ui_data.gtr" \
  48. "$$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr" \
  49. "$$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr" \
  50. "$$PWD/res/hotseatgame/spells.qrc -o $$DESTDIR/res/spell_data.gtr" \
  51. for (RES, EXT_RES) {
  52. win32 {
  53. message(rcc.exe -binary $${RES})
  54. guiRes.commands += rcc.exe -binary $${RES} $$escape_expand(\n\t)
  55. }
  56. unix {
  57. guiRes.commands += rcc -binary $${RES} $$escape_expand(\n\t)
  58. }
  59. }
  60. QMAKE_EXTRA_TARGETS += guiRes
  61. PRE_TARGETDEPS += BuildResources
  62. # ================================================== #
  63. SOURCES += \
  64. source/main.cpp \
  65. source/cell.cpp \
  66. source/playermanager.cpp \
  67. source/race.cpp \
  68. source/racemanager.cpp \
  69. source/soundengine.cpp \
  70. \
  71. \ #source/effects/effect.cpp \
  72. \ #source/effects/melledamage.cpp \
  73. \ #source/effects/selfheal.cpp \
  74. \
  75. source/gui/guiscenemanager.cpp \
  76. source/gui/scene.cpp \
  77. \
  78. source/hotseatgame/raceicon.cpp \
  79. source/hotseatgame/uniticon.cpp \
  80. source/hotseatgame/gamemanager.cpp \
  81. source/hotseatgame/unitsqueue.cpp \
  82. \
  83. \ #source/skills/spell.cpp \
  84. \ #source/skills/selfheal.cpp \
  85. \ #source/skills/melledamage.cpp \
  86. \
  87. source/units/mage.cpp \
  88. source/units/unit.cpp \
  89. source/units/warrior.cpp \
  90. \
  91. ui/hotseat_game/hotseatgame.cpp \
  92. ui/hotseat_intro/playervsplayerintro.cpp \
  93. ui/hotseat_prebattle/prebattlescene.cpp \
  94. ui/hotseat_recruitment/recruitmentscene.cpp \
  95. ui/loading_form/loadingform.cpp \
  96. ui/main_menu/mainmenu.cpp \
  97. HEADERS += \
  98. include/abstractfactory.h \
  99. include/cell.h \
  100. include/player.h \
  101. include/playermanager.h \
  102. include/race.h \
  103. include/racemanager.h \
  104. include/soundengine.h \
  105. \
  106. \ #include/effects/effect.h \
  107. \ #include/effects/melledamage.h \
  108. \ #include/effects/selfheal.h \
  109. \
  110. include/gui/guiscenemanager.h \
  111. include/gui/scene.h \
  112. \
  113. include/hotseatgame/gamemanager.h \
  114. include/hotseatgame/raceicon.h \
  115. include/hotseatgame/uniticon.h \
  116. include/hotseatgame/unitsqueue.h \
  117. \
  118. \ #include/skills/melledamage.h \
  119. \ #include/skills/selfheal.h \
  120. \ #include/skills/spell.h \
  121. \
  122. include/units/mage.h \
  123. include/units/unit.h \
  124. include/units/warrior.h \
  125. \
  126. ui/hotseat_game/hotseatgame.h \
  127. ui/hotseat_intro/playervsplayerintro.h \
  128. ui/hotseat_prebattle/prebattlescene.h \
  129. ui/hotseat_recruitment/recruitmentscene.h \
  130. ui/loading_form/loadingform.h \
  131. ui/main_menu/mainmenu.h
  132. FORMS += \
  133. ui/hotseat_game/hotseatgame.ui \
  134. ui/hotseat_intro/playervsplayerintro.ui \
  135. ui/hotseat_prebattle/prebattlescene.ui \
  136. ui/hotseat_recruitment/recruitmentscene.ui \
  137. ui/loading_form/loadingform.ui \
  138. ui/main_menu/mainmenu.ui
  139. RESOURCES += \
  140. res/GUI.qrc
  141. debug {
  142. #CONFIG += console
  143. #RESOURCES += \
  144. # res/hotseatgame/game_ui.qrc \
  145. # res/hotseatgame/units.qrc \
  146. # res/hotseatgame/spells.qrc \
  147. # res/hotseatgame/effects.qrc \
  148. # res/main_menu.qrc \
  149. # res/loading_form.qrc
  150. }
  151. RC_ICONS = $$PWD/assets/common/icon.ico