--===============8988608513872701839== Content-Type: multipart/alternative; boundary=001a1139c2fc75a6b6050e3f2906 --001a1139c2fc75a6b6050e3f2906 Content-Type: text/plain; charset=UTF-8 Hi Aleix, On Wed, Feb 4, 2015 at 1:27 AM, Aleix Pol 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 --001a1139c2fc75a6b6050e3f2906 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 l= ib prefix for MODULE targets is something that kde's cmake stuff has en= forced. Stock CMake projects using MODULE targets end up with libfoo.so. Th= e only difference between MODULE and SHARED is that MODULE targets get no S= ONAME and hence no libfoo.so.x.y.z symlinks.

I bel= ieve there's no particular reason (but can't recall 100% from the K= DE4 porting times) why the lib prefix is dropped for kde plugins, except th= at the existing plugin-loading-code in kdelibs back then required foo.so fo= r plugins.

Andreas=C2=A0
--001a1139c2fc75a6b6050e3f2906-- --===============8988608513872701839== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-windows mailing list Kde-windows@kde.org https://mail.kde.org/mailman/listinfo/kde-windows --===============8988608513872701839==--