123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- #-------------------------------------------------
- #
- # Project created by QtCreator 2018-03-07T02:18:16
- #
- #-------------------------------------------------
- QT += core gui
- greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
- TARGET = game
- TEMPLATE = app
- CONFIG += c++14
- # The following define makes your compiler emit warnings if you use
- # any feature of Qt which has been marked as deprecated (the exact warnings
- # depend on your compiler). Please consult the documentation of the
- # deprecated API in order to know how to port your code away from it.
- DEFINES += QT_DEPRECATED_WARNINGS
- # You can also make your code fail to compile if you use deprecated APIs.
- # In order to do so, uncomment the following line.
- # You can also select to disable deprecated APIs only up to a certain version of Qt.
- #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
- INCLUDEPATH += $$PWD/include/
- ##create_res_folder.target = $$OUT_PWD/res
- #QMAKE_EXTRA_TARGETS += createFolder
- #createFolder.target = createResFolder
- #createFolder.commands =
- #POST_TARGETDEPS += createResFolder
- #QMAKE_PRE_LINK = $(MKDIR) $$OUT_PWD/res/
- # ================================================== #
- win32 {
- build_pass: CONFIG(debug, debug|release) {
- DESTDIR = $$OUT_PWD/debug
- }
- else: build_pass {
- DESTDIR = $$OUT_PWD/release
- }
- }
- unix {
- DESTDIR = $$OUT_PWD
- }
- guiRes.target = BuildResources
- exists($$DESTDIR/res) {
- message("Directory $$DESTDIR/res already exists")
- } else {
- guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
- }
- win32 {
- guiRes.commands += rcc.exe -binary $$PWD/gui.qrc -o $$DESTDIR/res/gui_data.gtr $$escape_expand(\n\t) \
- rcc.exe -binary $$PWD/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
- rcc.exe -binary $$PWD/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
- rcc.exe -binary $$PWD/spells.qrc -o $$DESTDIR/res/spell_data.gtr
- }
- unix {
- guiRes.commands += rcc -binary $$PWD/gui.qrc -o $$DESTDIR/res/gui_data.gtr $$escape_expand(\n\t) \
- rcc -binary $$PWD/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
- rcc -binary $$PWD/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
- rcc -binary $$PWD/spells.qrc -o $$DESTDIR/res/spell_data.gtr
- }
- QMAKE_EXTRA_TARGETS += guiRes
- PRE_TARGETDEPS += BuildResources
- # ================================================== #
- SOURCES += \
- source/main.cpp \
- source/Cell.cpp \
- source/UnitsQueue.cpp \
- source/hotseatgame/GameManager.cpp \
- source/gui/GUI.cpp \
- source/gui/GuiSceneManager.cpp \
- source/gui/MainMenu.cpp \
- source/gui/PlayerVsPlayerIntro.cpp \
- source/gui/PreBattleScene.cpp \
- source/gui/RaceIcon.cpp \
- source/gui/RecruitmentScene.cpp \
- source/gui/Scene.cpp \
- source/gui/UnitIcon.cpp \
- source/units/Mage.cpp \
- source/units/Unit.cpp \
- source/units/Warrior.cpp \
- source/PlayerManager.cpp \
- source/Race.cpp \
- source/RaceManager.cpp \
- source/hotseatgame/gui/HotSeatGame.cpp \
- source/effects/effect.cpp
- HEADERS += \
- include/Cell.h \
- include/UnitsQueue.h \
- include/hotseatgame/GameManager.h \
- include/Player.h \
- include/PlayerManager.h \
- include/Race.h \
- include/RaceManager.h \
- include/AbstractFactory.h \
- include/units/Mage.h \
- include/units/Unit.h \
- include/units/Warrior.h \
- include/gui/GUI.h \
- include/gui/GuiSceneManager.h \
- include/gui/MainMenu.h \
- include/gui/PlayerVsPlayerIntro.h \
- include/gui/PreBattleScene.h \
- include/gui/RaceIcon.h \
- include/gui/RecruitmentScene.h \
- include/gui/Scene.h \
- include/gui/UnitIcon.h \
- include/hotseatgame/gui/HotSeatGame.h \
- include/effects/effect.h
- FORMS += \
- include/gui/GUI.ui \
- include/gui/MainMenu.ui \
- include/gui/PlayerVsPlayerIntro.ui \
- include/gui/PreBattleScene.ui \
- include/gui/RecruitmentScene.ui \
- include/hotseatgame/gui/HotSeatGame.ui
- RESOURCES += \
- base.qrc
- # gui.qrc \
- # units.qrc \
- # spells.qrc \
- # effects.qrc
- RC_ICONS = $$PWD/assets/common/icon.ico
|