mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
Doc: copy included example files
This fix missing files when src_dir != build_dir. https://bugzilla.gnome.org/show_bug.cgi?id=734469
This commit is contained in:
parent
ee718d3526
commit
86a7c864b3
@ -126,6 +126,22 @@ HTML_IMAGES = \
|
||||
menu-example.png \
|
||||
menu-model.png
|
||||
|
||||
example_files = \
|
||||
gdbus-example-objectmanager.xml \
|
||||
gdbus-example-objectmanager-server.c \
|
||||
gdbus-example-objectmanager-client.c \
|
||||
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml \
|
||||
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \
|
||||
$(NULL)
|
||||
|
||||
gdbus-example-objectmanager.xml: %: $(top_srcdir)/gio/tests/gdbus-object-manager-example/%
|
||||
gdbus-example-objectmanager-server.c: %: $(top_srcdir)/gio/tests/%
|
||||
gdbus-example-objectmanager-client.c: %: $(top_srcdir)/gio/tests/%
|
||||
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml: %: $(top_builddir)/gio/tests/gdbus-object-manager-example/%
|
||||
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml: %: $(top_builddir)/gio/tests/gdbus-object-manager-example/%
|
||||
$(example_files):
|
||||
cp $< $@
|
||||
|
||||
content_files = \
|
||||
version.xml \
|
||||
overview.xml \
|
||||
@ -141,6 +157,7 @@ content_files = \
|
||||
gresource.xml \
|
||||
gdbus.xml \
|
||||
gdbus-codegen.xml \
|
||||
$(example_files) \
|
||||
$(NULL)
|
||||
|
||||
expand_content_files = \
|
||||
@ -192,7 +209,7 @@ XSLTPROC_FLAGS = \
|
||||
endif
|
||||
|
||||
CLEANFILES ?=
|
||||
CLEANFILES += $(man_MANS)
|
||||
CLEANFILES += $(man_MANS) $(example_files)
|
||||
|
||||
EXTRA_DIST += $(man_MANS)
|
||||
|
||||
|
@ -254,7 +254,7 @@ on_name_acquired (GDBusConnection *connection,
|
||||
linkend="gdbus-codegen">gdbus-codegen</link></command> is used and like
|
||||
its counterpart, it also takes D-Bus Introspection XML as input:
|
||||
</para>
|
||||
<example id="gdbus-example-codegen-input"><title>Example D-Bus Introspection XML</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-object-manager-example/gdbus-example-objectmanager.xml"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
<example id="gdbus-example-codegen-input"><title>Example D-Bus Introspection XML</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../gdbus-example-objectmanager.xml"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
<para>
|
||||
If this XML is processed like this
|
||||
<informalexample><programlisting><![CDATA[
|
||||
@ -291,14 +291,14 @@ gdbus-codegen --interface-prefix org.gtk.GDBus.Example.ObjectManager. \
|
||||
#ExampleObjectManagerClient pages for documentation.
|
||||
</para>
|
||||
|
||||
<example id="gdbus-example-codegen-server"><title>Server-side application using generated code</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-objectmanager-server.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
<example id="gdbus-example-codegen-server"><title>Server-side application using generated code</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../gdbus-example-objectmanager-server.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
|
||||
<example id="gdbus-example-codegen-client"><title>Client-side application using generated code</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-objectmanager-client.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
<example id="gdbus-example-codegen-client"><title>Client-side application using generated code</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../gdbus-example-objectmanager-client.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
|
||||
|
||||
</section>
|
||||
|
||||
<xi:include href="../../../../gio/tests/gdbus-object-manager-example/gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml"/>
|
||||
<xi:include href="../../../../gio/tests/gdbus-object-manager-example/gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml"/>
|
||||
<xi:include href="../gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml"/>
|
||||
<xi:include href="../gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml"/>
|
||||
<xi:include href="../gdbus-object-manager-example/xml/ExampleAnimal.xml"/>
|
||||
<xi:include href="../gdbus-object-manager-example/xml/ExampleCat.xml"/>
|
||||
<xi:include href="../gdbus-object-manager-example/xml/ExampleObject.xml"/>
|
||||
|
Loading…
Reference in New Issue
Block a user