forked from t-mon/monsterwars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MonsterWars.pro
89 lines (70 loc) · 2.21 KB
/
MonsterWars.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# specify the manifest file, this file is required for click
# packaging and for the IDE to create runconfigurations
UBUNTU_MANIFEST_FILE=manifest.json.in
# specify translation domain, this must be equal with the
# app name in the manifest file
UBUNTU_TRANSLATION_DOMAIN="monsterwars.t-mon"
# specify the source files that should be included into
# the translation file, from those files a translation
# template is created in po/template.pot, to create a
# translation copy the template to e.g. de.po and edit the sources
UBUNTU_TRANSLATION_SOURCES+= \
$$files(ui/*.qml, true)
# specifies all translations files and makes sure they are
# compiled and installed into the right place in the click package
UBUNTU_PO_FILES+=$$files(po/*.po)
TEMPLATE = app
TARGET = MonsterWars
load(ubuntu-click)
QT += qml quick multimedia
QMAKE_CXXFLAGS += -Werror
CONFIG += c++11
HEADERS += attack.h \
attackpillow.h \
attackpillowmodel.h \
board.h \
gameengine.h \
level.h \
player.h \
monster.h \
aibrain.h \
monstermodel.h \
levelmodel.h \
playersettings.h \
SOURCES += main.cpp \
attack.cpp \
attackpillow.cpp \
attackpillowmodel.cpp \
board.cpp \
gameengine.cpp \
level.cpp \
player.cpp \
monster.cpp \
aibrain.cpp \
monstermodel.cpp \
levelmodel.cpp \
playersettings.cpp \
RESOURCES += ui.qrc \
monsters.qrc \
images.qrc
# config files for click package
OTHER_FILES += MonsterWars.apparmor \
MonsterWars.desktop \
MonsterWars.png
# specify where the config files are installed to
config_files.path = /MonsterWars
config_files.files += $${OTHER_FILES}
# install level files
levels.path = /data
levels.files = levels/
# install sound files
sounds.path = /data
sounds.files = sounds/
# install images
images.path = /data
images.files = images/
# install images
backgrounds.path = /data
backgrounds.files = backgrounds/
target.path = $${UBUNTU_CLICK_BINARY_PATH}
INSTALLS += target config_files levels sounds backgrounds