genversion-B-GONE
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 16 Mar 2014 20:42:51 +0000 (21:42 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 16 Mar 2014 20:42:51 +0000 (21:42 +0100)
commit9fb825b46a6ab188d32ed91f1aca34726aa69781
tree54b9d6df87446044f90a80f6ad18ab437ebf197d
parent933f2d9f203bc5fabf3040d9361ba4e0cb637b9b
genversion-B-GONE

Back in the day, we wanted to have information about the git hash a
particular Quassel binary was built from in the About dialog, to allow
for diagnostic purposes. However, we didn't manage to retrieve that
kind of information using CMake alone (we're talking CMake 2.4 here, too);
so we came up with the hack to compile a small binary that would be run
at build time and called the git executable in order to write version
information into a file.

This is not particularly nice, as running random binaries at build time is
frowned upon and can cause problems in some setups, and of course we have
the overhead of building it first.

Meanwhile, we found a nice set of CMake macros created by Ryan Pavlik that
would retrieve that information purely running Git commands, making genversion
obsolete. Together with the configure_file feature of CMake, this allows us
to do this more elegantly.

So gone is genversion, and also the good old trusted version.inc file...
.gitattributes
CMakeLists.txt
cmake/modules/GetGitRevisionDescription.cmake [new file with mode: 0644]
cmake/modules/GetGitRevisionDescription.cmake.in [new file with mode: 0644]
src/CMakeLists.txt
src/common/genversion.cpp [deleted file]
src/common/main.cpp
src/common/quassel.cpp
src/common/quassel.h
version.h.in [new file with mode: 0644]
version.inc [deleted file]