Skip to content

Commit 3cb5802

Browse files
Add pkgconfig variable to export the appropriate API version of mozjs (#134)
Based on GNOME/gjs@e4e905a 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.
1 parent 235b8b9 commit 3cb5802

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ pkg.generate(libcjs, name: api_name, description: 'JS bindings for GObjects',
600600
'exec_prefix=${prefix}',
601601
'datarootdir=${datadir}',
602602
'cjs_console=${bindir}/cjs-console',
603+
'mozjs_dep_name=@0@'.format(spidermonkey.name()),
603604
])
604605

605606
### Test environment ###########################################################

0 commit comments

Comments
 (0)