Gjs-1.72.0

Introduction to Gjs

Gjs is a set of Javascript bindings for GNOME.

[Note]

Note

Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

Gjs Dependencies

Required

Cairo-1.17.6, dbus-1.14.0, gobject-introspection-1.72.0, and JS-91.10.0

Recommended (required for GNOME)

Optional

sysprof-3.44.0, Valgrind-3.19.0 (for tests), DTrace, LCOV, and Systemtap

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/gjs

Installation of Gjs

Install Gjs by running the following commands:

mkdir gjs-build &&
cd    gjs-build &&

meson --prefix=/usr --buildtype=release .. &&
ninja

To test the results, issue: ninja test. The GTK and Cairo tests will fail if not running in an Xorg session. The gjs:JS / Gtk4 test is known to exit with an ERROR on some systems.

Now, as the root user:

ninja install &&

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

Contents

Installed Programs: gjs (symlink) and gjs-console
Installed Library: libgjs.so
Installed Directories: /usr/include/gjs-1.0, /usr/lib/gjs, /usr/libexec/installed-tests/gjs, /usr/share/gjs-1.0, and /usr/share/installed-tests/gjs

Short Descriptions

gjs-console

contains a console to run JavaScript commands

libgjs.so

contains the GNOME JavaScript bindings