| 1 |
#qmake file |
| 2 |
|
| 3 |
#message($${CONFIG}) |
| 4 |
RESOURCES = application.qrc \ |
| 5 |
board/board.qrc |
| 6 |
QT += core gui widgets network multimedia |
| 7 |
DESTDIR = ../build |
| 8 |
TARGET = qgo |
| 9 |
OBJECTS_DIR = $${DESTDIR}/objects |
| 10 |
MOC_DIR = $${DESTDIR}/moc |
| 11 |
RCC_DIR = $${DESTDIR}/rcc |
| 12 |
UI_DIR = $${DESTDIR}/ui |
| 13 |
#Because I can't figureout how to turn console and exceptions off: |
| 14 |
win32 { |
| 15 |
RC_FILE = qgo.rc |
| 16 |
} |
| 17 |
TEMPLATE = app |
| 18 |
|
| 19 |
INCLUDEPATH += . network \ |
| 20 |
audio \ |
| 21 |
gtp \ |
| 22 |
game_interfaces \ |
| 23 |
game_tree \ |
| 24 |
board \ |
| 25 |
sgf |
| 26 |
|
| 27 |
TRANSLATIONS = translations/qgo_cz.ts \ |
| 28 |
translations/qgo_de.ts \ |
| 29 |
translations/qgo_dk.ts \ |
| 30 |
translations/qgo_fr.ts \ |
| 31 |
translations/qgo_it.ts \ |
| 32 |
translations/qgo_la.ts \ |
| 33 |
translations/qgo_nl.ts \ |
| 34 |
translations/qgo_pt.ts \ |
| 35 |
translations/qgo_ru.ts \ |
| 36 |
translations/qgo_tr.ts \ |
| 37 |
translations/qgo_zh_cn.ts \ |
| 38 |
translations/qgo_zh.ts |
| 39 |
FORMS += mainwindow.ui \ |
| 40 |
board/boardwindow.ui \ |
| 41 |
board/gameinfo.ui \ |
| 42 |
network/createroomdialog.ui \ |
| 43 |
network/friendslistdialog.ui \ |
| 44 |
network/gamedialog.ui \ |
| 45 |
network/login.ui \ |
| 46 |
network/talk_gui.ui \ |
| 47 |
connectionwidget.ui \ |
| 48 |
sgfpreview.ui \ |
| 49 |
newgamedialog.ui \ |
| 50 |
preferences.ui |
| 51 |
|
| 52 |
HEADERS += defines.h \ |
| 53 |
displayboard.h \ |
| 54 |
gamedata.h \ |
| 55 |
listviews.h \ |
| 56 |
mainwindow.h \ |
| 57 |
audio/audio.h \ |
| 58 |
game_tree/group.h \ |
| 59 |
game_tree/matrix.h \ |
| 60 |
game_tree/move.h \ |
| 61 |
game_tree/tree.h \ |
| 62 |
board/board.h \ |
| 63 |
board/boardwindow.h \ |
| 64 |
board/clockdisplay.h \ |
| 65 |
board/gameinfo.h \ |
| 66 |
board/gatter.h \ |
| 67 |
board/imagehandler.h \ |
| 68 |
board/mark.h \ |
| 69 |
board/stone.h \ |
| 70 |
game_interfaces/countdialog.h \ |
| 71 |
game_interfaces/qgoboard.h \ |
| 72 |
game_interfaces/resultdialog.h \ |
| 73 |
game_interfaces/undoprompt.h \ |
| 74 |
gtp/qgtp.h \ |
| 75 |
network/boarddispatch.h \ |
| 76 |
network/codecwarndialog.h \ |
| 77 |
network/consoledispatch.h \ |
| 78 |
network/createroomdialog.h \ |
| 79 |
network/cyberoroconnection.h \ |
| 80 |
network/cyberoroprotocol.h \ |
| 81 |
network/eweiqiconnection.h \ |
| 82 |
network/friendslistdialog.h \ |
| 83 |
network/gamedialog.h \ |
| 84 |
network/gamedialogflags.h \ |
| 85 |
network/igsconnection.h \ |
| 86 |
network/lgs.h \ |
| 87 |
network/login.h \ |
| 88 |
network/matchinvitedialog.h \ |
| 89 |
network/matchnegotiationstate.h \ |
| 90 |
network/messages.h \ |
| 91 |
network/networkconnection.h \ |
| 92 |
network/orosetphrasechat.h \ |
| 93 |
network/playergamelistings.h \ |
| 94 |
network/protocol.h \ |
| 95 |
network/quickconnection.h \ |
| 96 |
network/room.h \ |
| 97 |
network/serverlistdialog.h \ |
| 98 |
network/setphrasepalette.h \ |
| 99 |
network/talk.h \ |
| 100 |
network/tomconnection.h \ |
| 101 |
network/tygemconnection.h \ |
| 102 |
network/tygemprotocol.h \ |
| 103 |
network/wing.h \ |
| 104 |
sgf/sgfparser.h \ |
| 105 |
connectionwidget.h \ |
| 106 |
host.h \ |
| 107 |
sgfpreview.h \ |
| 108 |
game_interfaces/qgoboardlocalinterface.h \ |
| 109 |
newgamedialog.h \ |
| 110 |
game_interfaces/qgoboard_net.h \ |
| 111 |
preferences.h |
| 112 |
|
| 113 |
SOURCES += displayboard.cpp \ |
| 114 |
listviews.cpp \ |
| 115 |
main.cpp \ |
| 116 |
mainwindow.cpp \ |
| 117 |
audio/audio.cpp \ |
| 118 |
board/board.cpp \ |
| 119 |
board/boardwindow.cpp \ |
| 120 |
board/clockdisplay.cpp \ |
| 121 |
board/gameinfo.cpp \ |
| 122 |
board/gatter.cpp \ |
| 123 |
board/imagehandler.cpp \ |
| 124 |
board/mark.cpp \ |
| 125 |
board/stone.cpp \ |
| 126 |
game_interfaces/countdialog.cpp \ |
| 127 |
game_interfaces/qgoboard.cpp \ |
| 128 |
game_interfaces/qgoboard_match.cpp \ |
| 129 |
game_interfaces/qgoboard_network.cpp \ |
| 130 |
game_interfaces/qgoboard_observe.cpp \ |
| 131 |
game_interfaces/qgoboard_review.cpp \ |
| 132 |
game_interfaces/resultdialog.cpp \ |
| 133 |
game_interfaces/undoprompt.cpp \ |
| 134 |
game_tree/matrix.cpp \ |
| 135 |
game_tree/move.cpp \ |
| 136 |
game_tree/tree.cpp \ |
| 137 |
game_tree/group.cpp \ |
| 138 |
gtp/qgtp.cpp \ |
| 139 |
network/boarddispatch.cpp \ |
| 140 |
network/codecwarndialog.cpp \ |
| 141 |
network/consoledispatch.cpp \ |
| 142 |
network/createroomdialog.cpp \ |
| 143 |
network/cyberoroconnection.cpp \ |
| 144 |
network/eweiqiconnection.cpp \ |
| 145 |
network/friendslistdialog.cpp \ |
| 146 |
network/gamedialog.cpp \ |
| 147 |
network/igsconnection.cpp \ |
| 148 |
network/lgs.cpp \ |
| 149 |
network/login.cpp \ |
| 150 |
network/matchinvitedialog.cpp \ |
| 151 |
network/matchnegotiationstate.cpp \ |
| 152 |
network/networkconnection.cpp \ |
| 153 |
network/orosetphrasechat.cpp \ |
| 154 |
network/quickconnection.cpp \ |
| 155 |
network/room.cpp \ |
| 156 |
network/serverlistdialog.cpp \ |
| 157 |
network/setphrasepalette.cpp \ |
| 158 |
network/talk.cpp \ |
| 159 |
network/tomconnection.cpp \ |
| 160 |
network/tygemconnection.cpp \ |
| 161 |
network/wing.cpp \ |
| 162 |
sgf/sgfparser.cpp \ |
| 163 |
connectionwidget.cpp \ |
| 164 |
host.cpp \ |
| 165 |
sgfpreview.cpp \ |
| 166 |
game_interfaces/qgoboardlocalinterface.cpp \ |
| 167 |
newgamedialog.cpp \ |
| 168 |
preferences.cpp |
| •169 |
|
| 170 |
unix*:!macx-* { |
| 171 |
QGO_INSTALL_PATH = /usr/share/qgo |
| 172 |
QGO_INSTALL_BIN_PATH = /usr/games |
| 173 |
|
| 174 |
icon.path = /usr/share/pixmaps |
| 175 |
icon.files = resources/pics/qgo.png |
| 176 |
icon.files += resources/pics/qgo_16x16.xpm |
| 177 |
icon.files += resources/pics/qgo_32x32.xpm |
| 178 |
icon.files += resources/pics/qgo_48x48.png |
| 179 |
icon.files += resources/pics/qgo_48x48.xpm |
| 180 |
INSTALLS += icon |
| 181 |
desktopfile.path = /usr/share/applications |
| 182 |
desktopfile.files = qgo.desktop |
| 183 |
INSTALLS += desktopfile |
| 184 |
} |
| 185 |
|
| 186 |
isEmpty(QMAKE_LRELEASE) { |
| 187 |
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe |
| 188 |
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease |
| 189 |
} |
| 190 |
updateqm.input = TRANSLATIONS |
| 191 |
updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm |
| 192 |
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm |
| 193 |
updateqm.CONFIG += no_link |
| 194 |
QMAKE_EXTRA_COMPILERS += updateqm |
| 195 |
|
| 196 |
PRE_TARGETDEPS += compiler_updateqm_make_all |
| 197 |
|
| 198 |
boardpics.path = $${QGO_INSTALL_PATH}/boardtextures |
| 199 |
boardpics.files = board/resources/pics/barcelona_cherry.png |
| 200 |
boardpics.files += board/resources/pics/eurobeech.png |
| 201 |
boardpics.files += board/resources/pics/goldenbeech.png |
| 202 |
boardpics.files += board/resources/pics/lemontree.png |
| 203 |
boardpics.files += board/resources/pics/manitoba.png |
| 204 |
boardpics.files += board/resources/pics/maple.png |
| 205 |
boardpics.files += board/resources/pics/paper.png |
| 206 |
boardpics.files += board/resources/pics/wood.png |
| 207 |
boardpics.files += board/resources/pics/wood3.png |
| 208 |
boardpics.files += board/resources/pics/wood4.png |
| 209 |
boardpics.files += board/resources/pics/wood5.png |
| 210 |
INSTALLS += boardpics |
| 211 |
|
| 212 |
sounds.path = $${QGO_INSTALL_PATH}/sounds |
| 213 |
sounds.files += resources/sounds/blip.wav |
| 214 |
sounds.files += resources/sounds/buzzer.wav |
| 215 |
sounds.files += resources/sounds/doorbell.wav |
| 216 |
sounds.files += resources/sounds/ns.wav |
| 217 |
sounds.files += resources/sounds/pop.wav |
| 218 |
sounds.files += resources/sounds/static.wav |
| 219 |
sounds.files += resources/sounds/stone.wav |
| 220 |
sounds.files += resources/sounds/timer.wav |
| 221 |
INSTALLS += sounds |
| 222 |
|
| 223 |
target.path = $${QGO_INSTALL_BIN_PATH} |
| 224 |
INSTALLS += target |