Explorar o código

Reduce the amount of rebuild needed after a git commit

Since GIT_SHA1 would need to be updated in config.h, all files
including it would be rebuilt by make.

Reduce the number of files to rebuild by moving this variable
to version.h instead.
Jocelyn Turcotte %!s(int64=10) %!d(string=hai) anos
pai
achega
a4f519eaeb
Modificáronse 4 ficheiros con 2 adicións e 3 borrados
  1. 0 1
      config.h.in
  2. 0 1
      src/cmd/cmd.cpp
  3. 0 1
      src/gui/updater/ocupdater.cpp
  4. 2 0
      src/libsync/version.h.in

+ 0 - 1
config.h.in

@@ -7,7 +7,6 @@
 #cmakedefine CRASHREPORTER_EXECUTABLE "@CRASHREPORTER_EXECUTABLE@"
 
 
-#cmakedefine GIT_SHA1 "@GIT_SHA1@"
 #cmakedefine APPLICATION_DOMAIN @APPLICATION_DOMAIN@
 #cmakedefine THEME_CLASS @THEME_CLASS@
 #cmakedefine THEME_INCLUDE @THEME_INCLUDE@

+ 0 - 1
src/cmd/cmd.cpp

@@ -34,7 +34,6 @@
 #include "theme.h"
 #include "netrcparser.h"
 
-#include "version.h"
 #include "config.h"
 
 #ifdef Q_OS_WIN32

+ 0 - 1
src/gui/updater/ocupdater.cpp

@@ -13,7 +13,6 @@
  */
 
 #include "theme.h"
-#include "version.h"
 #include "configfile.h"
 #include "utility.h"
 #include "accessmanager.h"

+ 2 - 0
src/libsync/version.h.in

@@ -15,6 +15,8 @@
 #ifndef VERSION_H
 #define VERSION_H
 
+#cmakedefine GIT_SHA1 "@GIT_SHA1@"
+
 #define MIRALL_STRINGIFY(s) MIRALL_TOSTRING(s)
 #define MIRALL_TOSTRING(s) #s