|
@@ -27,7 +27,13 @@ INCLUDEPATH += $$PWD/include/
|
|
|
INCLUDEPATH += $$PWD/ui/
|
|
|
|
|
|
# ================================================== #
|
|
|
+message(================QT INFO====================)
|
|
|
+message(Qt version: $$[QT_VERSION])
|
|
|
+message(Qt is installed in $$[QT_INSTALL_PREFIX])
|
|
|
+# ================================================== #
|
|
|
+
|
|
|
|
|
|
+message(==========BUILDING EXTERNAL RES============)
|
|
|
win32 {
|
|
|
build_pass: CONFIG(debug, debug|release) {
|
|
|
DESTDIR = $$OUT_PWD/debug
|
|
@@ -43,23 +49,26 @@ unix {
|
|
|
|
|
|
guiRes.target = BuildResources
|
|
|
exists($$DESTDIR/res) {
|
|
|
- message("Directory $$DESTDIR/res already exists")
|
|
|
- } else {
|
|
|
- guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
|
|
|
+ message("Directory $$DESTDIR/res already exists")
|
|
|
+} else {
|
|
|
+ guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
|
|
|
}
|
|
|
|
|
|
-win32 {
|
|
|
- guiRes.commands += rcc.exe -binary $$PWD/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/game_ui_data.gtr $$escape_expand(\n\t) \
|
|
|
- rcc.exe -binary $$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
|
|
|
- rcc.exe -binary $$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
|
|
|
- rcc.exe -binary $$PWD/res/hotseatgame/spells.qrc -o $$DESTDIR/res/spell_data.gtr
|
|
|
-}
|
|
|
-
|
|
|
-unix {
|
|
|
- guiRes.commands += rcc -binary $$PWD/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/game_ui_data.gtr $$escape_expand(\n\t) \
|
|
|
- rcc -binary $$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr $$escape_expand(\n\t) \
|
|
|
- rcc -binary $$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr $$escape_expand(\n\t) \
|
|
|
- rcc -binary $$PWD/res/hotseatgame/spells.qrc -o $$DESTDIR/res/spell_data.gtr
|
|
|
+EXT_RES = \
|
|
|
+ "$$PWD/res/main_menu.qrc -o $$DESTDIR/res/data1.gtr" \
|
|
|
+ "$$PWD/res/hotseatgame/game_ui.qrc -o $$DESTDIR/res/game_ui_data.gtr" \
|
|
|
+ "$$PWD/res/hotseatgame/units.qrc -o $$DESTDIR/res/unit_data.gtr" \
|
|
|
+ "$$PWD/res/hotseatgame/effects.qrc -o $$DESTDIR/res/effect_data.gtr" \
|
|
|
+ "$$PWD/res/hotseatgame/spells.qrc -o $$DESTDIR/res/spell_data.gtr" \
|
|
|
+
|
|
|
+for (RES, EXT_RES) {
|
|
|
+ win32 {
|
|
|
+ message(rcc.exe -binary $${RES})
|
|
|
+ guiRes.commands += rcc.exe -binary $${RES} $$escape_expand(\n\t)
|
|
|
+ }
|
|
|
+ unix {
|
|
|
+ guiRes.commands += rcc -binary $${RES} $$escape_expand(\n\t)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
QMAKE_EXTRA_TARGETS += guiRes
|
|
@@ -74,9 +83,9 @@ SOURCES += \
|
|
|
source/racemanager.cpp \
|
|
|
source/soundengine.cpp \
|
|
|
\
|
|
|
- source/effects/effect.cpp \
|
|
|
- source/effects/melledamage.cpp \
|
|
|
- source/effects/selfheal.cpp \
|
|
|
+\ #source/effects/effect.cpp \
|
|
|
+\ #source/effects/melledamage.cpp \
|
|
|
+\ #source/effects/selfheal.cpp \
|
|
|
\
|
|
|
source/gui/guiscenemanager.cpp \
|
|
|
source/gui/scene.cpp \
|
|
@@ -86,9 +95,9 @@ SOURCES += \
|
|
|
source/hotseatgame/gamemanager.cpp \
|
|
|
source/hotseatgame/unitsqueue.cpp \
|
|
|
\
|
|
|
- source/skills/spell.cpp \
|
|
|
- source/skills/selfheal.cpp \
|
|
|
- source/skills/melledamage.cpp \
|
|
|
+\ #source/skills/spell.cpp \
|
|
|
+\ #source/skills/selfheal.cpp \
|
|
|
+\ #source/skills/melledamage.cpp \
|
|
|
\
|
|
|
source/units/mage.cpp \
|
|
|
source/units/unit.cpp \
|
|
@@ -110,9 +119,9 @@ HEADERS += \
|
|
|
include/racemanager.h \
|
|
|
include/soundengine.h \
|
|
|
\
|
|
|
- include/effects/effect.h \
|
|
|
- include/effects/melledamage.h \
|
|
|
- include/effects/selfheal.h \
|
|
|
+\ #include/effects/effect.h \
|
|
|
+\ #include/effects/melledamage.h \
|
|
|
+\ #include/effects/selfheal.h \
|
|
|
\
|
|
|
include/gui/guiscenemanager.h \
|
|
|
include/gui/scene.h \
|
|
@@ -122,9 +131,9 @@ HEADERS += \
|
|
|
include/hotseatgame/uniticon.h \
|
|
|
include/hotseatgame/unitsqueue.h \
|
|
|
\
|
|
|
- include/skills/melledamage.h \
|
|
|
- include/skills/selfheal.h \
|
|
|
- include/skills/spell.h \
|
|
|
+\ #include/skills/melledamage.h \
|
|
|
+\ #include/skills/selfheal.h \
|
|
|
+\ #include/skills/spell.h \
|
|
|
\
|
|
|
include/units/mage.h \
|
|
|
include/units/unit.h \
|
|
@@ -146,12 +155,19 @@ FORMS += \
|
|
|
ui/main_menu/mainmenu.ui
|
|
|
|
|
|
RESOURCES += \
|
|
|
- res/GUI.qrc \
|
|
|
- res/hotseatgame/game_ui.qrc \
|
|
|
- res/hotseatgame/units.qrc \
|
|
|
- res/hotseatgame/spells.qrc \
|
|
|
- res/hotseatgame/effects.qrc \
|
|
|
- res/main_menu.qrc \
|
|
|
- res/loading_form.qrc
|
|
|
+ res/GUI.qrc
|
|
|
+
|
|
|
+
|
|
|
+debug {
|
|
|
+#CONFIG += console
|
|
|
+
|
|
|
+#RESOURCES += \
|
|
|
+# res/hotseatgame/game_ui.qrc \
|
|
|
+# res/hotseatgame/units.qrc \
|
|
|
+# res/hotseatgame/spells.qrc \
|
|
|
+# res/hotseatgame/effects.qrc \
|
|
|
+# res/main_menu.qrc \
|
|
|
+# res/loading_form.qrc
|
|
|
+}
|
|
|
|
|
|
RC_ICONS = $$PWD/assets/common/icon.ico
|