On Wednesday 07 August 2013 15:07:39 Jan Kundrát wrote:
> On Wednesday, 17 July 2013 21:42:04 CEST, Pali Rohár wrote:
> > My current code have common "interface" classes for password
> > and addressbook plugins. Because trojita working only with
> > pointers of these common objects, code of interface classes
> > must be statically linked into trojita executable binary.
> 
> I don't follow here.
> 
> > But plugin implementation inherit from common interface
> > class, so constructor (and other qobject moc methods) must
> > be accessible from plugin shared library.
> > 
> > So there are two possible methods:
> > 1. static link code of interface classes to both trojita
> > executable and to plugin shared library
> > 2. link interface code only to trojita executable and export
> > symbols to be accessible by loaded libraries
> 
> Would the following work?
> 
> 3) Move the common code into a shared library and have both
> trojita-the-library and any plugin link with said shared
> library.
> 
> Jan

This means that all code which is needed by plugins must be moved 
into shared library. So then trojita will have one executable 
binary and one shared library. Both binaries will be needed to 
run trojita and trojita version without plugins... Do you think 
that this is really acceptable solution?

-- 
Pali Rohár
[email protected]

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

Reply via email to