Hi Nuno,
http://doc.qt.io/qt-5/qmake-variable-reference.html (a little bit of
scrolling is needed)
http://doc.qt.io/qt-5/qmake-advanced-usage.html#libdepend
Using create_prl and link_prl, you can handle your dependencies as if
you were linking a shared library. QMake will resolve the dependencies
of sub-static-libraries and also choose the correct name even if you
just do "LIBS += -lmystaticlibrary" (like with any dynamic one).
If you have an dependency tree like "app -> gui -> core" (all static),
the app.pro can just do "LIBS += -lgui" and QMake will also link the
static core library since it's needed by gui.
Regards,
Christoph
On 23.05.18 16:20, Nuno Santos wrote:
Christoph,
Thanks for your reply.
How could I forget DESTDIR var… Thx!!!
Question…
What is the prl? What are the benefits of having it?
I’m already creating and linking the static lib without problems, at
least for iOS.
Regards,
Nuno
On 23 May 2018, at 11:07, Christoph Keller <theoriginal...@gmail.com
<mailto:theoriginal...@gmail.com>> wrote:
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@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org <mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest