aboutsummaryrefslogtreecommitdiffstats
path: root/EvalProps.cs
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright comments to 2025Ali Demiralp2025-03-181-4/+2
| | | | | Change-Id: I9ab1f8919a3d28cb546cd71bfdc8da1f6ae9e123 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Rework auto-test framework for Qt/MSBuildMiguel Costa2024-07-231-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Test_QtMsBuild.Build project can be used to test Qt/MSBuild code without the need to start a full debug session. Test methods in this project can invoke MSBuild in-proc, which allows debugging Qt/MSBuild targets and the overall build procedure of VS Qt projects. Example use (in Test_Build.cs): // Evaluate project (i.e. calculate property values and items) // Does not run build var project = MsBuild.Evaluate(temp.ProjectPath, ("Platform", "x64"), ("Configuration", "Debug")); // Prepare evaluated project for build // Returns an object that allows tracking the build progress TestBuild = MsBuild.Prepare(project); // Handle build events // Set a breakpoint in the handler method to break during build MsBuild.Log.EventAdded += OnBuildEvent; // Run build bool buildOk = MsBuild.Run(TestBuild); // Output "pretty-printed" build report to test log Debug.WriteLine(MsBuild.Log.Report()); Change-Id: I6286beb622354fd1397289b6472302f1d988a473 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Change source license to LicenseRef-Qt-Commercial or GPL-3.0-onlyAli Can Demiralp2024-02-281-1/+1
| | | | | | | | ... WITH Qt-GPL-exception. Fixes: QTVSADDINBUG-1179 Change-Id: I74fe451eec352af13436548cfd9a28f832fc0757 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update license year from 2023 to 2024Ali Can Demiralp2024-01-091-1/+1
| | | | | Change-Id: I38700243f7ef55239b247945324e4e0a978b097f Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Make buildtime properties available to any projectMiguel Costa2024-01-091-0/+24
To add this feature to a project, add EvalProps.cs and import EvalProps.targets at the end of the project file. Change-Id: I8302df3859da8519dbc25f248b6996cdf7926085 Reviewed-by: Ali Can Demiralp <ali.demiralp@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>