[9d3d8a8] | 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 |
|
---|
[0d7900a] | 7 | <!ENTITY gobject-introspection-download-http
|
---|
[89eb994f] | 8 | "&gnome-download-http;/gobject-introspection/1.78/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
[f4ac7141] | 9 | <!ENTITY gobject-introspection-download-ftp " ">
|
---|
[f13ed30c] | 10 | <!ENTITY gobject-introspection-md5sum "da2677e6b9c91b33c036d2233a96cec3">
|
---|
[eebcdb57] | 11 | <!ENTITY gobject-introspection-size "1.0 MB">
|
---|
[f13ed30c] | 12 | <!ENTITY gobject-introspection-buildsize "48 MB (with tests)">
|
---|
[56f345b] | 13 | <!ENTITY gobject-introspection-time "0.3 SBU (With tests; both using parallelism=4)">
|
---|
[9d3d8a8] | 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">
|
---|
[7ded7e3] | 26 | <title>Introduction to GObject Introspection</title>
|
---|
[9d3d8a8] | 27 |
|
---|
[7ded7e3] | 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>
|
---|
[9d3d8a8] | 33 |
|
---|
[a9779b9] | 34 | &lfs120_checked;
|
---|
[27e62762] | 35 |
|
---|
[9d3d8a8] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[7ded7e3] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&gobject-introspection-download-http;"/>
|
---|
| 41 | </para>
|
---|
[9d3d8a8] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[7ded7e3] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&gobject-introspection-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[9d3d8a8] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[7ded7e3] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &gobject-introspection-md5sum;
|
---|
| 51 | </para>
|
---|
[9d3d8a8] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[7ded7e3] | 54 | <para>
|
---|
| 55 | Download size: &gobject-introspection-size;
|
---|
| 56 | </para>
|
---|
[9d3d8a8] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[7ded7e3] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &gobject-introspection-buildsize;
|
---|
| 61 | </para>
|
---|
[9d3d8a8] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[7ded7e3] | 64 | <para>
|
---|
| 65 | Estimated build time: &gobject-introspection-time;
|
---|
| 66 | </para>
|
---|
[9d3d8a8] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
[7a26ad4] | 70 | <bridgehead renderas="sect3">GObject Introspection Dependencies</bridgehead>
|
---|
| 71 |
|
---|
[9d3d8a8] | 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 73 | <para role="required">
|
---|
[ed9b0761] | 74 | <xref linkend="glib2"/>
|
---|
[b8a081c] | 75 | </para>
|
---|
[9d3d8a8] | 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b6a2a0e] | 78 | <para role="optional">
|
---|
[4dbf88b] | 79 | <xref linkend="cairo"/> (required for the tests),
|
---|
[a8ea305] | 80 | <xref linkend="gjs"/> (to satisfy one test),
|
---|
[048071e] | 81 | <xref linkend="gtk-doc"/>,
|
---|
| 82 | <xref linkend="Mako"/>, and
|
---|
| 83 | <xref linkend="markdown"/>
|
---|
[b6a2a0e] | 84 | </para>
|
---|
[9d3d8a8] | 85 |
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
[7ded7e3] | 89 | <title>Installation of GObject Introspection</title>
|
---|
[9d3d8a8] | 90 |
|
---|
[7ded7e3] | 91 | <para>
|
---|
| 92 | Install <application>GObject Introspection</application> by running
|
---|
| 93 | the following commands:
|
---|
| 94 | </para>
|
---|
[9d3d8a8] | 95 |
|
---|
[a8ea305] | 96 | <screen><userinput>mkdir build &&
|
---|
[4a61228] | 97 | cd build &&
|
---|
[a8ea305] | 98 |
|
---|
[91318eb] | 99 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[a8ea305] | 100 | ninja</userinput></screen>
|
---|
[9d3d8a8] | 101 |
|
---|
[7ded7e3] | 102 | <para>
|
---|
[3d349f4] | 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:
|
---|
[7ded7e3] | 105 | </para>
|
---|
[9d3d8a8] | 106 |
|
---|
[3d349f4] | 107 | <screen role='test'><userinput>sed "/PYTHONPATH/a'/usr/lib/python&python3-majorver;'," -i ../tests/warn/meson.build &&
|
---|
| 108 | ninja test</userinput></screen>
|
---|
| 109 |
|
---|
[7ded7e3] | 110 | <para>
|
---|
| 111 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 112 | </para>
|
---|
[9d3d8a8] | 113 |
|
---|
[a8ea305] | 114 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[9d3d8a8] | 115 |
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="commands">
|
---|
| 119 | <title>Command Explanations</title>
|
---|
| 120 |
|
---|
[20f070d8] | 121 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 122 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 123 |
|
---|
[d56e7df] | 124 | <para>
|
---|
[8558044] | 125 | <option>-Dgtk_doc=true</option>: Build and install
|
---|
[d56e7df] | 126 | the documentation.
|
---|
| 127 | </para>
|
---|
[9d3d8a8] | 128 |
|
---|
[b9098ed] | 129 | <!-- This is now autodetected
|
---|
[d56e7df] | 130 | <para>
|
---|
[55e121da] | 131 | <option>-Dcairo=enabled</option>: Use cairo for tests.
|
---|
[d56e7df] | 132 | </para>
|
---|
[b9098ed] | 133 | -->
|
---|
[e977805c] | 134 |
|
---|
[b9098ed] | 135 | <!-- This is now autodetected
|
---|
[d56e7df] | 136 | <para>
|
---|
[8558044] | 137 | <option>-Ddoctool=enabled</option>: Install g-ir-doc-tool
|
---|
[048071e] | 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.
|
---|
[d56e7df] | 142 | </para>
|
---|
[b9098ed] | 143 | -->
|
---|
[c34cb2e5] | 144 |
|
---|
[9d3d8a8] | 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
| 150 | <segmentedlist>
|
---|
[7ded7e3] | 151 | <segtitle>Installed Program</segtitle>
|
---|
[9d3d8a8] | 152 | <segtitle>Installed Libraries</segtitle>
|
---|
| 153 | <segtitle>Installed Directories</segtitle>
|
---|
| 154 |
|
---|
[048071e] | 155 | <!-- g-ir-doc-tool is installed if Mako and Markdown are present -->
|
---|
[9d3d8a8] | 156 | <seglistitem>
|
---|
[e977805c] | 157 | <seg>
|
---|
[4dbf88b] | 158 | g-ir-annotation-tool, g-ir-compiler, g-ir-doc-tool,
|
---|
[8b9cf4c] | 159 | g-ir-generate, g-ir-inspect, and g-ir-scanner
|
---|
[e977805c] | 160 | </seg>
|
---|
| 161 | <seg>
|
---|
[04bf697b] | 162 | libgirepository-1.0.so and
|
---|
[d94bd7f4] | 163 | _giscanner.&python3-lib-suffix;.so
|
---|
[e977805c] | 164 | </seg>
|
---|
[0913f48] | 165 | <seg>
|
---|
| 166 | /usr/include/gobject-introspection-1.0,
|
---|
[d3e019dc] | 167 | /usr/lib/girepository-1.0,
|
---|
| 168 | /usr/lib/gobject-introspection,
|
---|
[d8fe3e58] | 169 | /usr/share/gir-1.0, and
|
---|
| 170 | /usr/share/gobject-introspection-1.0
|
---|
[b6a2a0e] | 171 | </seg>
|
---|
[9d3d8a8] | 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 |
|
---|
[56c646a5] | 180 | <varlistentry id="g-ir-annotation-tool">
|
---|
| 181 | <term><command>g-ir-annotation-tool</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>
|
---|
[4c24eb0a] | 184 | creates or extracts annotation data from GI typelibs
|
---|
[56c646a5] | 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 |
|
---|
[9d3d8a8] | 192 | <varlistentry id="g-ir-compiler">
|
---|
| 193 | <term><command>g-ir-compiler</command></term>
|
---|
| 194 | <listitem>
|
---|
[7ded7e3] | 195 | <para>
|
---|
[4c24eb0a] | 196 | converts one or more GIR files into one or more typelib
|
---|
[7ded7e3] | 197 | </para>
|
---|
[9d3d8a8] | 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 |
|
---|
[7e2908c] | 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
|
---|
[4c24eb0a] | 210 | <command>yelp-build</command> from
|
---|
[5b1d11c] | 211 | <ulink url="&gnome-download-http;/yelp-tools">yelp-tools</ulink>
|
---|
[7e2908c] | 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 |
|
---|
[0797528] | 219 | <varlistentry id="g-ir-inspect">
|
---|
| 220 | <term><command>g-ir-inspect</command></term>
|
---|
| 221 | <listitem>
|
---|
| 222 | <para>
|
---|
[4c24eb0a] | 223 | is a utility that gives information about a GI typelib
|
---|
[0797528] | 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 |
|
---|
[8b9cf4c] | 231 | <varlistentry id="g-ir-generate">
|
---|
| 232 | <term><command>g-ir-generate</command></term>
|
---|
[9d3d8a8] | 233 | <listitem>
|
---|
[7ded7e3] | 234 | <para>
|
---|
[4c24eb0a] | 235 | is a GIR generator that uses the repository API
|
---|
[7ded7e3] | 236 | </para>
|
---|
[8b9cf4c] | 237 | <indexterm zone="gobject-introspection g-ir-generate">
|
---|
| 238 | <primary sortas="b-g-ir-generate">g-ir-generate</primary>
|
---|
[9d3d8a8] | 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
[8b9cf4c] | 243 | <varlistentry id="g-ir-scanner">
|
---|
| 244 | <term><command>g-ir-scanner</command></term>
|
---|
[9d3d8a8] | 245 | <listitem>
|
---|
[7ded7e3] | 246 | <para>
|
---|
[8b9cf4c] | 247 | is a tool which generates GIR XML files by parsing headers and
|
---|
[4c24eb0a] | 248 | introspecting GObject based libraries
|
---|
[7ded7e3] | 249 | </para>
|
---|
[8b9cf4c] | 250 | <indexterm zone="gobject-introspection g-ir-scanner">
|
---|
| 251 | <primary sortas="b-g-ir-scanner">g-ir-scanner</primary>
|
---|
[9d3d8a8] | 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="libgirepository-1.0">
|
---|
[d3e019dc] | 257 | <term><filename class="libraryfile">libgirepository-1.0.so</filename></term>
|
---|
[9d3d8a8] | 258 | <listitem>
|
---|
[7ded7e3] | 259 | <para>
|
---|
[4c24eb0a] | 260 | provides an API to access the typelib metadata
|
---|
[7ded7e3] | 261 | </para>
|
---|
[9d3d8a8] | 262 | <indexterm zone="gobject-introspection libgirepository-1.0">
|
---|
[e977805c] | 263 | <primary sortas="c-libgirepository-1.0">libgirepository-1.0.so</primary>
|
---|
[9d3d8a8] | 264 | </indexterm>
|
---|
| 265 | </listitem>
|
---|
| 266 | </varlistentry>
|
---|
| 267 |
|
---|
| 268 | </variablelist>
|
---|
| 269 |
|
---|
| 270 | </sect2>
|
---|
| 271 |
|
---|
| 272 | </sect1>
|
---|