forked from coolchess123/tceccutechess
-
Notifications
You must be signed in to change notification settings - Fork 10
/
cutechess.pro
30 lines (25 loc) · 1.03 KB
/
cutechess.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
contains(QT_VERSION, ^4\\..*|^5\\.[0-6]\\..*) {
message("Cannot build Cute Chess with Qt version $${QT_VERSION}.")
error("Qt version 5.7 or later is required.")
}
TEMPLATE = subdirs
SUBDIRS = projects
# API documentation (Doxygen)
doc-api.commands = doxygen docs/api/api.doxygen
QMAKE_EXTRA_TARGETS += doc-api
# Documentation in HTML format
doc-html.commands = \
mandoc -Thtml -Ostyle=man-style.css docs/cutechess-cli.6 > docs/cutechess-cli.6.html; \
mandoc -Thtml -Ostyle=man-style.css docs/engines.json.5 > docs/engines.json.5.html
QMAKE_EXTRA_TARGETS += doc-html
QMAKE_DISTCLEAN += docs/cutechess-cli.6.html
QMAKE_DISTCLEAN += docs/engines.json.5.html
# Documentation in text format
doc-txt.commands = \
mandoc -Tascii docs/cutechess-cli.6 | col -b > docs/cutechess-cli.6.txt; \
mandoc -Tascii docs/engines.json.5 | col -b > docs/engines.json.5.txt
QMAKE_EXTRA_TARGETS += doc-txt
QMAKE_DISTCLEAN += docs/cutechess-cli.6.txt
QMAKE_DISTCLEAN += docs/engines.json.5.txt
TRANSLATIONS += \
translations/cutechess_zh_CN.ts