On Saturday 10 August 2013 20:04:38 Jan Kundrát wrote: > On Saturday, 10 August 2013 18:15:57 CEST, Pali Rohár wrote: > > I wanted to have trojita mail client as small as possible > > without too many dependencies & libraries. And this also > > drop support for static linked plugin(s) into trojita > > executable (because plugins will need one shared library). > > So it will not be possible to create one trojita executable > > binary without anything else like now. > > I agree with Thomas here. Trojita links with Qt (plenty of > shared libraries), so there's no point in not using one more > in a situation like this, where a common shared lib is > apparently the clean solution. > > Jan
Ok. I moved Plugins shared code to Plugins shared library (name libtrojita_plugins.so). After some fixes qobject_cast<> started working. Anyway I tried also option 2 and after some fixes in CMake it wokred too. Now it is possible to choose between external shared plugin library (libtrojita_plugins.so) and linking this code directly to trojita executable. For enabling there is cmake option WITH_STATIC_PLUGIN_LIBRARY. And also in both cases in trojita executable and also in kontact plugin qobject_cast<> finally working. -- Pali Rohár [email protected]
signature.asc
Description: This is a digitally signed message part.
