1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY gobject-introspection-download-http
|
---|
8 | "&gnome-download-http;/gobject-introspection/1.72/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
9 | <!ENTITY gobject-introspection-download-ftp
|
---|
10 | "&gnome-download-ftp;/gobject-introspection/1.72/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
11 | <!ENTITY gobject-introspection-md5sum "13cbf9bca8f906ee275c8b107311d815">
|
---|
12 | <!ENTITY gobject-introspection-size "1.0 MB">
|
---|
13 | <!ENTITY gobject-introspection-buildsize "42 MB (with tests)">
|
---|
14 | <!ENTITY gobject-introspection-time "0.2 SBU (With tests; both using parallelism=4)">
|
---|
15 | ]>
|
---|
16 | <sect1 id="gobject-introspection" xreflabel="gobject-introspection-&gobject-introspection-version;">
|
---|
17 | <?dbhtml filename="gobject-introspection.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>gobject-introspection-&gobject-introspection-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="gobject-introspection">
|
---|
26 | <primary sortas="a-gobject-introspection">gobject-introspection</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to GObject Introspection</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The <application>GObject Introspection</application> is used
|
---|
34 | to describe the program APIs and collect them in a uniform,
|
---|
35 | machine readable format.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | &lfs111_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (HTTP): <ulink url="&gobject-introspection-download-http;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (FTP): <ulink url="&gobject-introspection-download-ftp;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download MD5 sum: &gobject-introspection-md5sum;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download size: &gobject-introspection-size;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated disk space required: &gobject-introspection-buildsize;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated build time: &gobject-introspection-time;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect3">GObject Introspection Dependencies</bridgehead>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
77 | <para role="required">
|
---|
78 | <xref linkend="glib2"/>
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
82 | <para role="optional">
|
---|
83 | <xref linkend="cairo"/> (required for the tests),
|
---|
84 | <xref linkend="gjs"/> (to satisfy one test),
|
---|
85 | <xref linkend="gtk-doc"/>,
|
---|
86 | <xref linkend="Mako"/>, and
|
---|
87 | <ulink url="https://pypi.org/project/Markdown/">Markdown</ulink> (to satisfy one test)
|
---|
88 | <!-- There was talk of this being required in the release notes. Can someone
|
---|
89 | who doesn't have this installed verify?
|
---|
90 | It is only needed for one test. bdubbs March 3, 2019
|
---|
91 | -->
|
---|
92 | </para>
|
---|
93 |
|
---|
94 | <para condition="html" role="usernotes">User Notes:
|
---|
95 | <ulink url="&blfs-wiki;/gobject-introspection"/>
|
---|
96 | </para>
|
---|
97 | </sect2>
|
---|
98 |
|
---|
99 | <sect2 role="installation">
|
---|
100 | <title>Installation of GObject Introspection</title>
|
---|
101 |
|
---|
102 | <para>
|
---|
103 | Install <application>GObject Introspection</application> by running
|
---|
104 | the following commands:
|
---|
105 | </para>
|
---|
106 |
|
---|
107 | <screen><userinput>mkdir build &&
|
---|
108 | cd build &&
|
---|
109 |
|
---|
110 | meson --prefix=/usr --buildtype=release .. &&
|
---|
111 | ninja</userinput></screen>
|
---|
112 |
|
---|
113 | <para>
|
---|
114 | To test the results, issue: <command>ninja test</command>.
|
---|
115 | If <xref linkend="Mako"/> is installed but the Python 3 module named
|
---|
116 | Markdown (not in BLFS) is not, one test named test_docwriter.py will
|
---|
117 | fail.
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 role="commands">
|
---|
129 | <title>Command Explanations</title>
|
---|
130 |
|
---|
131 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
132 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | <option>-Dgtk_doc=true</option>: Build and install
|
---|
136 | the documentation.
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | <option>-Dcairo=enabled</option>: Use cairo for tests.
|
---|
141 | </para>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | <option>-Ddoctool=enabled</option>: Install g-ir-doc-tool
|
---|
145 | and run related tests.
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | </sect2>
|
---|
149 |
|
---|
150 | <sect2 role="content">
|
---|
151 | <title>Contents</title>
|
---|
152 |
|
---|
153 | <segmentedlist>
|
---|
154 | <segtitle>Installed Program</segtitle>
|
---|
155 | <segtitle>Installed Libraries</segtitle>
|
---|
156 | <segtitle>Installed Directories</segtitle>
|
---|
157 |
|
---|
158 | <!-- g-ir-doc-tool is installed if mako is presnet -->
|
---|
159 | <seglistitem>
|
---|
160 | <seg>
|
---|
161 | g-ir-annotation-tool, g-ir-compiler, g-ir-doc-tool,
|
---|
162 | g-ir-generate, g-ir-inspect, and g-ir-scanner
|
---|
163 | </seg>
|
---|
164 | <seg>
|
---|
165 | libgirepository-1.0.so and
|
---|
166 | _giscanner.&python3-lib-suffix;.so
|
---|
167 | </seg>
|
---|
168 | <seg>
|
---|
169 | /usr/include/gobject-introspection-1.0,
|
---|
170 | /usr/lib/girepository-1.0,
|
---|
171 | /usr/lib/gobject-introspection,
|
---|
172 | /usr/share/gir-1.0, and
|
---|
173 | /usr/share/gobject-introspection-1.0
|
---|
174 | </seg>
|
---|
175 | </seglistitem>
|
---|
176 | </segmentedlist>
|
---|
177 |
|
---|
178 | <variablelist>
|
---|
179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
180 | <?dbfo list-presentation="list"?>
|
---|
181 | <?dbhtml list-presentation="table"?>
|
---|
182 |
|
---|
183 | <varlistentry id="g-ir-annotation-tool">
|
---|
184 | <term><command>g-ir-annotation-tool</command></term>
|
---|
185 | <listitem>
|
---|
186 | <para>
|
---|
187 | creates or extracts annotation data from GI typelibs
|
---|
188 | </para>
|
---|
189 | <indexterm zone="gobject-introspection g-ir-annotation-tool">
|
---|
190 | <primary sortas="b-g-ir-annotation-tool">g-ir-annotation-tool</primary>
|
---|
191 | </indexterm>
|
---|
192 | </listitem>
|
---|
193 | </varlistentry>
|
---|
194 |
|
---|
195 | <varlistentry id="g-ir-compiler">
|
---|
196 | <term><command>g-ir-compiler</command></term>
|
---|
197 | <listitem>
|
---|
198 | <para>
|
---|
199 | converts one or more GIR files into one or more typelib
|
---|
200 | </para>
|
---|
201 | <indexterm zone="gobject-introspection g-ir-compiler">
|
---|
202 | <primary sortas="b-g-ir-compiler">g-ir-compiler</primary>
|
---|
203 | </indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | <varlistentry id="g-ir-doc-tool">
|
---|
208 | <term><command>g-ir-doc-tool</command></term>
|
---|
209 | <listitem>
|
---|
210 | <para>
|
---|
211 | generates Mallard files that can be viewed with
|
---|
212 | <command>yelp</command> or rendered to HTML with
|
---|
213 | <command>yelp-build</command> from
|
---|
214 | <ulink url="&gnome-download-http;/yelp-tools">yelp-tools</ulink>
|
---|
215 | </para>
|
---|
216 | <indexterm zone="gobject-introspection g-ir-doc-tool">
|
---|
217 | <primary sortas="b-g-ir-doc-tool">g-ir-doc-tool</primary>
|
---|
218 | </indexterm>
|
---|
219 | </listitem>
|
---|
220 | </varlistentry>
|
---|
221 |
|
---|
222 | <varlistentry id="g-ir-inspect">
|
---|
223 | <term><command>g-ir-inspect</command></term>
|
---|
224 | <listitem>
|
---|
225 | <para>
|
---|
226 | is a utility that gives information about a GI typelib
|
---|
227 | </para>
|
---|
228 | <indexterm zone="gobject-introspection g-ir-inspect">
|
---|
229 | <primary sortas="b-g-ir-inspect">g-ir-inspect</primary>
|
---|
230 | </indexterm>
|
---|
231 | </listitem>
|
---|
232 | </varlistentry>
|
---|
233 |
|
---|
234 | <varlistentry id="g-ir-generate">
|
---|
235 | <term><command>g-ir-generate</command></term>
|
---|
236 | <listitem>
|
---|
237 | <para>
|
---|
238 | is a GIR generator that uses the repository API
|
---|
239 | </para>
|
---|
240 | <indexterm zone="gobject-introspection g-ir-generate">
|
---|
241 | <primary sortas="b-g-ir-generate">g-ir-generate</primary>
|
---|
242 | </indexterm>
|
---|
243 | </listitem>
|
---|
244 | </varlistentry>
|
---|
245 |
|
---|
246 | <varlistentry id="g-ir-scanner">
|
---|
247 | <term><command>g-ir-scanner</command></term>
|
---|
248 | <listitem>
|
---|
249 | <para>
|
---|
250 | is a tool which generates GIR XML files by parsing headers and
|
---|
251 | introspecting GObject based libraries
|
---|
252 | </para>
|
---|
253 | <indexterm zone="gobject-introspection g-ir-scanner">
|
---|
254 | <primary sortas="b-g-ir-scanner">g-ir-scanner</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | <varlistentry id="libgirepository-1.0">
|
---|
260 | <term><filename class="libraryfile">libgirepository-1.0.so</filename></term>
|
---|
261 | <listitem>
|
---|
262 | <para>
|
---|
263 | provides an API to access the typelib metadata
|
---|
264 | </para>
|
---|
265 | <indexterm zone="gobject-introspection libgirepository-1.0">
|
---|
266 | <primary sortas="c-libgirepository-1.0">libgirepository-1.0.so</primary>
|
---|
267 | </indexterm>
|
---|
268 | </listitem>
|
---|
269 | </varlistentry>
|
---|
270 |
|
---|
271 | </variablelist>
|
---|
272 |
|
---|
273 | </sect2>
|
---|
274 |
|
---|
275 | </sect1>
|
---|