GIO Tools
-
+
diff --git a/docs/reference/gio/gschema-compile.xml b/docs/reference/gio/glib-compile-schemas.xml
similarity index 90%
rename from docs/reference/gio/gschema-compile.xml
rename to docs/reference/gio/glib-compile-schemas.xml
index d278c0873..9a7e6796a 100644
--- a/docs/reference/gio/gschema-compile.xml
+++ b/docs/reference/gio/glib-compile-schemas.xml
@@ -1,26 +1,26 @@
-
+
- gschema-compile
+ glib-compile-schemas1User Commands
- gschema-compile
+ glib-compile-schemasGSettings schema compiler
- gschema-compile
+ glib-compile-schemasoptiondirectoryDescription
-gschema-compile compiles all the GSettings XML
+glib-compile-schemas compiles all the GSettings XML
schema files in directory into a binary file
with the name gschemas.compiled that can be used
by GSettings. The XML schema
diff --git a/docs/reference/gio/gsettings-schema-convert.xml b/docs/reference/gio/gsettings-schema-convert.xml
index b323a9972..750ebbe8d 100644
--- a/docs/reference/gio/gsettings-schema-convert.xml
+++ b/docs/reference/gio/gsettings-schema-convert.xml
@@ -27,7 +27,7 @@ the result of the conversion.
Note that GSettings schemas need to be converted into binary form
-with gschema-compile before they
+with glib-compile-schemas before they
can be used by applications.
diff --git a/docs/reference/gio/migrating.xml b/docs/reference/gio/migrating.xml
index c60493784..df711af0b 100644
--- a/docs/reference/gio/migrating.xml
+++ b/docs/reference/gio/migrating.xml
@@ -387,7 +387,7 @@ produces a org.gnome.font-rendering.gschema.xml file with t
Schemas are compiled into binary form by the
- gschema-compile utility.
+ glib-compile-schemas utility.
GIO provides a gschema_compile
variable for the schema compiler, which can be used in
configure.in as follows:
@@ -404,7 +404,7 @@ gsettingsschema_DATA = my.app.gschema.xml
@GSETTINGS_CHECK_RULE@
if GSETTINGS_SCHEMAS_INSTALL
install-data-hook:
- $(gschema_compile) $(DESTDIR)$(gsettingsschemadir)
+ $(GLIB_COMPILE_SCHEMAS) $(DESTDIR)$(gsettingsschemadir)
endif
@@ -504,7 +504,7 @@ endif
were in GConf, so that existing settings in the users GConf
database are preserved. You can achieve this by using the
with the
- gschema-compile schema
+ glib-compile-schemas schema
compiler. Note that this option is only meant
to ease the process of porting your application, allowing parts
of your application to continue to access GConf and parts to use
diff --git a/gio-2.0.pc.in b/gio-2.0.pc.in
index 729799285..a7ba443f5 100644
--- a/gio-2.0.pc.in
+++ b/gio-2.0.pc.in
@@ -4,7 +4,7 @@ libdir=@libdir@
includedir=@includedir@
giomoduledir=@GIO_MODULE_DIR@
-gschema_compile=@bindir@/gschema-compile
+glib_compile_schemas=@bindir@/gschema-compile
Name: GIO
Description: glib I/O library
diff --git a/gio/Makefile.am b/gio/Makefile.am
index 7eebda9de..b0af5df8e 100644
--- a/gio/Makefile.am
+++ b/gio/Makefile.am
@@ -497,7 +497,7 @@ gio-2.0.lib: libgio-2.0.la gio.def
lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
dist_bin_SCRIPTS = gsettings-schema-convert
-bin_PROGRAMS = gio-querymodules gschema-compile gsettings
+bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
gio_querymodules_SOURCES = gio-querymodules.c
gio_querymodules_LDADD = \
@@ -507,8 +507,8 @@ gio_querymodules_LDADD = \
libgio-2.0.la \
$(NULL)
-gschema_compile_LDADD = $(top_builddir)/glib/libglib-2.0.la
-gschema_compile_SOURCES = \
+glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
+glib_compile_schemas_SOURCES = \
gvdb/gvdb-format.h \
gvdb/gvdb-builder.h \
gvdb/gvdb-builder.c \
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 19bb680f8..3817be012 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -70,8 +70,9 @@
* key element.
*
* GSettings uses schemas in a compact binary form that is created
- * by the gschema-compile utility. The input is a schema description in
- * an XML format that can be described by the following DTD:
+ * by the glib-compile-schemas
+ * utility. The input is a schema description in an XML format that can be
+ * described by the following DTD:
* |[
*
diff --git a/gio/tests/gschema-compile.c b/gio/tests/gschema-compile.c
index 56c255557..8939955e2 100644
--- a/gio/tests/gschema-compile.c
+++ b/gio/tests/gschema-compile.c
@@ -21,7 +21,7 @@ test_schema (gpointer data)
gchar *filename = g_strconcat (test->name, ".gschema.xml", NULL);
gchar *path = g_build_filename (SRCDIR, "schema-tests", filename, NULL);
gchar *argv[] = {
- "../gschema-compile",
+ "../glib-compile-schemas",
"--dry-run",
"--schema-files", path,
(gchar *)test->opt,
diff --git a/m4macros/gsettings.m4 b/m4macros/gsettings.m4
index 2935246ae..b97867d41 100644
--- a/m4macros/gsettings.m4
+++ b/m4macros/gsettings.m4
@@ -7,24 +7,29 @@ AC_DEFUN([GLIB_GSETTINGS],
[
AC_ARG_ENABLE(schemas-install,
AC_HELP_STRING([--disable-schemas-install],
- [Disable the schemas installation]),
+ [Disable installation of GSettings schemas]),
[case ${enableval} in
yes|no) ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
esac])
AM_CONDITIONAL([GSETTINGS_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
+ PKG_PROG_PKG_CONFIG([0.16])
+
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
- AC_SUBST(gschema_compile, `pkg-config --variable gschema_compile gio-2.0`)
+ AC_SUBST(GLIB_COMPILE_SCHEMAS, `$PKG_CONFIG --variable glib_compile_schemas gio-2.0`)
+ if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
+ AC_MSG_ERROR([glib-compile-schemas not found.])
+ fi
GSETTINGS_CHECK_RULE='
.PHONY : check-gsettings-schema
gschema_xml_files := $(wildcard *.gschema.xml)
check-gsettings-schema: gsettings_schema_validate_stamp
-CLEANFILES += gsettings_schema_validate_stamp
+MOSTLYCLEANFILES += gsettings_schema_validate_stamp
gsettings_schema_validate_stamp: $(gschema_xml_files)
- $(gschema_compile) --dry-run --schema-files $?
+ $(GLIB_COMPILE_SCHEMAS) --dry-run --schema-files $?
touch [$]@
all: check-gsettings-schema