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

List:       kde-mac
Subject:    Re: [KDE/Mac] Regarding building QML modules
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2015-02-04 8:42:04
Message-ID: CAExHGmRVGGwv=HCRw4q7m1M1inarxYNpnCSkMWgEurgk_yezbg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Aleix,

On Wed, Feb 4, 2015 at 1:27 AM, Aleix Pol <aleixpol@kde.org> wrote:

> Hi,
> I received this bug report [1], I guess this should be figured out. It
> suggests using add_library(MODULE) instead of add_library(SHARED) for
> QML modules, as they are not meant to be linked to.
>
> I think it makes sense, I would have done it like that since the
> beginning if it wasn't because Qt requires a lib* prefix to the QML
> plugins (only on linux?).
>

The missing lib prefix for MODULE targets is something that kde's cmake
stuff has enforced. Stock CMake projects using MODULE targets end up with
libfoo.so. The only difference between MODULE and SHARED is that MODULE
targets get no SONAME and hence no libfoo.so.x.y.z symlinks.

I believe there's no particular reason (but can't recall 100% from the KDE4
porting times) why the lib prefix is dropped for kde plugins, except that
the existing plugin-loading-code in kdelibs back then required foo.so for
plugins.

Andreas

[Attachment #5 (text/html)]

<div dir="ltr">Hi Aleix,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, \
Feb 4, 2015 at 1:27 AM, Aleix Pol <span dir="ltr">&lt;<a \
href="mailto:aleixpol@kde.org" target="_blank">aleixpol@kde.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">Hi,<br> I received this bug report [1], I guess this \
should be figured out. It<br> suggests using add_library(MODULE) instead of \
add_library(SHARED) for<br> QML modules, as they are not meant to be linked to.<br>
<br>
I think it makes sense, I would have done it like that since the<br>
beginning if it wasn&#39;t because Qt requires a lib* prefix to the QML<br>
plugins (only on linux?).<br></blockquote><div><br></div><div>The missing lib prefix \
for MODULE targets is something that kde&#39;s cmake stuff has enforced. Stock CMake \
projects using MODULE targets end up with libfoo.so. The only difference between \
MODULE and SHARED is that MODULE targets get no SONAME and hence no libfoo.so.x.y.z \
symlinks.</div><div><br></div><div>I believe there&#39;s no particular reason (but \
can&#39;t recall 100% from the KDE4 porting times) why the lib prefix is dropped for \
kde plugins, except that the existing plugin-loading-code in kdelibs back then \
required foo.so for plugins.</div><div><br></div><div>Andreas  \
</div></div></div></div>



_______________________________________________
kde-mac@kde.org
List Information: https://mail.kde.org/mailman/listinfo/kde-mac
KDE/Mac Information: http://community.kde.org/Mac

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

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