On Wed, 2009-11-25 at 09:10 -0800, kriomant wrote: > On 25 ноя, 09:23, Christopher James Halse Rogers > <[email protected]> wrote: > > 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. > > I'm writing a plug-in for Transmission torrent client, and it uses > Jayrock.Json library for interacting with Transmission RPC interface. > Jayrock.Json is a fully managed .NET library. > > > 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. > > I can pack library into a package, but I have no intention to maintain > it. And embedding it into plug-in is definitely faster than waiting > for inclusion of package to distros. Of course, bundled library can be > safely removed once it is included into distro. > > > > 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. > > OK, I've looked at how banshee distributes utility library. Should I > do the same?
Yeah. Throw the pre-built DLL in BundledLibraries, and reference it from there. If necessary, I'll add the autofoo required to use that lib iff there's no system-wide version.
signature.asc
Description: This is a digitally signed message part
