client.pro 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/gui_data.gtr $$escape_expand(\n\t) \
  47. rcc.exe -binary $$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
  48. rcc.exe -binary $$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
  49. rcc.exe -binary $$PWD/res/hotseatgame/spells.qrc -o $$DESTDIR/res/spell_data.gtr
  50. }
  51. unix {
  52. guiRes.commands += rcc -binary $$PWD/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/game_ui_data.gtr $$escape_expand(\n\t) \
  53. rcc -binary $$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
  54. rcc -binary $$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
  55. rcc -binary $$PWD/res/hotseatgame/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/effects/effect.cpp \
  63. source/gui/gui.cpp \
  64. source/gui/guiscenemanager.cpp \
  65. source/gui/loadingform.cpp \
  66. source/gui/mainmenu.cpp \
  67. source/gui/scene.cpp \
  68. source/hotseatgame/gui/hotseatgame.cpp \
  69. source/hotseatgame/gui/playervsplayerintro.cpp \
  70. source/hotseatgame/gui/prebattlescene.cpp \
  71. source/hotseatgame/gui/raceicon.cpp \
  72. source/hotseatgame/gui/recruitmentscene.cpp \
  73. source/hotseatgame/gui/uniticon.cpp \
  74. source/hotseatgame/gamemanager.cpp \
  75. source/hotseatgame/unitsqueue.cpp \
  76. source/units/mage.cpp \
  77. source/units/unit.cpp \
  78. source/units/warrior.cpp \
  79. source/cell.cpp \
  80. source/playermanager.cpp \
  81. source/race.cpp \
  82. source/racemanager.cpp
  83. HEADERS += \
  84. include/effects/effect.h \
  85. include/gui/gui.h \
  86. include/gui/guiscenemanager.h \
  87. include/gui/loadingform.h \
  88. include/gui/mainmenu.h \
  89. include/gui/scene.h \
  90. include/hotseatgame/gui/hotseatgame.h \
  91. include/hotseatgame/gui/playervsplayerintro.h \
  92. include/hotseatgame/gui/prebattlescene.h \
  93. include/hotseatgame/gui/raceicon.h \
  94. include/hotseatgame/gui/recruitmentscene.h \
  95. include/hotseatgame/gui/uniticon.h \
  96. include/hotseatgame/gamemanager.h \
  97. include/hotseatgame/unitsqueue.h \
  98. include/units/mage.h \
  99. include/units/unit.h \
  100. include/units/warrior.h \
  101. include/abstractfactory.h \
  102. include/cell.h \
  103. include/player.h \
  104. include/playermanager.h \
  105. include/race.h \
  106. include/racemanager.h
  107. FORMS += \
  108. include/gui/gui.ui \
  109. include/gui/loadingform.ui \
  110. include/gui/mainmenu.ui \
  111. include/hotseatgame/gui/hotseatgame.ui \
  112. include/hotseatgame/gui/playervsplayerintro.ui \
  113. include/hotseatgame/gui/prebattlescene.ui \
  114. include/hotseatgame/gui/recruitmentscene.ui
  115. RESOURCES += \
  116. res/GUI.qrc
  117. #res/hotseatgame/game_ui.qrc \
  118. #res/hotseatgame/units.qrc \
  119. #res/hotseatgame/spells.qrc \
  120. #res/hotseatgame/effects.qrc
  121. RC_ICONS = $$PWD/assets/common/icon.ico