source: general/genlib/json-glib.xml@ 0fb7167

ken/TL2024 lazarus trunk
Last change on this file since 0fb7167 was c0bc0a9, checked in by Xi Ruoyao <xry111@…>, 3 months ago

Update to glib-2.80.0 and gobject-introspection-1.80.0

Merge gobject-introspection into glib page to better handle a circular
dependency between these two packages.

  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[f6b4922]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
[70bea08]7 <!ENTITY json-glib-download-http "&gnome-download-http;/json-glib/1.8/json-glib-&json-glib-version;.tar.xz">
[e1e58be]8 <!ENTITY json-glib-download-ftp " ">
[70bea08]9 <!ENTITY json-glib-md5sum "f1aac2b8a17fd68646653cc4d8426486">
10 <!ENTITY json-glib-size "156 KB">
11 <!ENTITY json-glib-buildsize "7.8 MB (with tests)">
12 <!ENTITY json-glib-time "0.2 SBU (with tests)">
[f6b4922]13]>
14
15<sect1 id="json-glib" xreflabel="JSON-GLib-&json-glib-version;">
16 <?dbhtml filename="json-glib.html"?>
17
18
19 <title>JSON-GLib-&json-glib-version;</title>
20
21 <indexterm zone="json-glib">
22 <primary sortas="a-JSON-GLib">JSON-GLib</primary>
23 </indexterm>
24
25 <sect2 role="package">
[3af204c]26 <title>Introduction to JSON GLib</title>
[f6b4922]27
[7ded7e3]28 <para>
[3af204c]29 The <application>JSON GLib</application> package is a library
[7ded7e3]30 providing serialization and deserialization support for the JavaScript
31 Object Notation (JSON) format described by RFC 4627.
32 </para>
[f6b4922]33
[1241ea19]34 &lfs121_checked;
[f6b4922]35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[7ded7e3]39 <para>
40 Download (HTTP): <ulink url="&json-glib-download-http;"/>
41 </para>
[f6b4922]42 </listitem>
43 <listitem>
[7ded7e3]44 <para>
45 Download (FTP): <ulink url="&json-glib-download-ftp;"/>
46 </para>
[f6b4922]47 </listitem>
48 <listitem>
[7ded7e3]49 <para>
50 Download MD5 sum: &json-glib-md5sum;
51 </para>
[f6b4922]52 </listitem>
53 <listitem>
[7ded7e3]54 <para>
55 Download size: &json-glib-size;
56 </para>
[f6b4922]57 </listitem>
58 <listitem>
[7ded7e3]59 <para>
60 Estimated disk space required: &json-glib-buildsize;
61 </para>
[f6b4922]62 </listitem>
63 <listitem>
[7ded7e3]64 <para>
65 Estimated build time: &json-glib-time;
66 </para>
[f6b4922]67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">JSON-GLib Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
[c2421a0d]73 <para role="required">
[c0bc0a9]74 <xref linkend="glib2"/> (GObject Introspection required if building
75 GNOME)
[4c2be438]76 </para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
[c2421a0d]80 <xref linkend="gtk-doc"/>
81 </para>
[f6b4922]82
83 </sect2>
84
85 <sect2 role="installation">
[3af204c]86 <title>Installation of JSON GLib</title>
[f6b4922]87
[7ded7e3]88 <para>
[3af204c]89 Install <application>JSON GLib</application> by running the following
[7ded7e3]90 commands:
91 </para>
[f6b4922]92
[7e9db78c]93<screen><userinput>mkdir build &amp;&amp;
[550d48d8]94cd build &amp;&amp;
95
[91318eb]96meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
[7e9db78c]97ninja</userinput></screen>
[f6b4922]98
[7ded7e3]99 <para>
[7e9db78c]100 To test the results, issue: <command>ninja test</command>.
[7ded7e3]101 </para>
[f6b4922]102
[7ded7e3]103 <para>
104 Now, as the <systemitem class="username">root</systemitem> user:
105 </para>
[f6b4922]106
[7e9db78c]107<screen role="root"><userinput>ninja install</userinput></screen>
[f6b4922]108
109 </sect2>
110
[20f070d8]111 <sect2 role="commands">
112 <title>Command Explanations</title>
113
114 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
115 href="../../xincludes/meson-buildtype-release.xml"/>
[d8458f3]116
117 <para>
118 <option>-Dgtk_doc=disabled</option>: Add this option if you have
119 <xref role="nodep" linkend="gtk-doc"/> installed and do not wish to
120 generate the API documentation.
121 </para>
122
[20f070d8]123 </sect2>
124
[f6b4922]125 <sect2 role="content">
126 <title>Contents</title>
127
128 <segmentedlist>
[c3c56b2]129 <segtitle>Installed Programs</segtitle>
[f6b4922]130 <segtitle>Installed Library</segtitle>
131 <segtitle>Installed Directories</segtitle>
132
133 <seglistitem>
[c3c56b2]134 <seg>
[1c345ed]135 json-glib-format and json-glib-validate
[c3c56b2]136 </seg>
[c2421a0d]137 <seg>
138 libjson-glib-1.0.so
139 </seg>
140 <seg>
[70bea08]141 /usr/{include,{libexec,share{/installed-tests}/json-glib-1.0 and
[c2421a0d]142 /usr/share/gtk-doc/html/json-glib
143 </seg>
[f6b4922]144 </seglistitem>
145 </segmentedlist>
146
147 <variablelist>
148 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
149 <?dbfo list-presentation="list"?>
150 <?dbhtml list-presentation="table"?>
151
[7e2908c]152 <varlistentry id="json-glib-format">
153 <term><command>json-glib-format</command></term>
154 <listitem>
155 <para>
[4c24eb0a]156 is a simple command line interface to format JSON data
[7e2908c]157 </para>
158 <indexterm zone="json-glib json-glib-format">
159 <primary sortas="b-json-glib-format">json-glib-format</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="json-glib-validate">
165 <term><command>json-glib-validate</command></term>
166 <listitem>
167 <para>
[4c24eb0a]168 is a simple command line interface to validate JSON data
[7e2908c]169 </para>
170 <indexterm zone="json-glib json-glib-validate">
171 <primary sortas="b-json-glib-validate">json-glib-validate</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
[f6b4922]176 <varlistentry id="libjson-glib-1">
[d3e019dc]177 <term><filename class="libraryfile">libjson-glib-1.0.so</filename></term>
[f6b4922]178 <listitem>
[7ded7e3]179 <para>
[4c24eb0a]180 contains the <application>JSON GLib</application> API functions
[7ded7e3]181 </para>
[f6b4922]182 <indexterm zone="json-glib libjson-glib-1">
183 <primary sortas="c-libjson-glib-1">libjson-glib-1.0.so</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 </variablelist>
189
190 </sect2>
191
192</sect1>
Note: See TracBrowser for help on using the repository browser.