[totem] build: Enable validation of the AppData file
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] build: Enable validation of the AppData file
- Date: Fri, 10 Jan 2014 18:56:05 +0000 (UTC)
commit 5c345b9e12ff634325df92d14eddf10ee7d9b232
Author: Philip Withnall <philip tecnocode co uk>
Date: Fri Dec 20 23:29:38 2013 +0000
build: Enable validation of the AppData file
Add a build-time dependency on appdata-tools to enable validation of the
AppData file during `make check`. See:
https://github.com/hughsie/appdata-tools.
This also requires an up-to-date version of gnome-common to pull in the
appdata-xml.m4 macros.
https://bugzilla.gnome.org/show_bug.cgi?id=720854
Makefile.am | 8 +++++++-
configure.ac | 2 ++
data/appdata/Makefile.am | 10 ++++++----
3 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index d0f98e0..ce5b933 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -37,7 +37,13 @@ MAINTAINERCLEANFILES = \
DISTCLEANFILES = intltool-extract intltool-merge intltool-update
DIST_SUBDIRS = $(NORMAL_SUBDIRS) browser-plugin
-DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper --enable-gtk-doc
--with-nautilusdir='$${libdir}/nautilus/extensions-2.0-distcheck' --enable-vala=no --enable-introspection
+DISTCHECK_CONFIGURE_FLAGS = \
+ --disable-scrollkeeper \
+ --enable-gtk-doc \
+ --with-nautilusdir='$${libdir}/nautilus/extensions-2.0-distcheck' \
+ --enable-vala=no \
+ --enable-introspection \
+ --enable-appdata-validate
# Build ChangeLog from GIT history
ChangeLog:
diff --git a/configure.ac b/configure.ac
index 4ec1ec4..3dcfc7c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -602,6 +602,8 @@ GNOME_CXX_WARNINGS
GNOME_MAINTAINER_MODE_DEFINES
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
+APPDATA_XML
+
# This macro expands DIR and assigns it to RET.
# If DIR is NONE, then it's replaced by DEFAULT.
# Based on AC_DEFINE_DIR
diff --git a/data/appdata/Makefile.am b/data/appdata/Makefile.am
index d82e59b..b6e6823 100644
--- a/data/appdata/Makefile.am
+++ b/data/appdata/Makefile.am
@@ -1,7 +1,9 @@
# AppData
+ APPDATA_XML_RULES@
@INTLTOOL_XML_RULE@
-appdatadir = $(datadir)/appdata
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
appdata_in_files = totem.appdata.xml.in
-EXTRA_DIST = $(appdata_in_files})
-CLEANFILES = $(appdata_DATA)
+appdata_XML = $(appdata_in_files:.xml.in=.xml)
+
+EXTRA_DIST = $(appdata_in_files)
+CLEANFILES = $(appdata_XML)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]