Pārlūkot izejas kodu

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 10 gadi atpakaļ
vecāks
revīzija
a4f519eaeb
4 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  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