[gnome-calendar] meson.build: Only depend on git if the profile is development
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] meson.build: Only depend on git if the profile is development
- Date: Tue, 1 Oct 2019 12:55:45 +0000 (UTC)
commit af91bd62bbd4c831add6e666c10078e29163748b
Author: Jordan Petridis <jpetridis gnome org>
Date: Tue Oct 1 11:05:49 2019 +0300
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]