client.pro 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. win32 {
  24. build_pass: CONFIG(debug, debug|release) {
  25. DESTDIR = $$OUT_PWD/debug
  26. }
  27. else: build_pass {
  28. DESTDIR = $$OUT_PWD/release
  29. }
  30. }
  31. unix {
  32. DESTDIR = $$OUT_PWD
  33. }
  34. guiRes.target = BuildResources
  35. exists($$DESTDIR/res) {
  36. message("Directory $$DESTDIR/res already exists")
  37. } else {
  38. guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
  39. }
  40. win32 {
  41. guiRes.commands += rcc.exe -binary $$PWD/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/game_ui_data.gtr $$escape_expand(\n\t) \
  42. rcc.exe -binary $$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
  43. rcc.exe -binary $$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
  44. rcc.exe -binary $$PWD/res/hotseatgame/spells.qrc -o $$DESTDIR/res/spell_data.gtr
  45. }
  46. unix {
  47. guiRes.commands += rcc -binary $$PWD/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/game_ui_data.gtr $$escape_expand(\n\t) \
  48. rcc -binary $$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
  49. rcc -binary $$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
  50. rcc -binary $$PWD/res/hotseatgame/spells.qrc -o $$DESTDIR/res/spell_data.gtr
  51. }
  52. QMAKE_EXTRA_TARGETS += guiRes
  53. PRE_TARGETDEPS += BuildResources
  54. # ================================================== #
  55. SOURCES += \
  56. source/main.cpp \
  57. source/cell.cpp \
  58. source/playermanager.cpp \
  59. source/race.cpp \
  60. source/racemanager.cpp \
  61. source/soundengine.cpp \
  62. \
  63. source/effects/effect.cpp \
  64. source/effects/melledamage.cpp \
  65. source/effects/selfheal.cpp \
  66. \
  67. source/gui/guiscenemanager.cpp \
  68. source/gui/scene.cpp \
  69. \
  70. source/hotseatgame/raceicon.cpp \
  71. source/hotseatgame/uniticon.cpp \
  72. source/hotseatgame/gamemanager.cpp \
  73. source/hotseatgame/unitsqueue.cpp \
  74. \
  75. source/skills/spell.cpp \
  76. source/skills/selfheal.cpp \
  77. source/skills/melledamage.cpp \
  78. \
  79. source/units/mage.cpp \
  80. source/units/unit.cpp \
  81. source/units/warrior.cpp \
  82. \
  83. ui/hotseat_game/hotseatgame.cpp \
  84. ui/hotseat_intro/playervsplayerintro.cpp \
  85. ui/hotseat_prebattle/prebattlescene.cpp \
  86. ui/hotseat_recruitment/recruitmentscene.cpp \
  87. ui/loading_form/loadingform.cpp \
  88. ui/main_menu/mainmenu.cpp \
  89. HEADERS += \
  90. include/abstractfactory.h \
  91. include/cell.h \
  92. include/player.h \
  93. include/playermanager.h \
  94. include/race.h \
  95. include/racemanager.h \
  96. include/soundengine.h \
  97. \
  98. include/effects/effect.h \
  99. include/effects/melledamage.h \
  100. include/effects/selfheal.h \
  101. \
  102. include/gui/guiscenemanager.h \
  103. include/gui/scene.h \
  104. \
  105. include/hotseatgame/gamemanager.h \
  106. include/hotseatgame/raceicon.h \
  107. include/hotseatgame/uniticon.h \
  108. include/hotseatgame/unitsqueue.h \
  109. \
  110. include/skills/melledamage.h \
  111. include/skills/selfheal.h \
  112. include/skills/spell.h \
  113. \
  114. include/units/mage.h \
  115. include/units/unit.h \
  116. include/units/warrior.h \
  117. \
  118. ui/hotseat_game/hotseatgame.h \
  119. ui/hotseat_intro/playervsplayerintro.h \
  120. ui/hotseat_prebattle/prebattlescene.h \
  121. ui/hotseat_recruitment/recruitmentscene.h \
  122. ui/loading_form/loadingform.h \
  123. ui/main_menu/mainmenu.h
  124. FORMS += \
  125. ui/hotseat_game/hotseatgame.ui \
  126. ui/hotseat_intro/playervsplayerintro.ui \
  127. ui/hotseat_prebattle/prebattlescene.ui \
  128. ui/hotseat_recruitment/recruitmentscene.ui \
  129. ui/loading_form/loadingform.ui \
  130. ui/main_menu/mainmenu.ui
  131. RESOURCES += \
  132. res/GUI.qrc \
  133. res/hotseatgame/game_ui.qrc \
  134. res/hotseatgame/units.qrc \
  135. res/hotseatgame/spells.qrc \
  136. res/hotseatgame/effects.qrc \
  137. res/main_menu.qrc \
  138. res/loading_form.qrc
  139. RC_ICONS = $$PWD/assets/common/icon.ico