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 \
53 src
/engineconfiguration
.h \
54 src
/engineconfigurationmodel
.h \
57 src
/chessboard
/chessboard
.h \
58 src
/chessboard
/chessmove
.h \
59 src
/chessboard
/magicmoves
.h \
60 src
/chessboard
/movegen
.h \
61 src
/chessboard
/notation
.h \
62 src
/chessboard
/util
.h \
63 src
/chessboard
/zobrist
.h
65 SOURCES
= src
/graphicschessboardsquareitem
.cpp \
66 src
/graphicschessboarditem
.cpp \
67 src
/graphicschesspiece
.cpp \
68 src
/chessboardview
.cpp \
71 src
/stdoutlogger
.cpp \
75 src
/promotiondlg
.cpp \
81 src
/engineconfiguration
.cpp \
82 src
/engineconfigurationmodel
.cpp \
83 src
/xboardengine
.cpp \
86 src
/chessboard
/chessboard
.cpp \
87 src
/chessboard
/chessmove
.cpp \
88 src
/chessboard
/magicmoves
.cpp \
89 src
/chessboard
/makemove
.cpp \
90 src
/chessboard
/movegen
.cpp \
91 src
/chessboard
/notation
.cpp \
92 src
/chessboard
/util
.cpp \
93 src
/chessboard
/zobrist
.cpp
95 FORMS
= ui
/newgamedlg
.ui
98 RESOURCES
= res
/chessboard
/chessboard
.qrc
104 # API documentation (Doxygen)
105 doc
-api
.commands
= doxygen docs
/api
/api
.doxygen
106 QMAKE_EXTRA_TARGETS
+= doc
-api
109 unix
:doc
-man
.commands
= a2x
-f manpage docs
/man
/sloppygui
.6.txt
110 unix
:QMAKE_EXTRA_TARGETS
+= doc
-man