Base Directory Specification and plugins

David Faure faure at kde.org
Fri Dec 16 03:01:32 PST 2011


On Thursday 15 December 2011 23:35:34 Yury G.  Kudryashov wrote:
> David Faure wrote:
> > On Sunday 11 December 2011 15:16:32 Yury G.  Kudryashov wrote:
> >> Plugins should be installed to
> >> ${INSTALL_PREFIX}/lib${LIB_SUFFIX}${LIBRARY_SPECIFIC_SUFFIX}.
> >> ${LIB_SUFFIX} should be chosen in the same way that is used for shared
> >> libraries.
> >> 
> >> Buildsystem of a plugin-enabled library/application should (must?) allow
> >> distributions to override LIB_SUFFIX and may allow override of
> >> LIBRARY_SPECEFIC_SUFIX.
> > 
> > Overriding the library suffix? If you install a plugin for qt, it has to
> > go into /usr/lib/plugins/qt, if that's where all your qt plugins go. If a
> > single plugin is compiled with an overriden library suffix of "foobar",
> > then your plugin /usr/lib/plugins/foobar will feel quite alone and ignored
> > 
> > :)
> 
> Overriding the LIBRARY_SPECIFIC_SIFFIX while compiling the library, not a
> plugin. E.g., `./configure --plugin-suffix=qt` for plugins in
> $prefix/lib/plugins/qt or `./configure --plugin-suffix=qt4` for plugins in
> $prefix/lib/plugins/qt4.

Ah OK. Nice to have, but not really a hard requirement.

> >> Both LIB_SUFFIX ad LIBRARY_SPECIFIC_SUFFIX must be advertised through
> >> installed development files (e.g., mylib.pc or MyLibConfig.cmake).
> > 
> > Yes (well, or just the full path where to install plugins?)
> 
> Either both parts or the full path _relative_ to the installation prefix.
> The absolute path makes no sense if I'm installing a plugin to my home
> directory.

Right, relative path is the best solution.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5



More information about the xdg mailing list