[Interest] QMake variable TARGET_EXT ignored on unix platforms

Bo Thorsen bo at vikingsoft.eu
Wed Jun 18 16:06:05 CEST 2014



Den 18-06-2014 16:04, Roland Winklmeier skrev:
>     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.

You're very welcome :)

> 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.

There's a reason I used cp instead of mv: With this it will relink every 
single time you build, even if you didn't change anything.

Bo.

-- 
Viking Software
Qt and C++ developers for hire
http://www.vikingsoft.eu



More information about the Interest mailing list