I want to copy an audio plugin to my target directory since I need it for deployment.
It lives in <PATH_TO_QT_INSTALL>\gcc\plugins\audio
I don't know what variable I can use to reference the install path inside my /pro file.
The line of code I want to add is something like this:
QMAKE_PRE_LINK += cp $$PATH_TO_QT_INSTAL/gcc/plugins/audio/* $$DESTDIR/lib || :;
There is an environment variable called %{CurrentProject:QT_INSTALL_BINS}
that gets me to $$PATH_TO_QT_INSTAL/gcc/bin
which I could use, but I seem to be only able to use this in the qt creator gui build settings which is no good to me since these settings live in the .pro.user file. WHY doesn't qt have a generic build settings mechanism : ( ... (that's just a side question, no need to answer)
My question is how can I reference the qt install path in my pro file, is there a variable that can do this, or any other way?
qmake -query QT_INSTALL_BINS
command, but I don't know how will it help you. – vahanchoqmake
you know its path, which is the QT_INSTALL_BINS. – vahanchoqmake
lives. So, you can define an environment variable in your script so that it will be available from the pro file. – vahancho