source: general/genlib/gobject-introspection.xml@ 78d213c

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 78d213c was 8c227f86, checked in by Pierre Labastie <pierre.labastie@…>, 7 months ago

fix attribute for g-i tests

attribute for tests is remap='test', this allows to have
role='root' remap='test' in case the tests need to be run as root.

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