2013-06-01 20:19:53 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2022-11-15 04:05:14 +08:00
|
|
|
<!ENTITY gjs-download-http "&gnome-download-http;/gjs/1.74/gjs-&gjs-version;.tar.xz">
|
|
|
|
<!ENTITY gjs-download-ftp "&gnome-download-ftp;/gjs/1.74/gjs-&gjs-version;.tar.xz">
|
2023-03-03 01:54:01 +08:00
|
|
|
<!ENTITY gjs-md5sum "91ba17aa00a661be5648f6f91c04ae37">
|
2022-11-15 04:05:14 +08:00
|
|
|
<!ENTITY gjs-size "624 KB">
|
2023-03-03 01:54:01 +08:00
|
|
|
<!ENTITY gjs-buildsize "240 MB (with tests)">
|
|
|
|
<!ENTITY gjs-time "0.6 SBU (with tests)">
|
2013-06-01 20:19:53 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="gjs" xreflabel="Gjs-&gjs-version;">
|
|
|
|
<?dbhtml filename="gjs.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>Gjs-&gjs-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="gjs">
|
|
|
|
<primary sortas="a-Gjs">Gjs</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Gjs</title>
|
|
|
|
|
|
|
|
<para>
|
2016-07-23 05:00:54 +08:00
|
|
|
<application>Gjs</application> is a set of Javascript bindings for
|
2013-06-01 20:19:53 +08:00
|
|
|
<application>GNOME</application>.
|
|
|
|
</para>
|
|
|
|
|
2023-02-19 04:22:38 +08:00
|
|
|
&lfs113_checked;
|
2013-06-01 20:19:53 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&gjs-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&gjs-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &gjs-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &gjs-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &gjs-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &gjs-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Gjs Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="cairo"/>,
|
2018-08-31 03:27:14 +08:00
|
|
|
<xref linkend="dbus"/>,
|
2013-09-03 04:01:46 +08:00
|
|
|
<xref linkend="gobject-introspection"/>, and
|
2022-11-15 04:01:00 +08:00
|
|
|
<xref linkend="js102"/>
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
|
2019-06-28 04:55:17 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended (required for GNOME)</bridgehead>
|
|
|
|
<para role="recommended">
|
2021-04-07 09:06:55 +08:00
|
|
|
<xref linkend="gtk3"/> and
|
|
|
|
<xref linkend="gtk4"/>
|
2016-07-04 08:12:03 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2020-09-21 23:55:38 +08:00
|
|
|
<xref linkend="sysprof"/>,
|
2017-09-21 02:43:31 +08:00
|
|
|
<xref linkend="valgrind"/> (for tests),
|
2017-04-06 09:33:46 +08:00
|
|
|
<ulink url="http://dtrace.org/blogs/about">DTrace</ulink>,
|
2023-01-29 12:31:35 +08:00
|
|
|
<ulink url="https://ltp.sourceforge.net/coverage/lcov.php">LCOV</ulink>, and
|
2016-07-04 08:12:03 +08:00
|
|
|
<ulink url="https://sourceware.org/systemtap">Systemtap</ulink>
|
|
|
|
</para>
|
|
|
|
|
2013-06-01 20:19:53 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/gjs"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Gjs</title>
|
2020-05-19 02:25:15 +08:00
|
|
|
|
2013-06-01 20:19:53 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Gjs</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2020-03-29 03:35:39 +08:00
|
|
|
<screen><userinput>mkdir gjs-build &&
|
|
|
|
cd gjs-build &&
|
|
|
|
|
2023-01-28 18:18:11 +08:00
|
|
|
meson setup --prefix=/usr \
|
|
|
|
--buildtype=release \
|
|
|
|
--wrap-mode=nofallback \
|
|
|
|
.. &&
|
2020-03-29 03:35:39 +08:00
|
|
|
ninja</userinput></screen>
|
2013-06-01 20:19:53 +08:00
|
|
|
|
|
|
|
<para>
|
2020-03-29 03:35:39 +08:00
|
|
|
To test the results, issue: <command>ninja test</command>. The
|
2017-04-16 12:12:19 +08:00
|
|
|
<application>GTK</application> and <application>Cairo</application>
|
2022-08-09 18:57:02 +08:00
|
|
|
tests will fail if not running in an Xorg session.
|
|
|
|
<!-- https://github.com/mesonbuild/meson/issues/10577 --> Four tests
|
|
|
|
are known to timeout.
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2023-01-28 18:18:11 +08:00
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
2013-06-01 20:19:53 +08:00
|
|
|
|
|
|
|
</sect2>
|
2016-03-28 05:29:25 +08:00
|
|
|
|
2021-06-04 20:57:26 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/meson-buildtype-release.xml"/>
|
|
|
|
|
2023-01-28 18:18:11 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/meson-wrap-nofallback.xml"/>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>-Dprofiler=disabled</option>: prevents building the profiler
|
|
|
|
backend even if <xref linkend="sysprof"/> is installed.
|
|
|
|
</para>
|
|
|
|
|
2021-06-04 20:57:26 +08:00
|
|
|
</sect2>
|
|
|
|
|
2013-06-01 20:19:53 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
2013-07-29 01:12:40 +08:00
|
|
|
<segtitle>Installed Library</segtitle>
|
2013-06-01 20:19:53 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2014-04-01 05:32:12 +08:00
|
|
|
gjs (symlink) and gjs-console
|
2013-06-01 20:19:53 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2013-07-29 01:12:40 +08:00
|
|
|
libgjs.so
|
2013-06-01 20:19:53 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2018-08-17 06:09:09 +08:00
|
|
|
/usr/include/gjs-1.0,
|
2020-03-29 03:35:39 +08:00
|
|
|
/usr/lib/gjs,
|
2020-10-02 22:24:40 +08:00
|
|
|
/usr/libexec/installed-tests/gjs,
|
2020-03-29 03:35:39 +08:00
|
|
|
/usr/share/gjs-1.0, and
|
|
|
|
/usr/share/installed-tests/gjs
|
2013-06-01 20:19:53 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2017-04-06 09:33:46 +08:00
|
|
|
<varlistentry id="gjs-console">
|
2013-06-01 20:19:53 +08:00
|
|
|
<term><command>gjs-console</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2017-04-06 09:33:46 +08:00
|
|
|
contains a console to run <application>JavaScript</application>
|
2021-02-19 23:20:16 +08:00
|
|
|
commands
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="gjs gjs-console">
|
|
|
|
<primary sortas="b-gjs-console">gjs-console</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
2017-04-06 09:33:46 +08:00
|
|
|
</varlistentry>
|
2013-06-01 20:19:53 +08:00
|
|
|
|
|
|
|
<varlistentry id="libgjs">
|
|
|
|
<term><filename class="libraryfile">libgjs.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains the <application>GNOME</application> JavaScript bindings
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="gjs libgjs">
|
|
|
|
<primary sortas="c-libgjs">libgjs.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|