[Interest] Deploying the output of a static lib

Christoph Keller theoriginalgri at gmail.com
Wed May 23 12:07:18 CEST 2018


Hi,

you can also use the DESTDIR property instead of copying.

Also don't forget "CONFIG += create_prl" which makes linking (using 
CONFIG += link_prl) far more easy.

Regards,
Christoph

PS: Sorry for the direct reply in the first place instead of the list

On 22.05.18 12:29, Nuno Santos wrote:
> Hi,
>
> I’m using the following pattern to create a static lib for iOS:
>
> *include(shared.pri)*
> *
> *
> *TARGET = shared*
> *TEMPLATE = lib*
> *CONFIG += staticlib*
> *
> *
> *
> *
> *CONFIG(debug, debug|release): {*
> *    QMAKE_POST_LINK += cp $$OUT_PWD/libshared.a $$PWD/build/debug*
> *
> *
> *} else {*
> *    QMAKE_POST_LINK += cp $$OUT_PWD/libshared.a $$PWD/build/release*
> *}*
>
> The problem is that at the QMAKE_POST_LINK phase, the lib is not yet 
> ready. There is still a step being performed.
>
> How can perform the cp operation when the lib is actually ready and 
> nothing else will be performed on it?
>
> Thanks!
>
> Regards,
>
> Nuno
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180523/f40664f5/attachment.html>


More information about the Interest mailing list