[Interest] Multiple .qmake.conf files in SUBDIRS project

Carel Combrink carel.combrink at gmail.com
Tue Sep 1 08:09:17 CEST 2015


Thiago,

There's no such thing as multiple .qmake.conf. Each project can access at
> most
> one, in any of its source paths up towards the root. The first one it
> finds is
> the only one that it will load.
>
> If you have another, anywhere, it will not be loaded.
>
That was what I was expecting (hoping for), but it is not what happens.

See attached a very minimal example:
When running qmake as is, the messages are :

07:52:30: Running steps for project MyProj...

07:52:30: Starting: "Qt/5.3/gcc_64/bin/qmake" TopFolder/MyProj.pro -r -spec
linux-g++ CONFIG+=debug

Project MESSAGE: In TopFolder .qmake.conf

Project MESSAGE: In TopFolder .qmake.conf

Reading TopFolder/MyLib/MyLib.pro [MyProj-Desktop-Debug/MyLib]

Project MESSAGE: In MyLib .qmake.conf

Project MESSAGE: In MyLib .qmake.conf

Project MESSAGE: MyLib sees TOP_FOLDER_TMP:

Reading TopFolder/MyApp/MyApp.pro [MyProj-Desktop-Debug/MyApp]

Project MESSAGE: MyApp sees TOP_FOLDER_TMP: Top_Folder

07:52:30: The process "Qt/5.3/gcc_64/bin/qmake" exited normally.


When I remove the .qmake.conf in MyLib, the following gets reported:

07:56:18: Running steps for project MyProj...

07:56:18: Starting: "Qt/5.3/gcc_64/bin/qmake" TopFolder/MyProj.pro -r -spec
linux-g++ CONFIG+=debug

Project MESSAGE: In TopFolder .qmake.conf

Project MESSAGE: In TopFolder .qmake.conf

Reading TopFolder/MyLib/MyLib.pro [MyProj-Desktop-Debug/MyLib]

Project MESSAGE: MyLib sees TOP_FOLDER_TMP: Top_Folder

Reading TopFolder/MyApp/MyApp.pro [MyProj-Desktop-Debug/MyApp]

Project MESSAGE: MyApp sees TOP_FOLDER_TMP: Top_Folder

07:56:18: The process "Qt/5.3/gcc_64/bin/qmake" exited normally.

Both config files are loaded during the full qmake process. If I understand
you correctly, this is not what should happen, or I am not understanding
you fully.

The same happens on Windows with Qt 5.4

Regards,
Carel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150901/4d084f25/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TopFolder.zip
Type: application/zip
Size: 1226 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150901/4d084f25/attachment.zip>


More information about the Interest mailing list