[nautilus/gnome-3-28] meson: Always show the git sha commit in about dialog



commit 6309f75044cda9780af5ec370c637cd8b49abfcc
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Mar 19 10:31:20 2018 +0100

    meson: Always show the git sha commit in about dialog
    
    We remove a bit of complexity in the meson file, and it's not that bad
    to always show it there.

 meson.build | 29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)
---
diff --git a/meson.build b/meson.build
index e37583f8a..74bb46cf5 100644
--- a/meson.build
+++ b/meson.build
@@ -128,26 +128,17 @@ if get_option('selinux')
   conf.set10('HAVE_SELINUX', true)
 endif
 
-if true or get_option('profile') == 'development'
-  config_h = declare_dependency(
-    sources: vcs_tag(
-      command: ['git', 'rev-parse', '--short', 'HEAD'],
-      fallback: 'devel',
-      input: configure_file(
-        output: 'config.h.in',
-        configuration: conf
-      ),
-      output: 'config.h'
-    )
+config_h = declare_dependency(
+  sources: vcs_tag(
+    command: ['git', 'rev-parse', '--short', 'HEAD'],
+    fallback: 'devel',
+    input: configure_file(
+      output: 'config.h.in',
+      configuration: conf
+    ),
+    output: 'config.h'
   )
-else
-  configure_file(
-    output: 'config.h',
-    configuration: conf
-  )
-  config_h = dependency('', required: false)
-endif
-#
+)
 
 nautilus_include_dirs = include_directories(
   '.',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]