source: general/genlib/gobject-introspection.xml@ 048071e

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 048071e was 048071e, checked in by Douglas R. Reno <renodr@…>, 15 months ago

gobject-introspection: Tweaks regarding gi-doc-tool.

Add Markdown as an optional dependency since gi-doc-tool needs it

Clarify text and comments regarding gi-doc-tool

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