[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[dabe4b0] | 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 |
|
---|
[e29beb9a] | 7 | <!ENTITY gjs-download-http "&gnome-download-http;/gjs/1.82/gjs-&gjs-version;.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY gjs-download-ftp " ">
|
---|
[3791736] | 9 | <!ENTITY gjs-md5sum "3ebc85da56719932d4d8f713ffbcf786">
|
---|
[e29beb9a] | 10 | <!ENTITY gjs-size "712 KB">
|
---|
[3791736] | 11 | <!ENTITY gjs-buildsize "286 MB (with tests)">
|
---|
[e4a3789e] | 12 | <!ENTITY gjs-time "0.2 SBU (with tests; with parallelism=4)">
|
---|
[dabe4b0] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gjs" xreflabel="Gjs-&gjs-version;">
|
---|
| 16 | <?dbhtml filename="gjs.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Gjs-&gjs-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="gjs">
|
---|
| 22 | <primary sortas="a-Gjs">Gjs</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Gjs</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
[d278ced] | 29 | <application>Gjs</application> is a set of Javascript bindings for
|
---|
[dabe4b0] | 30 | <application>GNOME</application>.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[41a882a] | 33 | &lfs122_checked;
|
---|
[dabe4b0] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&gjs-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&gjs-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &gjs-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &gjs-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &gjs-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &gjs-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect3">Gjs Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
| 73 | <xref linkend="cairo"/>,
|
---|
[c503e811] | 74 | <xref linkend="dbus"/>,
|
---|
[c0bc0a9] | 75 | &gobject-introspection;, and
|
---|
[5028839f] | 76 | <xref linkend="spidermonkey"/>
|
---|
[dabe4b0] | 77 | </para>
|
---|
| 78 |
|
---|
[51dfb3e] | 79 | <bridgehead renderas="sect4">Recommended (required for GNOME)</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
[3b339ddc] | 81 | <xref linkend="gtk3"/> and
|
---|
| 82 | <xref linkend="gtk4"/>
|
---|
[a327f9e] | 83 | </para>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
[0b4d98d] | 87 | <!--<xref linkend="sysprof"/>,-->
|
---|
[583ec9b3] | 88 | <xref linkend="valgrind"/> (for tests),
|
---|
[4a01725] | 89 | <ulink url="https://dtrace.org/about/">DTrace</ulink>,
|
---|
[0b4d98d] | 90 | <ulink url="https://github.com/linux-test-project/lcov">LCOV</ulink>,
|
---|
| 91 | <ulink url="&sysprof-url;">sysprof</ulink>, and
|
---|
[a327f9e] | 92 | <ulink url="https://sourceware.org/systemtap">Systemtap</ulink>
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
[dabe4b0] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of Gjs</title>
|
---|
[b9c5febe] | 99 |
|
---|
[dabe4b0] | 100 | <para>
|
---|
| 101 | Install <application>Gjs</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
[7af46e61] | 105 | <screen><userinput>mkdir gjs-build &&
|
---|
| 106 | cd gjs-build &&
|
---|
| 107 |
|
---|
[02c7572d] | 108 | meson setup --prefix=/usr \
|
---|
| 109 | --buildtype=release \
|
---|
| 110 | --wrap-mode=nofallback \
|
---|
| 111 | .. &&
|
---|
[7af46e61] | 112 | ninja</userinput></screen>
|
---|
[dabe4b0] | 113 |
|
---|
| 114 | <para>
|
---|
[0b50758f] | 115 | To test the results, issue: <command>ninja test</command> in a
|
---|
| 116 | graphical session.
|
---|
[dabe4b0] | 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <para>
|
---|
| 120 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
[02c7572d] | 123 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[dabe4b0] | 124 |
|
---|
| 125 | </sect2>
|
---|
[5cf89d2] | 126 |
|
---|
[adf17153] | 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
| 130 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 131 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 132 |
|
---|
[02c7572d] | 133 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 134 | href="../../xincludes/meson-wrap-nofallback.xml"/>
|
---|
| 135 |
|
---|
| 136 | <para>
|
---|
[d6fab82] | 137 | <option>-D profiler=disabled</option>: prevents building the profiler
|
---|
[0b4d98d] | 138 | backend even if <ulink url="&sysprof-url;">sysprof</ulink> is installed.
|
---|
[02c7572d] | 139 | </para>
|
---|
| 140 |
|
---|
[adf17153] | 141 | </sect2>
|
---|
| 142 |
|
---|
[dabe4b0] | 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
[4cbfd95] | 148 | <segtitle>Installed Library</segtitle>
|
---|
[dabe4b0] | 149 | <segtitle>Installed Directories</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
| 152 | <seg>
|
---|
[fb990982] | 153 | gjs (symlink) and gjs-console
|
---|
[dabe4b0] | 154 | </seg>
|
---|
| 155 | <seg>
|
---|
[4cbfd95] | 156 | libgjs.so
|
---|
[dabe4b0] | 157 | </seg>
|
---|
| 158 | <seg>
|
---|
[dbb8c43] | 159 | /usr/include/gjs-1.0,
|
---|
[7af46e61] | 160 | /usr/lib/gjs,
|
---|
[8252e757] | 161 | /usr/libexec/installed-tests/gjs,
|
---|
[7af46e61] | 162 | /usr/share/gjs-1.0, and
|
---|
| 163 | /usr/share/installed-tests/gjs
|
---|
[dabe4b0] | 164 | </seg>
|
---|
| 165 | </seglistitem>
|
---|
| 166 | </segmentedlist>
|
---|
| 167 |
|
---|
| 168 | <variablelist>
|
---|
| 169 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 170 | <?dbfo list-presentation="list"?>
|
---|
| 171 | <?dbhtml list-presentation="table"?>
|
---|
| 172 |
|
---|
[560b86d] | 173 | <varlistentry id="gjs-console">
|
---|
[dabe4b0] | 174 | <term><command>gjs-console</command></term>
|
---|
| 175 | <listitem>
|
---|
| 176 | <para>
|
---|
[560b86d] | 177 | contains a console to run <application>JavaScript</application>
|
---|
[4c24eb0a] | 178 | commands
|
---|
[dabe4b0] | 179 | </para>
|
---|
| 180 | <indexterm zone="gjs gjs-console">
|
---|
| 181 | <primary sortas="b-gjs-console">gjs-console</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
[560b86d] | 184 | </varlistentry>
|
---|
[dabe4b0] | 185 |
|
---|
| 186 | <varlistentry id="libgjs">
|
---|
| 187 | <term><filename class="libraryfile">libgjs.so</filename></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>
|
---|
[4c24eb0a] | 190 | contains the <application>GNOME</application> JavaScript bindings
|
---|
[dabe4b0] | 191 | </para>
|
---|
| 192 | <indexterm zone="gjs libgjs">
|
---|
| 193 | <primary sortas="c-libgjs">libgjs.so</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | </variablelist>
|
---|
| 199 |
|
---|
| 200 | </sect2>
|
---|
| 201 |
|
---|
| 202 | </sect1>
|
---|