[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
|
---|
[9d31900] | 8 | "&gnome-download-http;/gobject-introspection/1.68/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
[0d7900a] | 9 | <!ENTITY gobject-introspection-download-ftp
|
---|
[9d31900] | 10 | "&gnome-download-ftp;/gobject-introspection/1.68/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
| 11 | <!ENTITY gobject-introspection-md5sum "b106680b153bebb67c8987e64bbafcc6">
|
---|
| 12 | <!ENTITY gobject-introspection-size "996 KB">
|
---|
| 13 | <!ENTITY gobject-introspection-buildsize "64 MB (with tests)">
|
---|
[a8ea305] | 14 | <!ENTITY gobject-introspection-time "0.2 SBU (Using parallelism=4; with tests)">
|
---|
[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 |
|
---|
[9029db2] | 39 | &lfs101_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 |
|
---|
| 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 76 | <para role="required">
|
---|
[ed9b0761] | 77 | <xref linkend="glib2"/>
|
---|
[b8a081c] | 78 | </para>
|
---|
[9d3d8a8] | 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b6a2a0e] | 81 | <para role="optional">
|
---|
[4dbf88b] | 82 | <xref linkend="cairo"/> (required for the tests),
|
---|
[a8ea305] | 83 | <xref linkend="gjs"/> (to satisfy one test),
|
---|
[ed9b0761] | 84 | <xref linkend="gtk-doc"/>,
|
---|
[a8ea305] | 85 | <xref linkend="Mako"/>, and
|
---|
| 86 | <ulink url="https://pypi.org/project/Markdown/">Markdown</ulink> (to satisfy one test)
|
---|
[c4a9102b] | 87 | <!-- There was talk of this being required in the release notes. Can someone
|
---|
[a8ea305] | 88 | who doesn't have this installed verify?
|
---|
| 89 | It is only needed for one test. bdubbs March 3, 2019
|
---|
| 90 | -->
|
---|
[b6a2a0e] | 91 | </para>
|
---|
[9d3d8a8] | 92 |
|
---|
| 93 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 94 | <ulink url="&blfs-wiki;/gobject-introspection"/>
|
---|
| 95 | </para>
|
---|
[9d3d8a8] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="installation">
|
---|
[7ded7e3] | 99 | <title>Installation of GObject Introspection</title>
|
---|
[9d3d8a8] | 100 |
|
---|
[7ded7e3] | 101 | <para>
|
---|
| 102 | Install <application>GObject Introspection</application> by running
|
---|
| 103 | the following commands:
|
---|
| 104 | </para>
|
---|
[9d3d8a8] | 105 |
|
---|
[a8ea305] | 106 | <screen><userinput>mkdir build &&
|
---|
[4a61228] | 107 | cd build &&
|
---|
[a8ea305] | 108 |
|
---|
| 109 | meson --prefix=/usr .. &&
|
---|
| 110 | ninja</userinput></screen>
|
---|
[9d3d8a8] | 111 |
|
---|
[7ded7e3] | 112 | <para>
|
---|
[1c7adc0] | 113 | To test the results, issue: <command>ninja test</command>.
|
---|
[3bc067f3] | 114 | If <xref linkend="Mako"/> is installed but the Python 3 module named
|
---|
| 115 | Markdown (not in BLFS) is not, one test named test_docwriter.py will
|
---|
| 116 | fail.
|
---|
[7ded7e3] | 117 | </para>
|
---|
[9d3d8a8] | 118 |
|
---|
[7ded7e3] | 119 | <para>
|
---|
| 120 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 121 | </para>
|
---|
[9d3d8a8] | 122 |
|
---|
[a8ea305] | 123 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[9d3d8a8] | 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
[d56e7df] | 130 | <para>
|
---|
[dcde08a1] | 131 | <option>-Dgtk_doc=true</option>: Build and install
|
---|
[d56e7df] | 132 | the documentation.
|
---|
| 133 | </para>
|
---|
[9d3d8a8] | 134 |
|
---|
[d56e7df] | 135 | <para>
|
---|
[55e121da] | 136 | <option>-Dcairo=enabled</option>: Use cairo for tests.
|
---|
[d56e7df] | 137 | </para>
|
---|
[e977805c] | 138 |
|
---|
[d56e7df] | 139 | <para>
|
---|
[55e121da] | 140 | <option>-Ddoctool=enabled</option>: Install g-ir-doc-tool
|
---|
[d56e7df] | 141 | and run related tests.
|
---|
| 142 | </para>
|
---|
[c34cb2e5] | 143 |
|
---|
[9d3d8a8] | 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="content">
|
---|
| 147 | <title>Contents</title>
|
---|
| 148 |
|
---|
| 149 | <segmentedlist>
|
---|
[7ded7e3] | 150 | <segtitle>Installed Program</segtitle>
|
---|
[9d3d8a8] | 151 | <segtitle>Installed Libraries</segtitle>
|
---|
| 152 | <segtitle>Installed Directories</segtitle>
|
---|
| 153 |
|
---|
[4dbf88b] | 154 | <!-- g-ir-doc-tool is installed if mako is presnet -->
|
---|
[9d3d8a8] | 155 | <seglistitem>
|
---|
[e977805c] | 156 | <seg>
|
---|
[4dbf88b] | 157 | g-ir-annotation-tool, g-ir-compiler, g-ir-doc-tool,
|
---|
[8b9cf4c] | 158 | g-ir-generate, g-ir-inspect, and g-ir-scanner
|
---|
[e977805c] | 159 | </seg>
|
---|
| 160 | <seg>
|
---|
[04bf697b] | 161 | libgirepository-1.0.so and
|
---|
[d94bd7f4] | 162 | _giscanner.&python3-lib-suffix;.so
|
---|
[e977805c] | 163 | </seg>
|
---|
[0913f48] | 164 | <seg>
|
---|
| 165 | /usr/include/gobject-introspection-1.0,
|
---|
[d3e019dc] | 166 | /usr/lib/girepository-1.0,
|
---|
| 167 | /usr/lib/gobject-introspection,
|
---|
[d8fe3e58] | 168 | /usr/share/gir-1.0, and
|
---|
| 169 | /usr/share/gobject-introspection-1.0
|
---|
[b6a2a0e] | 170 | </seg>
|
---|
[9d3d8a8] | 171 | </seglistitem>
|
---|
| 172 | </segmentedlist>
|
---|
| 173 |
|
---|
| 174 | <variablelist>
|
---|
| 175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 176 | <?dbfo list-presentation="list"?>
|
---|
| 177 | <?dbhtml list-presentation="table"?>
|
---|
| 178 |
|
---|
[56c646a5] | 179 | <varlistentry id="g-ir-annotation-tool">
|
---|
| 180 | <term><command>g-ir-annotation-tool</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>
|
---|
[4c24eb0a] | 183 | creates or extracts annotation data from GI typelibs
|
---|
[56c646a5] | 184 | </para>
|
---|
| 185 | <indexterm zone="gobject-introspection g-ir-annotation-tool">
|
---|
| 186 | <primary sortas="b-g-ir-annotation-tool">g-ir-annotation-tool</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
[9d3d8a8] | 191 | <varlistentry id="g-ir-compiler">
|
---|
| 192 | <term><command>g-ir-compiler</command></term>
|
---|
| 193 | <listitem>
|
---|
[7ded7e3] | 194 | <para>
|
---|
[4c24eb0a] | 195 | converts one or more GIR files into one or more typelib
|
---|
[7ded7e3] | 196 | </para>
|
---|
[9d3d8a8] | 197 | <indexterm zone="gobject-introspection g-ir-compiler">
|
---|
| 198 | <primary sortas="b-g-ir-compiler">g-ir-compiler</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
[7e2908c] | 203 | <varlistentry id="g-ir-doc-tool">
|
---|
| 204 | <term><command>g-ir-doc-tool</command></term>
|
---|
| 205 | <listitem>
|
---|
| 206 | <para>
|
---|
| 207 | generates Mallard files that can be viewed with
|
---|
| 208 | <command>yelp</command> or rendered to HTML with
|
---|
[4c24eb0a] | 209 | <command>yelp-build</command> from
|
---|
| 210 | <ulink url="http://ftp.acc.umu.se/pub/gnome/sources/yelp-tools">yelp-tools</ulink>
|
---|
[7e2908c] | 211 | </para>
|
---|
| 212 | <indexterm zone="gobject-introspection g-ir-doc-tool">
|
---|
| 213 | <primary sortas="b-g-ir-doc-tool">g-ir-doc-tool</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
[0797528] | 218 | <varlistentry id="g-ir-inspect">
|
---|
| 219 | <term><command>g-ir-inspect</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>
|
---|
[4c24eb0a] | 222 | is a utility that gives information about a GI typelib
|
---|
[0797528] | 223 | </para>
|
---|
| 224 | <indexterm zone="gobject-introspection g-ir-inspect">
|
---|
| 225 | <primary sortas="b-g-ir-inspect">g-ir-inspect</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
| 229 |
|
---|
[8b9cf4c] | 230 | <varlistentry id="g-ir-generate">
|
---|
| 231 | <term><command>g-ir-generate</command></term>
|
---|
[9d3d8a8] | 232 | <listitem>
|
---|
[7ded7e3] | 233 | <para>
|
---|
[4c24eb0a] | 234 | is a GIR generator that uses the repository API
|
---|
[7ded7e3] | 235 | </para>
|
---|
[8b9cf4c] | 236 | <indexterm zone="gobject-introspection g-ir-generate">
|
---|
| 237 | <primary sortas="b-g-ir-generate">g-ir-generate</primary>
|
---|
[9d3d8a8] | 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
[8b9cf4c] | 242 | <varlistentry id="g-ir-scanner">
|
---|
| 243 | <term><command>g-ir-scanner</command></term>
|
---|
[9d3d8a8] | 244 | <listitem>
|
---|
[7ded7e3] | 245 | <para>
|
---|
[8b9cf4c] | 246 | is a tool which generates GIR XML files by parsing headers and
|
---|
[4c24eb0a] | 247 | introspecting GObject based libraries
|
---|
[7ded7e3] | 248 | </para>
|
---|
[8b9cf4c] | 249 | <indexterm zone="gobject-introspection g-ir-scanner">
|
---|
| 250 | <primary sortas="b-g-ir-scanner">g-ir-scanner</primary>
|
---|
[9d3d8a8] | 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="libgirepository-1.0">
|
---|
[d3e019dc] | 256 | <term><filename class="libraryfile">libgirepository-1.0.so</filename></term>
|
---|
[9d3d8a8] | 257 | <listitem>
|
---|
[7ded7e3] | 258 | <para>
|
---|
[4c24eb0a] | 259 | provides an API to access the typelib metadata
|
---|
[7ded7e3] | 260 | </para>
|
---|
[9d3d8a8] | 261 | <indexterm zone="gobject-introspection libgirepository-1.0">
|
---|
[e977805c] | 262 | <primary sortas="c-libgirepository-1.0">libgirepository-1.0.so</primary>
|
---|
[9d3d8a8] | 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | </variablelist>
|
---|
| 268 |
|
---|
| 269 | </sect2>
|
---|
| 270 |
|
---|
| 271 | </sect1>
|
---|