From 862f19eaebe5a7653d4ae9462d8172b2f91ad4bb Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Thu, 10 Apr 2025 14:16:46 +0100 Subject: [PATCH] MSBuild: Adjust how MSBuild handles Qt ui files --- common/vsprops/QtCompile.props | 38 ++++++++++++++++++++++---------- common/vsprops/QtCompile.targets | 2 +- common/vsprops/QtCompile.xml | 8 +++---- 3 files changed, 31 insertions(+), 17 deletions(-) diff --git a/common/vsprops/QtCompile.props b/common/vsprops/QtCompile.props index 68ce622232..1eb8c53295 100644 --- a/common/vsprops/QtCompile.props +++ b/common/vsprops/QtCompile.props @@ -59,23 +59,37 @@ - - - - + + + - + Condition="'@(QtUi)'!=''"> - - + + + + uic %(Filename) + + "$(QtHostBinDir)uic.exe" "%(FullPath)" -o "$(QtToolOutDir)ui_%(Filename).h" + + $(QtToolOutDir)ui_%(Filename).h + + - - + + + + + + + diff --git a/common/vsprops/QtCompile.targets b/common/vsprops/QtCompile.targets index 75ac29f304..ec70459f96 100644 --- a/common/vsprops/QtCompile.targets +++ b/common/vsprops/QtCompile.targets @@ -1,7 +1,7 @@ - QtResourceClean;QtUiClean;QtMocClean;QtTsClean;$(CleanDependsOn) + QtResourceClean;QtMocClean;QtTsClean;$(CleanDependsOn)