Commit de0bb427 authored by Hib Eris's avatar Hib Eris Committed by Bastien Nocera
Browse files

Disable checks when cross compiling

parent 1f3c3f46
...@@ -79,6 +79,9 @@ create-pot: ...@@ -79,6 +79,9 @@ create-pot:
$(AM_V_GEN) $(MAKE) -C po shared-mime-info.pot $(AM_V_GEN) $(MAKE) -C po shared-mime-info.pot
check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-translations check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-translations
if CROSS_COMPILING
@echo "Cross compiling: Skipping checks"
else
if test -e $(top_builddir)/freedesktop.org.xml; then \ if test -e $(top_builddir)/freedesktop.org.xml; then \
xmllint --noout --valid $(top_builddir)/freedesktop.org.xml || exit 1; \ xmllint --noout --valid $(top_builddir)/freedesktop.org.xml || exit 1; \
else \ else \
...@@ -103,6 +106,7 @@ check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-transl ...@@ -103,6 +106,7 @@ check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-transl
fi fi
@echo Number of mime-types that might need generic-icon: `grep "mime-type type=" $(srcdir)/freedesktop.org.xml.in | grep -v video/ | grep -v image/ | grep -v text/ | grep -v audio/ | grep -v "octet-stream" | wc -l` ; \ @echo Number of mime-types that might need generic-icon: `grep "mime-type type=" $(srcdir)/freedesktop.org.xml.in | grep -v video/ | grep -v image/ | grep -v text/ | grep -v audio/ | grep -v "octet-stream" | wc -l` ; \
echo Number of mime-types with a generic icon: `grep "generic-icon name=" $(srcdir)/freedesktop.org.xml.in | wc -l` ; echo Number of mime-types with a generic icon: `grep "generic-icon name=" $(srcdir)/freedesktop.org.xml.in | wc -l` ;
endif
check-translations: check-translations:
@for i in $(top_srcdir)/po/*.po ; do \ @for i in $(top_srcdir)/po/*.po ; do \
......
...@@ -20,6 +20,9 @@ GETTEXT_PACKAGE=shared-mime-info ...@@ -20,6 +20,9 @@ GETTEXT_PACKAGE=shared-mime-info
AC_SUBST(GETTEXT_PACKAGE) AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT AM_GLIB_GNU_GETTEXT
dnl Check for cross compiling
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
dnl Check whether libxml and glib are present is installed dnl Check whether libxml and glib are present is installed
PKG_CHECK_MODULES(ALL, \ PKG_CHECK_MODULES(ALL, \
libxml-2.0 >= 2.4 \ libxml-2.0 >= 2.4 \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment