[glib] Use native glib-compile-schemas when cross compiling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Use native glib-compile-schemas when cross compiling
- Date: Tue, 15 Jun 2010 04:41:29 +0000 (UTC)
commit b079d6a54616514e80b552ebe0a42f45e379b0e8
Author: Hib Eris <hib hiberis nl>
Date: Tue Jun 15 00:38:35 2010 -0400
Use native glib-compile-schemas when cross compiling
configure.in | 8 +++++++-
gio/tests/Makefile.am | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 02860f1..1c71637 100644
--- a/configure.in
+++ b/configure.in
@@ -2732,7 +2732,8 @@ int error = EILSEQ;
AC_MSG_RESULT($have_eilseq)
dnl ******************************************************************
-dnl *** Look for glib-genmarshal in PATH if we are cross-compiling ***
+dnl *** If we are cross-compiling, look for glib-genmarshal and ***
+dnl *** glib-compile-schemas in PATH ***
dnl ******************************************************************
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
@@ -2742,6 +2743,11 @@ if test $cross_compiling = yes; then
if test x$GLIB_GENMARSHAL = xno; then
AC_MSG_ERROR(Could not find a glib-genmarshal in your PATH)
fi
+
+ AC_PATH_TOOL(GLIB_COMPILE_SCHEMAS, glib-compile-schemas, no)
+ if test x$GLIB_COMPILE_SCHEMAS = xno; then
+ AC_MSG_ERROR(Could not find a glib-compile-schemas in your PATH)
+ fi
fi
dnl **************************
diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am
index 0abfa5a..aaad1c1 100644
--- a/gio/tests/Makefile.am
+++ b/gio/tests/Makefile.am
@@ -313,8 +313,14 @@ test.mo: de.po
$(MKDIR_P) de/LC_MESSAGES; \
cp -f test.mo de/LC_MESSAGES
+if CROSS_COMPILING
+ glib_compile_schemas=$(GLIB_COMPILE_SCHEMAS)
+else
+ glib_compile_schemas=$(top_builddir)/gio/glib-compile-schemas
+endif
+
gschemas.compiled:
- $(top_builddir)/gio/glib-compile-schemas --targetdir=$(abs_builddir) $(srcdir)
+ $(glib_compile_schemas) --targetdir=$(abs_builddir) $(srcdir)
DISTCLEANFILES = \
applications/mimeinfo.cache \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]