If you are creating an xul-based addon and you have a library that you want to use in it, you just need to put it on your content directory and a link to the library files in the xul files.
- content\ - yourAddon.xul - yourAddon.js - yourLibDirectory\ - libfile1.js
Then, on yourAddon.xul you include it in the header:
<script type="application/x-javascript" src="chrome://yourExtension/content/yourAddon.js"/> <script type="application/x-javascript" src="chrome://yourExtension/content/yourLibDirectory/libfile1.js"/>
If you do this with addon-sdk, I will not help much. :)
source share