[shotwell] build: Make shotwell depend on generated version.h



commit 6dce43a75acb0b28761fc3ca68d22fc50a873e7f
Author: Jens Georg <mail jensge org>
Date:   Mon Sep 24 13:42:50 2018 +0200

    build: Make shotwell depend on generated version.h

 meson.build     | 3 ++-
 src/meson.build | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 44d001e4..13446b52 100644
--- a/meson.build
+++ b/meson.build
@@ -30,7 +30,8 @@ add_global_arguments(['--target-glib=2.40',
                       '--enable-experimental',
                       '--enable-deprecated'], language : 'vala')
 
-vcs_tag(command: ['git', 'rev-parse', 'HEAD'], input: 'version.h.in', output: 'version.h', fallback: '')
+version_h = vcs_tag(command: ['git', 'rev-parse', 'HEAD'], input: 'version.h.in', output: 'version.h', 
fallback: '')
+version = declare_dependency(sources : version_h, include_directories : include_directories('.'))
 
 gtk = dependency('gtk+-3.0', version : '>= 3.22')
 gio = dependency('gio-2.0', version: '>= 2.40')
diff --git a/src/meson.build b/src/meson.build
index 4f501b42..45ac436b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -32,7 +32,7 @@ endif
 
 shotwell_deps = [gio, gee, sqlite, gtk, sqlite, posix, gphoto2,
                  gstreamer_pbu, gio_unix, gudev, gexiv2, gmodule,
-                 libraw, libexif, sw_plugin, webpdemux, webp]
+                 libraw, libexif, sw_plugin, webpdemux, webp, version]
 if unity_available
     shotwell_deps += [unity]
 endif


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