[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
|
---|
[91548d4f] | 8 | "&gnome-download-http;/gobject-introspection/1.72/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
[0d7900a] | 9 | <!ENTITY gobject-introspection-download-ftp
|
---|
[91548d4f] | 10 | "&gnome-download-ftp;/gobject-introspection/1.72/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
| 11 | <!ENTITY gobject-introspection-md5sum "13cbf9bca8f906ee275c8b107311d815">
|
---|
[eebcdb57] | 12 | <!ENTITY gobject-introspection-size "1.0 MB">
|
---|
[91548d4f] | 13 | <!ENTITY gobject-introspection-buildsize "42 MB (with tests)">
|
---|
[eebcdb57] | 14 | <!ENTITY gobject-introspection-time "0.2 SBU (With tests; both using parallelism=4)">
|
---|
[9d3d8a8] | 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">
|
---|
[7ded7e3] | 30 | <title>Introduction to GObject Introspection</title>
|
---|
[9d3d8a8] | 31 |
|
---|
[7ded7e3] | 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>
|
---|
[9d3d8a8] | 37 |
|
---|
[03a2986] | 38 | &lfs111_checked;
|
---|
[27e62762] | 39 |
|
---|
[9d3d8a8] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[7ded7e3] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&gobject-introspection-download-http;"/>
|
---|
| 45 | </para>
|
---|
[9d3d8a8] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[7ded7e3] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&gobject-introspection-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[9d3d8a8] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[7ded7e3] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &gobject-introspection-md5sum;
|
---|
| 55 | </para>
|
---|
[9d3d8a8] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[7ded7e3] | 58 | <para>
|
---|
| 59 | Download size: &gobject-introspection-size;
|
---|
| 60 | </para>
|
---|
[9d3d8a8] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[7ded7e3] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &gobject-introspection-buildsize;
|
---|
| 65 | </para>
|
---|
[9d3d8a8] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[7ded7e3] | 68 | <para>
|
---|
| 69 | Estimated build time: &gobject-introspection-time;
|
---|
| 70 | </para>
|
---|
[9d3d8a8] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[7a26ad4] | 74 | <bridgehead renderas="sect3">GObject Introspection Dependencies</bridgehead>
|
---|
| 75 |
|
---|
[9d3d8a8] | 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 77 | <para role="required">
|
---|
[ed9b0761] | 78 | <xref linkend="glib2"/>
|
---|
[b8a081c] | 79 | </para>
|
---|
[9d3d8a8] | 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b6a2a0e] | 82 | <para role="optional">
|
---|
[4dbf88b] | 83 | <xref linkend="cairo"/> (required for the tests),
|
---|
[a8ea305] | 84 | <xref linkend="gjs"/> (to satisfy one test),
|
---|
[ed9b0761] | 85 | <xref linkend="gtk-doc"/>,
|
---|
[a8ea305] | 86 | <xref linkend="Mako"/>, and
|
---|
| 87 | <ulink url="https://pypi.org/project/Markdown/">Markdown</ulink> (to satisfy one test)
|
---|
[c4a9102b] | 88 | <!-- There was talk of this being required in the release notes. Can someone
|
---|
[8558044] | 89 | who doesn't have this installed verify?
|
---|
[a8ea305] | 90 | It is only needed for one test. bdubbs March 3, 2019
|
---|
| 91 | -->
|
---|
[b6a2a0e] | 92 | </para>
|
---|
[9d3d8a8] | 93 |
|
---|
| 94 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 95 | <ulink url="&blfs-wiki;/gobject-introspection"/>
|
---|
| 96 | </para>
|
---|
[9d3d8a8] | 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
[7ded7e3] | 100 | <title>Installation of GObject Introspection</title>
|
---|
[9d3d8a8] | 101 |
|
---|
[7ded7e3] | 102 | <para>
|
---|
| 103 | Install <application>GObject Introspection</application> by running
|
---|
| 104 | the following commands:
|
---|
| 105 | </para>
|
---|
[9d3d8a8] | 106 |
|
---|
[a8ea305] | 107 | <screen><userinput>mkdir build &&
|
---|
[4a61228] | 108 | cd build &&
|
---|
[a8ea305] | 109 |
|
---|
[20f070d8] | 110 | meson --prefix=/usr --buildtype=release .. &&
|
---|
[a8ea305] | 111 | ninja</userinput></screen>
|
---|
[9d3d8a8] | 112 |
|
---|
[7ded7e3] | 113 | <para>
|
---|
[1c7adc0] | 114 | To test the results, issue: <command>ninja test</command>.
|
---|
[3bc067f3] | 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.
|
---|
[7ded7e3] | 118 | </para>
|
---|
[9d3d8a8] | 119 |
|
---|
[7ded7e3] | 120 | <para>
|
---|
| 121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
[9d3d8a8] | 123 |
|
---|
[a8ea305] | 124 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[9d3d8a8] | 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[20f070d8] | 131 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 132 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 133 |
|
---|
[d56e7df] | 134 | <para>
|
---|
[8558044] | 135 | <option>-Dgtk_doc=true</option>: Build and install
|
---|
[d56e7df] | 136 | the documentation.
|
---|
| 137 | </para>
|
---|
[9d3d8a8] | 138 |
|
---|
[d56e7df] | 139 | <para>
|
---|
[55e121da] | 140 | <option>-Dcairo=enabled</option>: Use cairo for tests.
|
---|
[d56e7df] | 141 | </para>
|
---|
[e977805c] | 142 |
|
---|
[d56e7df] | 143 | <para>
|
---|
[8558044] | 144 | <option>-Ddoctool=enabled</option>: Install g-ir-doc-tool
|
---|
[d56e7df] | 145 | and run related tests.
|
---|
| 146 | </para>
|
---|
[c34cb2e5] | 147 |
|
---|
[9d3d8a8] | 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="content">
|
---|
| 151 | <title>Contents</title>
|
---|
| 152 |
|
---|
| 153 | <segmentedlist>
|
---|
[7ded7e3] | 154 | <segtitle>Installed Program</segtitle>
|
---|
[9d3d8a8] | 155 | <segtitle>Installed Libraries</segtitle>
|
---|
| 156 | <segtitle>Installed Directories</segtitle>
|
---|
| 157 |
|
---|
[4dbf88b] | 158 | <!-- g-ir-doc-tool is installed if mako is presnet -->
|
---|
[9d3d8a8] | 159 | <seglistitem>
|
---|
[e977805c] | 160 | <seg>
|
---|
[4dbf88b] | 161 | g-ir-annotation-tool, g-ir-compiler, g-ir-doc-tool,
|
---|
[8b9cf4c] | 162 | g-ir-generate, g-ir-inspect, and g-ir-scanner
|
---|
[e977805c] | 163 | </seg>
|
---|
| 164 | <seg>
|
---|
[04bf697b] | 165 | libgirepository-1.0.so and
|
---|
[d94bd7f4] | 166 | _giscanner.&python3-lib-suffix;.so
|
---|
[e977805c] | 167 | </seg>
|
---|
[0913f48] | 168 | <seg>
|
---|
| 169 | /usr/include/gobject-introspection-1.0,
|
---|
[d3e019dc] | 170 | /usr/lib/girepository-1.0,
|
---|
| 171 | /usr/lib/gobject-introspection,
|
---|
[d8fe3e58] | 172 | /usr/share/gir-1.0, and
|
---|
| 173 | /usr/share/gobject-introspection-1.0
|
---|
[b6a2a0e] | 174 | </seg>
|
---|
[9d3d8a8] | 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 |
|
---|
[56c646a5] | 183 | <varlistentry id="g-ir-annotation-tool">
|
---|
| 184 | <term><command>g-ir-annotation-tool</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>
|
---|
[4c24eb0a] | 187 | creates or extracts annotation data from GI typelibs
|
---|
[56c646a5] | 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 |
|
---|
[9d3d8a8] | 195 | <varlistentry id="g-ir-compiler">
|
---|
| 196 | <term><command>g-ir-compiler</command></term>
|
---|
| 197 | <listitem>
|
---|
[7ded7e3] | 198 | <para>
|
---|
[4c24eb0a] | 199 | converts one or more GIR files into one or more typelib
|
---|
[7ded7e3] | 200 | </para>
|
---|
[9d3d8a8] | 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 |
|
---|
[7e2908c] | 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
|
---|
[4c24eb0a] | 213 | <command>yelp-build</command> from
|
---|
[5b1d11c] | 214 | <ulink url="&gnome-download-http;/yelp-tools">yelp-tools</ulink>
|
---|
[7e2908c] | 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 |
|
---|
[0797528] | 222 | <varlistentry id="g-ir-inspect">
|
---|
| 223 | <term><command>g-ir-inspect</command></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>
|
---|
[4c24eb0a] | 226 | is a utility that gives information about a GI typelib
|
---|
[0797528] | 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 |
|
---|
[8b9cf4c] | 234 | <varlistentry id="g-ir-generate">
|
---|
| 235 | <term><command>g-ir-generate</command></term>
|
---|
[9d3d8a8] | 236 | <listitem>
|
---|
[7ded7e3] | 237 | <para>
|
---|
[4c24eb0a] | 238 | is a GIR generator that uses the repository API
|
---|
[7ded7e3] | 239 | </para>
|
---|
[8b9cf4c] | 240 | <indexterm zone="gobject-introspection g-ir-generate">
|
---|
| 241 | <primary sortas="b-g-ir-generate">g-ir-generate</primary>
|
---|
[9d3d8a8] | 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
[8b9cf4c] | 246 | <varlistentry id="g-ir-scanner">
|
---|
| 247 | <term><command>g-ir-scanner</command></term>
|
---|
[9d3d8a8] | 248 | <listitem>
|
---|
[7ded7e3] | 249 | <para>
|
---|
[8b9cf4c] | 250 | is a tool which generates GIR XML files by parsing headers and
|
---|
[4c24eb0a] | 251 | introspecting GObject based libraries
|
---|
[7ded7e3] | 252 | </para>
|
---|
[8b9cf4c] | 253 | <indexterm zone="gobject-introspection g-ir-scanner">
|
---|
| 254 | <primary sortas="b-g-ir-scanner">g-ir-scanner</primary>
|
---|
[9d3d8a8] | 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="libgirepository-1.0">
|
---|
[d3e019dc] | 260 | <term><filename class="libraryfile">libgirepository-1.0.so</filename></term>
|
---|
[9d3d8a8] | 261 | <listitem>
|
---|
[7ded7e3] | 262 | <para>
|
---|
[4c24eb0a] | 263 | provides an API to access the typelib metadata
|
---|
[7ded7e3] | 264 | </para>
|
---|
[9d3d8a8] | 265 | <indexterm zone="gobject-introspection libgirepository-1.0">
|
---|
[e977805c] | 266 | <primary sortas="c-libgirepository-1.0">libgirepository-1.0.so</primary>
|
---|
[9d3d8a8] | 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
| 271 | </variablelist>
|
---|
| 272 |
|
---|
| 273 | </sect2>
|
---|
| 274 |
|
---|
| 275 | </sect1>
|
---|