client.pro 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. CONFIG += resources_big
  12. # The following define makes your compiler emit warnings if you use
  13. # any feature of Qt which has been marked as deprecated (the exact warnings
  14. # depend on your compiler). Please consult the documentation of the
  15. # deprecated API in order to know how to port your code away from it.
  16. DEFINES += QT_DEPRECATED_WARNINGS
  17. # You can also make your code fail to compile if you use deprecated APIs.
  18. # In order to do so, uncomment the following line.
  19. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  20. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  21. INCLUDEPATH += $$PWD/include/
  22. INCLUDEPATH += $$PWD/ui/
  23. # ================================================== #
  24. message(================QT INFO====================)
  25. message(Qt version: $$[QT_VERSION])
  26. message(Qt is installed in $$[QT_INSTALL_PREFIX])
  27. # ================================================== #
  28. message(==========BUILDING EXTERNAL RES============)
  29. win32 {
  30. build_pass: CONFIG(debug, debug|release) {
  31. DESTDIR = $$OUT_PWD/debug
  32. }
  33. else: build_pass {
  34. DESTDIR = $$OUT_PWD/release
  35. }
  36. }
  37. unix {
  38. DESTDIR = $$OUT_PWD
  39. }
  40. guiRes.target = BuildResources
  41. exists($$DESTDIR/res) {
  42. message("Directory $$DESTDIR/res already exists")
  43. } else {
  44. guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
  45. }
  46. EXT_RES = \
  47. "$$PWD/res/main_menu.qrc -o $$DESTDIR/res/data001.gtr" \
  48. "$$PWD/res/hotseat_intro.qrc -o $$DESTDIR/res/data002.gtr" \
  49. "$$PWD/res/hotseat_recruitment.qrc -o $$DESTDIR/res/data003.gtr" \
  50. "$$PWD/res/hotseat_prebattle.qrc -o $$DESTDIR/res/data004.gtr" \
  51. "$$PWD/res/hotseat_game.qrc -o $$DESTDIR/res/data005.gtr" \
  52. "$$PWD/res/effect_data.qrc -o $$DESTDIR/res/data006.gtr" \
  53. "$$PWD/res/spell_data.qrc -o $$DESTDIR/res/data007.gtr" \
  54. "$$PWD/res/unit_data.qrc -o $$DESTDIR/res/data008.gtr" \
  55. "$$PWD/res/common_data.qrc -o $$DESTDIR/res/data009.gtr" \
  56. for (RES, EXT_RES) {
  57. win32 {
  58. message(rcc.exe -binary $${RES})
  59. guiRes.commands += rcc.exe -binary $${RES} $$escape_expand(\n\t)
  60. }
  61. unix {
  62. guiRes.commands += rcc -binary $${RES} $$escape_expand(\n\t)
  63. }
  64. }
  65. QMAKE_EXTRA_TARGETS += guiRes
  66. PRE_TARGETDEPS += BuildResources
  67. # ================================================== #
  68. SOURCES += \
  69. source/main.cpp \
  70. source/cell.cpp \
  71. source/playermanager.cpp \
  72. source/race.cpp \
  73. source/racemanager.cpp \
  74. source/soundengine.cpp \
  75. \
  76. source/effects/effect.cpp \
  77. source/effects/meleedamage.cpp \
  78. source/effects/selfheal.cpp \
  79. \
  80. source/gui/guiscenemanager.cpp \
  81. source/gui/scene.cpp \
  82. \
  83. source/hotseatgame/raceicon.cpp \
  84. source/hotseatgame/uniticon.cpp \
  85. source/hotseatgame/gamemanager.cpp \
  86. source/hotseatgame/unitsqueue.cpp \
  87. \
  88. source/spells/spell.cpp \
  89. source/spells/selfhealspell.cpp \
  90. source/spells/meleedamagespell.cpp \
  91. \
  92. source/units/mage.cpp \
  93. source/units/unit.cpp \
  94. source/units/warrior.cpp \
  95. \
  96. ui/hotseat_game/hotseatgame.cpp \
  97. ui/hotseat_intro/playervsplayerintro.cpp \
  98. ui/hotseat_prebattle/prebattlescene.cpp \
  99. ui/hotseat_recruitment/recruitmentscene.cpp \
  100. ui/loading_form/loadingform.cpp \
  101. ui/main_menu/mainmenu.cpp \
  102. ui/main_menu/mainmenubackground.cpp \
  103. source/gui/buttoneventlistener.cpp \
  104. ui/hotseat_recruitment/iconhint.cpp \
  105. ui/dialog_form/dialogform.cpp \
  106. ui/about_us/aboutus.cpp \
  107. source/effects/selfmove.cpp \
  108. source/spells/selfmovespell.cpp \
  109. source/spellsmanager.cpp
  110. HEADERS += \
  111. include/abstractfactory.h \
  112. include/cell.h \
  113. include/player.h \
  114. include/playermanager.h \
  115. include/race.h \
  116. include/racemanager.h \
  117. include/soundengine.h \
  118. \
  119. include/effects/meleedamage.h \
  120. include/effects/selfheal.h \
  121. include/effects/effect.h \
  122. \
  123. include/gui/guiscenemanager.h \
  124. include/gui/scene.h \
  125. include/gui/buttoneventlistener.h \
  126. \
  127. include/hotseatgame/gamemanager.h \
  128. include/hotseatgame/raceicon.h \
  129. include/hotseatgame/uniticon.h \
  130. include/hotseatgame/unitsqueue.h \
  131. \
  132. include/spells/meleedamagespell.h \
  133. include/spells/selfhealspell.h \
  134. include/spells/spell.h \
  135. \
  136. include/units/mage.h \
  137. include/units/unit.h \
  138. include/units/warrior.h \
  139. \
  140. ui/hotseat_game/hotseatgame.h \
  141. ui/hotseat_intro/playervsplayerintro.h \
  142. ui/hotseat_prebattle/prebattlescene.h \
  143. ui/hotseat_recruitment/recruitmentscene.h \
  144. ui/loading_form/loadingform.h \
  145. ui/main_menu/mainmenu.h \
  146. ui/main_menu/mainmenubackground.h \
  147. ui/hotseat_recruitment/iconhint.h \
  148. ui/dialog_form/dialogform.h \
  149. ui/about_us/aboutus.h \
  150. include/effects/selfmove.h \
  151. include/spells/selfmovespell.h \
  152. include/spellsmanager.h
  153. FORMS += \
  154. ui/hotseat_game/hotseatgame.ui \
  155. ui/hotseat_intro/playervsplayerintro.ui \
  156. ui/hotseat_prebattle/prebattlescene.ui \
  157. ui/hotseat_recruitment/recruitmentscene.ui \
  158. ui/loading_form/loadingform.ui \
  159. ui/main_menu/mainmenu.ui \
  160. ui/main_menu/mainmenubackground.ui \
  161. ui/dialog_form/dialogform.ui \
  162. ui/about_us/aboutus.ui
  163. debug {
  164. #CONFIG += console
  165. RESOURCES += \
  166. # res/hotseat_intro.qrc \
  167. # res/hotseat_recruitment.qrc \
  168. # res/hotseat_prebattle.qrc \
  169. # res/hotseat_game.qrc \
  170. # res/main_menu.qrc \
  171. # res/hotseat_intro.qrc \
  172. # \
  173. # res/effect_data.qrc \
  174. # res/spell_data.qrc \
  175. # res/unit_data.qrc \
  176. # res/common_data.qrc
  177. # res/all_data.qrc
  178. }
  179. RC_ICONS = $$PWD/assets/common/icon.ico