[Interest] QMake variable TARGET_EXT ignored on unix platforms
Roland Winklmeier
roland.m.winklmeier at gmail.com
Wed Jun 18 16:04:32 CEST 2014
>
> unix:QMAKE_POST_LINK += cp $$DESTDIR/$$TARGET.so $$DESTDIR/$$TARGET.xpl
>
> Written from memory, you probably need to fix it a bit.
>
> I hope this helps,
>
Thanks Bo. You pointed me into the right direction.
CONFIG += plugin
unix:QMAKE_POST_LINK += mv $$DESTDIR/lib$${TARGET}.so
$${DESTDIR}/$${TARGET}.xpl
did the trick. With CONFIG += plugin, it will create a single file
libplugin.so instead of the one with library version + two symlinks. The
second command renames it to the required plugin name.
Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140618/bcb1a4c7/attachment.html>
More information about the Interest
mailing list