Using dynamic Qt plugins in KAuth

Alexander Neundorf neundorf at kde.org
Sun Feb 14 18:30:01 CET 2010


On Sunday 14 February 2010, Dario Freddi wrote:
> On Sunday 14 February 2010 17:55:07 Alexander Neundorf wrote:
> > On Sunday 14 February 2010, Dario Freddi wrote:
> > > On Sunday 14 February 2010 00:00:52 Christoph Feck wrote:
> > > > On Saturday 13 February 2010 20:42:21 Dario Freddi wrote:
> > > > > Is something like  ${LIB_INSTALL_DIR}/kauth/helper acceptable?
> > > >
> > > > No, use something like ${PLUGIN_INSTALL_DIR}/plugins/kauthbackends/
> > >
> > > Thanks. I committed the fix in 1089968 so that the set lines are now
> > >
> > > set(KAUTH_HELPER_PLUGIN_DIR
> > > "${PLUGIN_INSTALL_DIR}/plugins/kauth/helper" CACHE STRING "Where
> > > KAuth's helper plugin will be installed")
> > >
> > > This should fix both of the issues pointed by Alexander. If no further
> > > objections will arise, I'll backport everything in a pair of days.
> >
> > Hmm.
> > There is a small issue with this:
> > if you just run cmake, and then run e.g. cmake-gui to change
> > CMAKE_INSTALL_PREFIX, this change will not automatically propagate
> > through to KAUTH_HELPER_PLUGIN_DIR, since this will be already in the
> > CMake cache then.
> >
> > Please have a look at the set_fancy() macro in FindKDE4Internal.cmake and
> > see if it works for you (there is full documentation just above the
> > macro).
>
> Looks like it could work out. So in the end
>
> _set_fancy(KAUTH_BACKEND_PLUGIN_DIR
> "${PLUGIN_INSTALL_DIR}/plugins/kauth/backend" "Where KAuth's backend plugin
> will be installed")
>
> Is the correct command?

I think so.
Play around with it a bit, i.e., let cmake run without specifying anything and 
see what KAUTH_BACKEND_PLUGIN_DIR will be.
Run cmake initially with CMAKE_INSTALL_PREFIX set and check 
KAUTH_BACKEND_PLUGIN_DIR .
Change CMAKE_INSTALL_PREFIX in an already existing build dir and check whether 
this propagates to KAUTH_BACKEND_PLUGIN_DIR .
Check whether you can set KAUTH_BACKEND_PLUGIN_DIR explicitely in the cache 
and whether this survives another cmake run and changing CMAKE_INSTALL_PREFIX 
etc.

Alex


More information about the Kde-buildsystem mailing list