[shotwell/shotwell-0.30] build: Make shotwell depend on generated version.h
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/shotwell-0.30] build: Make shotwell depend on generated version.h
- Date: Sun, 27 Mar 2022 15:59:16 +0000 (UTC)
commit d1696f85f9f1f8a6de6a4a73a7fa852880b14296
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 11aa7fa1..42104ea4 100644
--- a/meson.build
+++ b/meson.build
@@ -29,7 +29,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('.'))
if get_option('fatal_warnings')
add_global_arguments(
[
diff --git a/src/meson.build b/src/meson.build
index 62c04244..d8d97ac6 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, gdk]
+ libraw, libexif, sw_plugin, gdk, version]
if unity_available
shotwell_deps += [unity]
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]