client.pro 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2018-03-07T02:18:16
  4. #
  5. #-------------------------------------------------
  6. QT += core gui
  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. ##create_res_folder.target = $$OUT_PWD/res
  22. #QMAKE_EXTRA_TARGETS += createFolder
  23. #createFolder.target = createResFolder
  24. #createFolder.commands =
  25. #POST_TARGETDEPS += createResFolder
  26. #QMAKE_PRE_LINK = $(MKDIR) $$OUT_PWD/res/
  27. # ================================================== #
  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. win32 {
  46. guiRes.commands += rcc.exe -binary $$PWD/gui.qrc -o $$DESTDIR/res/gui_data.gtr $$escape_expand(\n\t) \
  47. rcc.exe -binary $$PWD/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
  48. rcc.exe -binary $$PWD/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
  49. rcc.exe -binary $$PWD/spells.qrc -o $$DESTDIR/res/spell_data.gtr
  50. }
  51. unix {
  52. guiRes.commands += rcc -binary $$PWD/gui.qrc -o $$DESTDIR/res/gui_data.gtr $$escape_expand(\n\t) \
  53. rcc -binary $$PWD/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
  54. rcc -binary $$PWD/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
  55. rcc -binary $$PWD/spells.qrc -o $$DESTDIR/res/spell_data.gtr
  56. }
  57. QMAKE_EXTRA_TARGETS += guiRes
  58. PRE_TARGETDEPS += BuildResources
  59. # ================================================== #
  60. SOURCES += \
  61. source/main.cpp \
  62. source/Cell.cpp \
  63. source/UnitsQueue.cpp \
  64. source/hotseatgame/GameManager.cpp \
  65. source/gui/GUI.cpp \
  66. source/gui/GuiSceneManager.cpp \
  67. source/gui/MainMenu.cpp \
  68. source/gui/PlayerVsPlayerIntro.cpp \
  69. source/gui/PreBattleScene.cpp \
  70. source/gui/RaceIcon.cpp \
  71. source/gui/RecruitmentScene.cpp \
  72. source/gui/Scene.cpp \
  73. source/gui/UnitIcon.cpp \
  74. source/units/Mage.cpp \
  75. source/units/Unit.cpp \
  76. source/units/Warrior.cpp \
  77. source/PlayerManager.cpp \
  78. source/Race.cpp \
  79. source/RaceManager.cpp \
  80. source/hotseatgame/gui/HotSeatGame.cpp \
  81. source/effects/effect.cpp
  82. HEADERS += \
  83. include/Cell.h \
  84. include/UnitsQueue.h \
  85. include/hotseatgame/GameManager.h \
  86. include/Player.h \
  87. include/PlayerManager.h \
  88. include/Race.h \
  89. include/RaceManager.h \
  90. include/AbstractFactory.h \
  91. include/units/Mage.h \
  92. include/units/Unit.h \
  93. include/units/Warrior.h \
  94. include/gui/GUI.h \
  95. include/gui/GuiSceneManager.h \
  96. include/gui/MainMenu.h \
  97. include/gui/PlayerVsPlayerIntro.h \
  98. include/gui/PreBattleScene.h \
  99. include/gui/RaceIcon.h \
  100. include/gui/RecruitmentScene.h \
  101. include/gui/Scene.h \
  102. include/gui/UnitIcon.h \
  103. include/hotseatgame/gui/HotSeatGame.h \
  104. include/effects/effect.h
  105. FORMS += \
  106. include/gui/GUI.ui \
  107. include/gui/MainMenu.ui \
  108. include/gui/PlayerVsPlayerIntro.ui \
  109. include/gui/PreBattleScene.ui \
  110. include/gui/RecruitmentScene.ui \
  111. include/hotseatgame/gui/HotSeatGame.ui
  112. RESOURCES += \
  113. base.qrc
  114. # gui.qrc \
  115. # units.qrc \
  116. # spells.qrc \
  117. # effects.qrc
  118. RC_ICONS = $$PWD/assets/common/icon.ico