external library as a part of xulrunner

[email protected] Sun, 17 May 2015 07:46:04 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
Hi All.

I have an external library with header files compiled for android. This lib is something like T9 (predictive text) for mobiles.
Could anyone answer:
Is it possible to add this lib (or any other compiled lib) to libxul for FFOS and expose its API for javascript?
Or do I need to have a source code of that lib to port it into a new XPCOM component?

Any tips or code samples are very appreciated.

Thanks in advance.