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