blob: b2c2b583b097a72c0802dae57586df76bdc2c76c [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Javascript bindings for GNOME"
2LICENSE = "MIT & LGPL-2.0-or-later"
3LIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48"
4
5GNOMEBASEBUILDCLASS = "meson"
6
7DEPENDS = "mozjs-102 cairo"
8
9inherit gnomebase gsettings gobject-introspection vala gettext features_check upstream-version-is-even pkgconfig
10
11SRC_URI[archive.sha256sum] = "81dcdf49d2665d08fa7e251700ea36466d77877418e9186d3a7e7efcd31aa960"
12SRC_URI += " \
13 file://0001-Support-cross-builds-a-bit-better.patch \
14 file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \
15"
16
17# gobject-introspection is mandatory and cannot be configured
18REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
19GIR_MESON_OPTION = ""
20
21EXTRA_OEMESON = " \
22 -Dinstalled_tests=false \
23 -Dskip_dbus_tests=true \
24 -Dskip_gtk_tests=true \
25"
26
27LDFLAGS:append:mipsarch = " -latomic"
28LDFLAGS:append:powerpc = " -latomic"
29LDFLAGS:append:powerpc64 = " -latomic"
30LDFLAGS:append:riscv32 = " -latomic"
31
32FILES:${PN} += "${datadir}/gjs-1.0/lsan"
33
34PACKAGES =+ "${PN}-valgrind"
35FILES:${PN}-valgrind = "${datadir}/gjs-1.0/valgrind"
36RDEPENDS:${PN}-valgrind += "valgrind"
37
38# Valgrind not yet available on rv32/rv64
39RDEPENDS:${PN}-valgrind:remove:riscv32 = "valgrind"
40RDEPENDS:${PN}-valgrind:remove:riscv64 = "valgrind"