1*03514f19SPatrick WilliamsSUMMARY = "Javascript bindings for GNOME"
2*03514f19SPatrick WilliamsLICENSE = "MIT & LGPL-2.0-or-later"
3*03514f19SPatrick WilliamsLIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48"
4*03514f19SPatrick Williams
5*03514f19SPatrick Williams
6*03514f19SPatrick WilliamsDEPENDS = "mozjs-115 cairo"
7*03514f19SPatrick Williams
8*03514f19SPatrick Williamsinherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even pkgconfig
9*03514f19SPatrick Williams
10*03514f19SPatrick WilliamsSRC_URI[archive.sha256sum] = "135e39c5ac591096233e557cfe577d64093f5054411d47cb2e214bad7d4199bd"
11*03514f19SPatrick WilliamsSRC_URI += " \
12*03514f19SPatrick Williams    file://0001-Support-cross-builds-a-bit-better.patch \
13*03514f19SPatrick Williams    file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \
14*03514f19SPatrick Williams"
15*03514f19SPatrick Williams
16*03514f19SPatrick Williams# gobject-introspection is mandatory and cannot be configured
17*03514f19SPatrick WilliamsREQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
18*03514f19SPatrick WilliamsGIR_MESON_OPTION = ""
19*03514f19SPatrick Williams
20*03514f19SPatrick WilliamsEXTRA_OEMESON = " \
21*03514f19SPatrick Williams    -Dinstalled_tests=false \
22*03514f19SPatrick Williams    -Dskip_dbus_tests=true \
23*03514f19SPatrick Williams    -Dskip_gtk_tests=true \
24*03514f19SPatrick Williams"
25*03514f19SPatrick Williams
26*03514f19SPatrick WilliamsLDFLAGS:append:mipsarch = " -latomic"
27*03514f19SPatrick WilliamsLDFLAGS:append:powerpc = " -latomic"
28*03514f19SPatrick WilliamsLDFLAGS:append:powerpc64 = " -latomic"
29*03514f19SPatrick WilliamsLDFLAGS:append:riscv32 = " -latomic"
30*03514f19SPatrick Williams
31*03514f19SPatrick WilliamsFILES:${PN} += "${datadir}/gjs-1.0/lsan"
32*03514f19SPatrick Williams
33*03514f19SPatrick WilliamsPACKAGES =+ "${PN}-valgrind"
34*03514f19SPatrick WilliamsFILES:${PN}-valgrind = "${datadir}/gjs-1.0/valgrind"
35*03514f19SPatrick WilliamsRDEPENDS:${PN}-valgrind += "valgrind"
36*03514f19SPatrick Williams
37*03514f19SPatrick Williams# Valgrind not yet available on rv32/rv64
38*03514f19SPatrick WilliamsRDEPENDS:${PN}-valgrind:remove:riscv32 = "valgrind"
39*03514f19SPatrick WilliamsRDEPENDS:${PN}-valgrind:remove:riscv64 = "valgrind"
40