blob: 0af9f5600c911f043290da6ae9fcc2f9782ebbdf [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
Andrew Geissler220dafd2023-10-04 10:18:08 -05007DEPENDS = "mozjs-115 cairo"
Andrew Geissler517393d2023-01-13 08:55:19 -06008
9inherit gnomebase gsettings gobject-introspection vala gettext features_check upstream-version-is-even pkgconfig
10
Andrew Geissler220dafd2023-10-04 10:18:08 -050011SRC_URI[archive.sha256sum] = "fbaa20e0917668830800f92951688f9fc08f01296affd5cdb4b35f750be27dc9"
Andrew Geissler517393d2023-01-13 08:55:19 -060012SRC_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"