Generating xpt on Windows

In order to generate an .xpt file from an .idl file in recent versions of the Gecko \ XUL Runner SDK in Windows, you need to use the typelib.py script. Assuming you installed your XULRunner SDK at <MOZSDKDIR>, you then need to issue a command similar to

C:\working-dir> <MOZSDKDIR>\sdk\bin\typelib.py <InputFile.idl> -o <OutputFile.xpt> -I <MOZSDKDIR>\idl

Document Tags and Contributors

 Contributors to this page: MKaply, fscholz, kscarfone, Sheppy, Kastor, dMaggot
 Last updated by: MKaply,