1 SLOPPYGUI_VERSION
= unknown
3 # Check if the version file exists.
6 # If the version file exists, use its contents as the version number
7 SLOPPYGUI_VERSION
= $$
system(cat version
)
10 # If the version file doesn't exist, check if we have
14 # Check if we can describe this commit
15 system(git describe > /dev/null 2> /dev/null) {
17 # If we can, describe it
18 SLOPPYGUI_VERSION = $$system(git describe)
21 # If we can't describe it, parse the sha id and use that
22 SLOPPYGUI_VERSION
= git
-$$
system(git rev
-parse
--short HEAD
)
27 DEFINES
+= SLOPPYGUI_VERSION
='\'"$$SLOPPYGUI_VERSION"\''
36 HEADERS
= src
/graphicschessboardsquareitem
.h \
37 src
/graphicschessboarditem
.h \
38 src
/graphicschesspiece
.h \
39 src
/chessboardview
.h \
54 src
/chessboard
/chessboard
.h \
55 src
/chessboard
/chessmove
.h \
56 src
/chessboard
/magicmoves
.h \
57 src
/chessboard
/movegen
.h \
58 src
/chessboard
/notation
.h \
59 src
/chessboard
/util
.h \
60 src
/chessboard
/zobrist
.h
62 SOURCES
= src
/graphicschessboardsquareitem
.cpp \
63 src
/graphicschessboarditem
.cpp \
64 src
/graphicschesspiece
.cpp \
65 src
/chessboardview
.cpp \
68 src
/stdoutlogger
.cpp \
72 src
/promotiondlg
.cpp \
78 src
/xboardengine
.cpp \
80 src
/chessboard
/chessboard
.cpp \
81 src
/chessboard
/chessmove
.cpp \
82 src
/chessboard
/magicmoves
.cpp \
83 src
/chessboard
/makemove
.cpp \
84 src
/chessboard
/movegen
.cpp \
85 src
/chessboard
/notation
.cpp \
86 src
/chessboard
/util
.cpp \
87 src
/chessboard
/zobrist
.cpp
89 RESOURCES
= res
/chessboard
/chessboard
.qrc
95 # API documentation (Doxygen)
96 doc
-api
.commands
= doxygen docs
/api
/api
.doxygen
97 QMAKE_EXTRA_TARGETS
+= doc
-api
100 unix
:doc
-man
.commands
= a2x
-f manpage docs
/man
/sloppygui
.6.txt
101 unix
:QMAKE_EXTRA_TARGETS
+= doc
-man