[shotwell/wip/autotools: 20/27] build: Hook up desktop files
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/autotools: 20/27] build: Hook up desktop files
- Date: Tue, 28 Jun 2016 22:49:55 +0000 (UTC)
commit b993ec855063b8025eec776f920ea20c122b04d1
Author: Jens Georg <mail jensge org>
Date: Tue Jun 28 22:25:47 2016 +0200
build: Hook up desktop files
Signed-off-by: Jens Georg <mail jensge org>
misc/Makefile.am | 11 +++++++++++
....desktop.head => shotwell-viewer.desktop.in.in} | 0
...hotwell.desktop.head => shotwell.desktop.in.in} | 0
3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/misc/Makefile.am b/misc/Makefile.am
index f72a945..db7315a 100644
--- a/misc/Makefile.am
+++ b/misc/Makefile.am
@@ -5,5 +5,16 @@ gsettings_SCHEMAS = \
appdata_XML = \
shotwell.appdata.xml
+desktopdir = $(datadir)/applications
+desktop_in_files = $(srcdir)/shotwell.desktop.in $(srcdir)/shotwell-viewer.desktop.in
+desktop_DATA = shotwell.desktop shotwell-viewer.desktop
+
+$(desktop_in_files): $(srcdir)/shotwell.desktop.in.in $(srcdir)/shotwell-viewer.desktop.in.in
+ $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
+
+# Substitute variables in a Desktop Entry file.
+$(desktop_DATA): $(desktop_in_files)
+ $(AM_V_GEN) sed -e 's|@VERSION[ ]|$(VERSION)|g' $< > $@
+
@GSETTINGS_RULES@
@APPDATA_XML_RULES@
diff --git a/misc/shotwell-viewer.desktop.head b/misc/shotwell-viewer.desktop.in.in
similarity index 100%
rename from misc/shotwell-viewer.desktop.head
rename to misc/shotwell-viewer.desktop.in.in
diff --git a/misc/shotwell.desktop.head b/misc/shotwell.desktop.in.in
similarity index 100%
rename from misc/shotwell.desktop.head
rename to misc/shotwell.desktop.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]