From 807dd667f8ce84a23af2ccde4f76dae45a12bc0b Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Wed, 21 Jan 2026 10:58:30 +0000 Subject: [PATCH] Add pkgconfig variable to export the appropriate API version of mozjs Based on https://github.com/GNOME/gjs/commit/e4e905a55626754c993ed7f782b2d553a1f952a7 This is so that consumers of gjs that also need to link against mozjs don't have to parse the mozjs-NNN version out of Requires.private. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index aed16db6..7c18f195 100644 --- a/meson.build +++ b/meson.build @@ -600,6 +600,7 @@ pkg.generate(libcjs, name: api_name, description: 'JS bindings for GObjects', 'exec_prefix=${prefix}', 'datarootdir=${datadir}', 'cjs_console=${bindir}/cjs-console', + 'mozjs_dep_name=@0@'.format(spidermonkey.name()), ]) ### Test environment ###########################################################