mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +01:00
Update GSettings porting guide for new m4 macro
This commit is contained in:
parent
0d322e77a5
commit
662f97fefb
@ -392,15 +392,19 @@ produces a <filename>org.gnome.font-rendering.gschema.xml</filename> file with t
|
|||||||
variable for the schema compiler, which can be used in
|
variable for the schema compiler, which can be used in
|
||||||
<filename>configure.in</filename> as follows:
|
<filename>configure.in</filename> as follows:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
AC_SUBST(gsettingsupdateschemacache, `pkg-config --variable gsettingsupdateschemacache gio-2.0`)
|
AM_GSETTINGS
|
||||||
</programlisting>
|
</programlisting>
|
||||||
The corresponding <filename>Makefile.am</filename> fragment looks like
|
The corresponding <filename>Makefile.am</filename> fragment looks like
|
||||||
this:
|
this:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
gsettingsschemadir = $(prefix)/glib-2.0/schemas
|
# gsettingsschemadir is defined by the AM_GSETTINGS macro in configure.ac
|
||||||
gsettingsschema_DATA = my.app.gschema.xml
|
gsettingsschema_DATA = my.app.gschema.xml
|
||||||
|
# This rule will check your schemas for validity before installation
|
||||||
|
@GSETTINGS_CHECK_RULE@
|
||||||
|
if GSETTINGS_SCHEMAS_INSTALL
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
$(gsettingsupdateschemacache) $(DESTDIR)$(gsettingsschemadir)
|
$(gsettingsupdateschemacache) $(DESTDIR)$(gsettingsschemadir)
|
||||||
|
endif
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user