[Interest] Custom .prf files for QMake in project root?
elvstone at gmail.com
Sun Aug 17 22:10:20 CEST 2014
2014-08-17 21:59 GMT+02:00 Filip Piechocki <fpiechocki at gmail.com>:
> Haven't tested this on Qt5 but on Qt4 we were using:
> qmake -set QMAKEFEATURES /path/to/prf/files
> and put all prf files in the /path/to/prf/files directory. Main downside
> of this is that you have to set this qmake variable - so just shipping
> custom prf files is not enough, you have to force the developer to set the
> proper path.
Yep that works.
I'm writing a .prf that is intended to be usable by anyone, and having to
tell them that they now need to pass special variables to qmake is not
ideal. But I think I'll just make it a .pri to be include()ed instead.
Thanks for the tip.
> On Sun, Aug 17, 2014 at 6:23 PM, Elvis Stansvik <elvstone at gmail.com>
>> Hi folks,
>> According to point 3 in the second list at , I should be able to put
>> my own .prf feature files for QMake in the project root.
>> I tried putting my foo.prf in features/win32/foo.prf with a simple
>> message("foo.prf loaded") in it, but it was not loaded by QMake.
>> I then took a look at the QMake source and found . It seems that
>> QMake will only look for .prf files in the project root if it contains some
>> form of cache file. (See also the comment for the linked function.)
>> So my question are:
>> 1) What is this cache file? I can't remember ever seeing that on Linux or
>> 2) Why is QMake only loading the .prf files in the project root if
>> there's a cache file? It seems an arbitrary limitation to me, but perhaps
>> I'm missing something?
>> AFAICS this makes it impossible to ship custom .prf files with your
>> project and rely on them being loaded by QMake :(
>> Best regards,
>> Elvis Stansvik
>> Interest mailing list
>> Interest at qt-project.org
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest