-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathentertaining-chess.pro
154 lines (127 loc) · 4.59 KB
/
entertaining-chess.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
QT += core gui svg network websockets gamepad
SHARE_APP_NAME = entertaining-chess
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
controllers/backgroundcontroller.cpp \
game/MoveEngines/abstractmoveengine.cpp \
game/MoveEngines/humanmoveengine.cpp \
game/MoveEngines/onlinemoveengine.cpp \
game/gameengine.cpp \
game/gamerenderer.cpp \
information/creditsscreen.cpp \
main.cpp \
mainwindow.cpp \
online/battleplayerswidget.cpp \
online/createprivategamescreen.cpp \
online/joingamescreen.cpp \
online/onlinecontroller.cpp \
online/onlinemainmenu.cpp \
screens/endgamescreen.cpp \
screens/gamescreen.cpp \
screens/mainscreen.cpp \
screens/onlinescreen.cpp \
screens/pausescreen.cpp \
screens/promotescreen.cpp \
screens/settingsscreen.cpp \
widgets/playerwidget.cpp \
widgets/turnbrowser.cpp
HEADERS += \
controllers/backgroundcontroller.h \
game/MoveEngines/abstractmoveengine.h \
game/MoveEngines/humanmoveengine.h \
game/MoveEngines/onlinemoveengine.h \
game/gameengine.h \
game/gamerenderer.h \
information/creditsscreen.h \
mainwindow.h \
online/battleplayerswidget.h \
online/createprivategamescreen.h \
online/joingamescreen.h \
online/onlinecontroller.h \
online/onlinemainmenu.h \
screens/endgamescreen.h \
screens/gamescreen.h \
screens/mainscreen.h \
screens/onlinescreen.h \
screens/pausescreen.h \
screens/promotescreen.h \
screens/settingsscreen.h \
widgets/playerwidget.h \
widgets/turnbrowser.h
FORMS += \
information/creditsscreen.ui \
mainwindow.ui \
online/battleplayerswidget.ui \
online/createprivategamescreen.ui \
online/joingamescreen.ui \
online/onlinemainmenu.ui \
screens/endgamescreen.ui \
screens/gamescreen.ui \
screens/mainscreen.ui \
screens/onlinescreen.ui \
screens/pausescreen.ui \
screens/promotescreen.ui \
screens/settingsscreen.ui \
widgets/playerwidget.ui \
widgets/turnbrowser.ui
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$PWD/defaults.conf) $$shell_quote($$OUT_PWD);
unix:!macx:!android {
DESKTOP_FILE = games.entertaining.chess.desktop
DESKTOP_FILE_BLUEPRINT = games.entertaining.chess_blueprint.desktop
# Include the-libs build tools
equals(THELIBS_BUILDTOOLS_PATH, "") {
THELIBS_BUILDTOOLS_PATH = $$[QT_INSTALL_PREFIX]/share/the-libs/pri
}
include($$THELIBS_BUILDTOOLS_PATH/buildmaster.pri)
QT += thelib entertaining
TARGET = entertaining-chess
blueprint {
metainfo.files = games.entertaining.chess_blueprint.metainfo.xml
icon.files = assets/games.entertaining.chess_blueprint.svg
} else {
metainfo.files = games.entertaining.chess.metainfo.xml
icon.files = assets/games.entertaining.chess_blueprint.svg
}
icon.path = $$THELIBS_INSTALL_PREFIX/share/icons/hicolor/scalable/apps/
metainfo.path = $$THELIBS_INSTALL_PREFIX/share/metainfo
target.path = $$THELIBS_INSTALL_BIN
audio.path = $$THELIBS_INSTALL_PREFIX/share/entertaining-chess/audio
audio.files = assets/audio/*
defaults.files = defaults.conf
defaults.path = $$THELIBS_INSTALL_SETTINGS/entertaining-games/entertaining-chess/
INSTALLS += target metainfo icon audio defaults
}
win32 {
# Include the-libs build tools
include(C:/Program Files/thelibs/pri/buildmaster.pri)
INCLUDEPATH += "C:/Program Files/thelibs/include" "C:/Program Files/libentertaining/include"
LIBS += -L"C:/Program Files/thelibs/lib" -lthe-libs -L"C:/Program Files/libentertaining/lib" -lentertaining
RC_FILE = icon.rc
}
macx {
# Include the-libs build tools
include(/usr/local/share/the-libs/pri/buildmaster.pri)
QT += macextras
LIBS += -framework CoreFoundation -framework AppKit
blueprint {
TARGET = "Entertaining Chess Blueprint"
ICON = icon.icns
} else {
TARGET = "Entertaining Chess"
ICON = icon.icns
}
audio.files = assets/audio/
audio.path = Contents/audio
QMAKE_BUNDLE_DATA += audio
INCLUDEPATH += "/usr/local/include/the-libs" "/usr/local/include/libentertaining"
LIBS += -L/usr/local/lib -lthe-libs -lentertaining
QMAKE_POST_LINK += $$quote(cp $${PWD}/dmgicon.icns $${PWD}/app-dmg-background.png $${OUT_PWD})
}
RESOURCES += \
resources.qrc
DISTFILES += \
defaults.conf