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
)
28 DEFINES
+= SLOPPYGUI_VERSION
=\"$$SLOPPYGUI_VERSION
\"
30 DEFINES
+= SLOPPYGUI_VERSION
=\\\"$$SLOPPYGUI_VERSION
\\\"
40 HEADERS
= src
/graphicschessboardsquareitem
.h \
41 src
/graphicschessboarditem
.h \
42 src
/graphicschesspiece
.h \
43 src
/chessboardview
.h \
58 src
/engineconfiguration
.h \
59 src
/engineconfigurationmodel
.h \
62 src
/chessboard
/chessboard
.h \
63 src
/chessboard
/chessmove
.h \
64 src
/chessboard
/magicmoves
.h \
65 src
/chessboard
/movegen
.h \
66 src
/chessboard
/notation
.h \
67 src
/chessboard
/util
.h \
68 src
/chessboard
/zobrist
.h
70 SOURCES
= src
/main
.cpp \
71 src
/graphicschessboardsquareitem
.cpp \
72 src
/graphicschessboarditem
.cpp \
73 src
/graphicschesspiece
.cpp \
74 src
/chessboardview
.cpp \
78 src
/stdoutlogger
.cpp \
82 src
/promotiondlg
.cpp \
87 src
/engineconfiguration
.cpp \
88 src
/engineconfigurationmodel
.cpp \
89 src
/xboardengine
.cpp \
92 src
/chessboard
/chessboard
.cpp \
93 src
/chessboard
/chessmove
.cpp \
94 src
/chessboard
/magicmoves
.cpp \
95 src
/chessboard
/makemove
.cpp \
96 src
/chessboard
/movegen
.cpp \
97 src
/chessboard
/notation
.cpp \
98 src
/chessboard
/util
.cpp \
99 src
/chessboard
/zobrist
.cpp
101 FORMS
= ui
/newgamedlg
.ui
104 RESOURCES
= res
/chessboard
/chessboard
.qrc
112 # API documentation (Doxygen)
113 doc
-api
.commands
= doxygen docs
/api
/api
.doxygen
114 QMAKE_EXTRA_TARGETS
+= doc
-api
117 unix
:doc
-man
.commands
= a2x
-f manpage docs
/man
/sloppygui
.6.txt
118 unix
:QMAKE_EXTRA_TARGETS
+= doc
-man