On Mon, 2009-11-23 at 07:28 -0800, kriomant wrote:
> I'm writing new plugin, which uses third-party library. This library
> isn't available from standard repositories. How can I include this
> library into my plugin?

This depends on the library.  If it's something nice and portable, like
a C# (or other mono language) library, it's easy.  If it's
platform-dependent, it's harder.

Is the end, the answer is: you don't.  Distributions will pick up the
library and include it.  You can make it easier for users before this
happens by bundling the library in some way, but please don't make it
harder for distros to package it separately.

> 1. Put library file into repository. Where to put it on users' system
> then?

You can check out how the Banshee plugin (used?) to do it; it would
include Banshee.CollectionIndexer.dll in with the plugin.

> 2. Merge library with my plugin. How to integrate mergin into build
> process?

This would be basically the same as below; look at the MicroBlogging
plugin, which bundles the source of a twitter & such library.

> 3. Include whole library code into plugin. License allows that, but it
> is a lot of code.
> 
Please don't do this.

We could give more assistance in #gnome-do on freenode, or if you gave
more specifics about your plugin and the library that it's using.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to