<div dir="ltr">Haven't tested this on Qt5 but on Qt4 we were using:<div>qmake -set QMAKEFEATURES /path/to/prf/files</div><div><br></div><div>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.</div>
<div><br></div><div>BR,</div><div>Filip</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 17, 2014 at 6:23 PM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvstone@gmail.com" target="_blank">elvstone@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi folks,<div><br></div><div>According to point 3 in the second list at [1], I should be able to put my own .prf feature files for QMake in the project root.</div>
<div><br></div><div>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.</div>
<div><br></div><div>I then took a look at the QMake source  and found [2]. 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.)</div>

<div><br></div><div>So my question are:</div><div><br></div><div>1) What is this cache file? I can't remember ever seeing that on Linux or Windows.</div><div>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?</div>

<div><br></div><div>AFAICS this makes it impossible to ship custom .prf files with your project and rely on them being loaded by QMake :(</div><div><br></div><div>Best regards,</div><div>Elvis Stansvik</div><div><br></div>

<div>[1] <a href="http://qt-project.org/doc/qt-5/qmake-advanced-usage.html#adding-new-configuration-features" target="_blank">http://qt-project.org/doc/qt-5/qmake-advanced-usage.html#adding-new-configuration-features</a></div>
<div>[2] <a href="https://qt.gitorious.org/qt/qt/source/469dcfff3e39249b0a5eb98242fbe5f917587246:qmake/project.cpp#L565-573" target="_blank">https://qt.gitorious.org/qt/qt/source/469dcfff3e39249b0a5eb98242fbe5f917587246:qmake/project.cpp#L565-573</a></div>

</div>
<br>_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank">http://lists.qt-project.org/mailman/listinfo/interest</a><br>
<br></blockquote></div><br></div>