Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.0
-
None
-
Windows 7 x64, MS VS 2013
-
f90c1860580bcbe6b898ceb86cdd746532470c64
Description
Ticket created based on E-Mail conversation with Joerg Bornemann
There is a difference in a way how qmake generates Visual Studio project files and filters between qmake 5.3 and 5.4.
I am using CONFIG -= flat mode, to get a hierarchy in the solution explorer and it used to work fine for years, but since 5.4 for all headers containing QObject based classed (involving custom build step), there is a wrong path in the filter folder, which leads to situation where in the resulted project there are proper folders in headers section but they are all empty (except non QObject headers), and rest of headers in the root of Headers like in a flat mode.
Main difference encountered is:
<ItemGroup> <CustomBuild Include=”..\\common\\contacts\\xcontact.h”> <Filter>Header Files\..\common\contacts</Filter> </CustomBuild> </ItemGroup>
<ItemGroup> <CustomBuild Include=”..\\common\\contacts\\xcontact.h”> <Filter>Header Files</Filter> </CustomBuild> </ItemGroup>
as you may see <Filter> tag in 5.4 doesn’t contains a full path relative to "Header Files”. I had a look breifly through the source code, but didn’t saw obvious changes which leads to such result. I will be happy to provide you sample of .pro as well as resulted vcproj and filters if you need.
example.zip contains same project generated with 5.3 and 5.4 qmake
Attachments
Issue Links
- relates to
-
QTBUG-44416 non-flat VS projects are broken for shadow builds
- Open
-
QTBUG-45046 qmake generates VS2010 vcxproj files which ignore autogenerated rc-files
- Closed