From af91bd62bbd4c831add6e666c10078e29163748b Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 1 Oct 2019 11:05:49 +0300 Subject: [PATCH] meson.build: Only depend on git if the profile is development Git is only needed for getting the short sha to append to the version string in the development version of the application. And as such it shouldn't be required for normal builds. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 77d01ad6..6bdfdc8a 100644 --- a/meson.build +++ b/meson.build @@ -34,8 +34,9 @@ calendar_schemadir = join_paths(calendar_datadir, 'glib-2.0', 'schemas') # Options # ########### -rev_txt = run_command('git','rev-parse','--short','HEAD').stdout().strip() if get_option('profile') == 'development' + find_program('git') + rev_txt = run_command('git','rev-parse','--short','HEAD').stdout().strip() profile = 'Devel' name_suffix = ' (Development)' rev = '-@0@'.format(rev_txt)