Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

embedding only javascript C engine

2 views
Skip to first unread message

shammash

unread,
Mar 14, 2009, 10:42:58 AM3/14/09
to
Hi!

I'm packaging for linux an application which uses spidermonkey
interpreter.
At present this application ships with a copy of spidermonkey sources
which are
statically linked, obviously I'd like to link to an external library
instead.

Many linux distributions nowadays ship with a package like 'libmozjs'
which is
one of the packages created from xulrunner sources, for instance in
Debian you have:
http://packages.debian.org/sid/libmozjs-dev .

The above mentioned debian package is a nice solution to my problem:
by simply using
'mozilla-js' pkg-config directives I can build successfully, however
it mangles
official xulrunner header files hierarchy to achieve that.

So for instance if I'd like to build against an external javascript
library on
Gentoo (which doesn't mangle the installation) I have to use both
'mozilla-js'
and 'libxul-embedding-unstable' which is a bit overkill if I only need
the
javascript C engine.

So the question is:
do you think in the future will be possible to simply use the
information
provided by 'mozilla-js.pc' to build and link successfully an
application using
javascript C engine?

Thank you,

luca

0 new messages