diff options
author | Miguel Costa <miguel.costa@qt.io> | 2020-12-16 20:12:22 +0100 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2020-12-18 14:16:24 +0000 |
commit | 74b8c8a779e8c2cc0d609e4f30c9cc4470c318bf (patch) | |
tree | 7f43018c527fb01c5d790afccf769486720f4deb /src/qtmsbuild/rcc/qtrcc.targets | |
parent | 77bf21b143bfe283b1c86afc263176cc5a337058 (diff) |
Remove dependency of _SelectedFiles targetv2.7.0
The VC target _SelectedFiles is no longer a dependency of Qt tools'
targets. The required information is already given by the
$(SelectedFiles) property, so there is no need to invoke the target.
Also, in the latest version of VS 2019 (16.8), this dependency was
causing the incremental build to fail, as well as generating other
intermittent build errors.
Task-number: QTVSADDINBUG-841
Change-Id: Iceb3a3db65315a8c8c4721597338b710b74a8fdf
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/qtmsbuild/rcc/qtrcc.targets')
-rw-r--r-- | src/qtmsbuild/rcc/qtrcc.targets | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/qtmsbuild/rcc/qtrcc.targets b/src/qtmsbuild/rcc/qtrcc.targets index 89ee0a81..2d1c8d8f 100644 --- a/src/qtmsbuild/rcc/qtrcc.targets +++ b/src/qtmsbuild/rcc/qtrcc.targets @@ -103,8 +103,11 @@ ///////////////////////////////////////////////////////////////////////////////////////////////// // Add resource files as dependencies of the QRC file // --> - <Target Name="QtRccSetDependencies" DependsOnTargets="_SelectedFiles;QtRccInit" + <Target Name="QtRccSetDependencies" DependsOnTargets="QtRccInit" Inputs="%(QtRcc.Identity)" Outputs="@(QtRcc->'####### Don't skip this target #######')"> + <ItemGroup> + <selected_files Include="$(SelectedFiles)"/> + </ItemGroup> <!--// Parse QRC --> <ListQrc QrcFilePath="%(QtRcc.FullPath)"> @@ -137,14 +140,14 @@ ///////////////////////////////////////////////////////////////////////////////////////////////// // Prepare items for processing // --> - <Target Name="QtRccPrepare" DependsOnTargets="_SelectedFiles;QtRccSetDependencies" + <Target Name="QtRccPrepare" DependsOnTargets="QtRccSetDependencies" Inputs="%(QtRcc.Identity)" Outputs="@(QtRcc->'####### Don't skip this target #######')"> <Message Importance="High" Condition="'$(QtDebug)' == 'true'" Text="## QtRccPrepare @(QtRcc)"/> <PropertyGroup> - <selected_files>[@(SelectedFiles->'%(Identity)','][')]</selected_files> + <selected_files>[@(selected_files->'%(Identity)','][')]</selected_files> <file>[@(QtRcc->'%(Identity)')]</file> <output_file>@(QtRcc->'%(OutputFile)')</output_file> <is_selected Condition="$(selected_files.Contains('$(file)'))">true</is_selected> @@ -157,7 +160,7 @@ Condition="'$(SelectedFiles)' != '' AND '$(is_selected)' == 'true'" /> <!--// If a source was manually selected to build, remove all other sources --> - <ItemGroup Condition="'@(SelectedFiles)' != ''"> + <ItemGroup Condition="'@(selected_files)' != ''"> <QtRcc Remove="@(QtRcc)" Condition="'$(SelectedFiles)' != '' AND '$(is_selected)' != 'true'" /> </ItemGroup> @@ -526,6 +529,7 @@ <ItemGroup> <LocalOptions Remove="@(LocalOptions)"/> <options Remove="@(options)"/> + <selected_files Remove="@(selected_files)"/> </ItemGroup> </Target> |