Ari Heitner wrote:
>
> So I'm embedding mozilla, and I want access my XPCom objects from JS. I know I
> need to generate type library files, and I know that once the components are
> registered (on the com side) and com has the xpt files, delightful
> auto-marshalling will happen.
>
> the question is, what's the rule for maing those type library files available?
> dmose suggested making sure they were right next to the component's shared
> library files (i actually haven't played with things yet); he suggested asking
> what the correct thing to do is... so that's what i'm doing :)
>
> cheers,
>
> ari
xpcom only sees .xpt files in the 'components' directory. In a
debug build, changes to xpt files are autdetected on every
application startup. In release builds you need to force an
autoregistration programatically (either via
nsIInterfaceInfoManager::autoRegisterInterfaces()
or using the autoRegister method on nsIComponentManager of via
whatever mechanism the installer provides if you are using the
installer).
John.