[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-buildsystem
Subject:    Re: Using dynamic Qt plugins in KAuth
From:       Dario Freddi <drf54321 () gmail ! com>
Date:       2010-02-13 19:42:21
Message-ID: 4e03084c1002131142u16d0f275lde258dadaf16b728 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


(In reply to Thiago)

It's because I can't use KService. Those plugins will be loaded in helpers
as well, and I surely don't want to spawn a KDE session just to load a pair
of plugins, so using Qt's dynamic plugins seems to me a better solution. Is
something like  ${LIB_INSTALL_DIR}/kauth/helper acceptable?

2010/2/12 Dario Freddi <drf54321@gmail.com>

> On Friday 12 February 2010 19:06:47 Alexander Neundorf wrote:
> > I think this part doesn't look good:
> >
> > @@ -187,4 +191,9 @@
> >                 auth/backends/dbus/dbus_service.stub
> >           DESTINATION ${DATA_INSTALL_DIR}/kauth COMPONENT Devel)
> >
> > +# Set the various directories
> > +set(KAUTH_HELPER_PLUGIN_DIR "${QT_PLUGINS_DIR}/kauth/helper")
> > +set(KAUTH_BACKEND_PLUGIN_DIR "${QT_PLUGINS_DIR}/kauth/backend")
> > +set(KAUTH_OTHER_PLUGIN_DIR "${QT_PLUGINS_DIR}/kauth/plugins")
> > +
> >
> >
> > Because this way these settings are not in the cache and can not be
> changed
> > by the one who builds the package.
> > So, these variables should be in the cache, and I'm also not sure that
> they
> > should default to a subdir of QT_PLUGINS_DIR.
> > I'd say by default everything should go somewhere inside
> > CMAKE_INSTALL_PREFIX.
>
> I admit I plain stole these from QCA. Is there any path where putting the
> plugins would be suggested?
>
> >
> > Do I remember right that we discussed this already once ?
>
> No, it's the first time I attempted this move. We discussed where to place
> polkit action files, which was a similar issue though.
>
> >
> > Alex
>
> --
> -------------------
>
> Dario Freddi
> KDE Developer
> GPG Key Signature: 511A9A3B
>

[Attachment #5 (text/html)]

(In reply to Thiago)<div><br></div><div>It&#39;s because I can&#39;t use KService. \
Those plugins will be loaded in helpers as well, and I surely don&#39;t want to spawn \
a KDE session just to load a pair of plugins, so using Qt&#39;s dynamic plugins seems \
to me a better solution. Is something like  ${LIB_INSTALL_DIR}/kauth/helper \
acceptable?<br> <div class="gmail_quote"><br></div><div class="gmail_quote">2010/2/12 \
Dario Freddi <span dir="ltr">&lt;<a \
href="mailto:drf54321@gmail.com">drf54321@gmail.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"> <div class="im">On Friday 12 February 2010 19:06:47 \
Alexander Neundorf wrote:<br> &gt; I think this part doesn&#39;t look good:<br>
&gt;<br>
&gt; @@ -187,4 +191,9 @@<br>
&gt;                 auth/backends/dbus/dbus_service.stub<br>
&gt;           DESTINATION ${DATA_INSTALL_DIR}/kauth COMPONENT Devel)<br>
&gt;<br>
&gt; +# Set the various directories<br>
&gt; +set(KAUTH_HELPER_PLUGIN_DIR &quot;${QT_PLUGINS_DIR}/kauth/helper&quot;)<br>
&gt; +set(KAUTH_BACKEND_PLUGIN_DIR &quot;${QT_PLUGINS_DIR}/kauth/backend&quot;)<br>
&gt; +set(KAUTH_OTHER_PLUGIN_DIR &quot;${QT_PLUGINS_DIR}/kauth/plugins&quot;)<br>
&gt; +<br>
&gt;<br>
&gt;<br>
&gt; Because this way these settings are not in the cache and can not be changed<br>
&gt; by the one who builds the package.<br>
&gt; So, these variables should be in the cache, and I&#39;m also not sure that \
they<br> &gt; should default to a subdir of QT_PLUGINS_DIR.<br>
&gt; I&#39;d say by default everything should go somewhere inside<br>
&gt; CMAKE_INSTALL_PREFIX.<br>
<br>
</div>I admit I plain stole these from QCA. Is there any path where putting the<br>
plugins would be suggested?<br>
<div class="im"><br>
&gt;<br>
&gt; Do I remember right that we discussed this already once ?<br>
<br>
</div>No, it&#39;s the first time I attempted this move. We discussed where to \
place<br> polkit action files, which was a similar issue though.<br>
<br>
&gt;<br>
&gt; Alex<br>
<div><div></div><div class="h5"><br>
--<br>
-------------------<br>
<br>
Dario Freddi<br>
KDE Developer<br>
GPG Key Signature: 511A9A3B<br>
</div></div></blockquote></div><br></div>



_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic