aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Core/QMakeQuery.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>
* Adapt QMakeQuery to use the QtBuildToolQuery base classKarsten Heimrich2024-07-261-72/+11
| | | | | | | | | | | | | * QMakeQuery uses the common query code of its base class * Adapt QMakeConf to accept a query tool to fetch properties * Adapt Versioninformation to accept a query tool to fetch properties The behavior of querying properties now first tries qtpaths if available and if its version is >= 2, fallbacks to qmake if not. Fixes: QTVSADDINBUG-1080 Change-Id: Ia63d0022b39c3c862478ccdcf6379f4546971465 Reviewed-by: Miguel Costa <miguel.costa@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>
* Improve readability of qmake log outputMiguel Costa2023-05-101-2/+2
| | | | | | | | | | | | Made changes to the output of qmake and related processes that is printed to the output window, in order to make the information more readable. In particular, when running multiple instances of qmake in parallel processes (e.g. at startup, while loading information about Qt version), output messages will now consistenly identify the process ID that generated the original output. Change-Id: Ib3b182740192653dac32110d065d3b2d52e8e365 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Convert 'if-return' into 'return' statementKarsten Heimrich2023-04-201-6/+1
| | | | | Change-Id: Iba7b4d9afaf812c16e305c26f2b1870e974ee389 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Use compound assignmentKarsten Heimrich2023-03-151-1/+1
| | | | | Change-Id: Iab854d1d74156d131dde45b7dd2f57367649a98b Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Replace license headerMiguel Costa2023-02-231-27/+4
| | | | | Change-Id: I6e7667d0f6f1245b5b225e74120d289bf595423d Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Rework QMake, QMakeQuery and QMakeImportKarsten Heimrich2022-11-211-18/+29
| | | | | | | | | | | | | | | | | | QMake: * Implement qmake support using composition. * Remove Qt version information since qmake should be able to run with just a path given. QMakeImport: * Split out QMakeImport into separate class. * Reimplement Run() since this uses a special case for setting VC vars for qmake startup info. VersionInformation: * Reuse the already existing qmake query. Change-Id: I7c406b0b279979cac3e3ae3c9a52f7c45afb875f Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Simplify some LINQ code, adjust some warningsKarsten Heimrich2022-11-211-1/+1
| | | | | | | | | * Remove redundant parameter type specification * Simplify some LINQ calls and use method groups * Fix multiple enumeration runs and store as List Change-Id: Id752efa0b3994928f4d0a17551d24a7d25834957 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Modernization: Update propertiesKarsten Heimrich2022-10-041-7/+1
| | | | | | | | | * Use expression body. * Use expression-bodied properties. * Convert to auto-property if applicable. Change-Id: I2342f1194aca941e2a7ca70186422bd7835f8eed Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Apply uniform guidelines to 'using' directivesMiguel Costa2022-02-221-2/+1
| | | | | Change-Id: If92cf095e20c4bc8b9bc9fe04a40233a2c602973 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Remove some more ThreadHelper.ThrowIfNotOnUIThread()Karsten Heimrich2022-02-221-6/+0
| | | | | | | | | | | Also: * Moved remaining ThrowIfNotOnUIThread to the top of functions * Added 'using Microsoft.VisualStudio.Shell;' and removed full namespace prefix from calls to ThrowIfNotOnUIThread * Minor adjustments (white-space, commented/forgotten debug call, etc.) Change-Id: Id76d809d267c250580d5cc1c774f857c7bf612ab Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Avoid potential deadlocksMiguel Costa2022-02-181-4/+3
| | | | | | | | | | | | Multi-threaded access to objects bound to the UI thread can potentially lead to deadlocks. All functions that participate in a call chain resulting in the use of objects bound to the UI thread will now call ThreadHelper.ThrowIfNotOnUIThread(). Where applicable, multi-threaded functions have been rewritten to ensure that UI-bound objects are only accessed from the UI thread. Change-Id: I555bd93c44ae568a9202ca6624b043994d18510a Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Inline variable declarationKarsten Heimrich2022-02-101-4/+2
| | | | | Change-Id: I19a55a53173da4e6e5aeea5f40790b1dea6346ec Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix warning: Add ThreadHelper.ThrowIfNotOnUIThread();Karsten Heimrich2022-02-091-1/+15
| | | | | Change-Id: I8e7cc3a16eb5b303823ea5b1c85e04f5ce85947b Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix using directive is not requiredKarsten Heimrich2022-01-281-3/+0
| | | | | Change-Id: I8c0766b66b49206339d048f28d02caf9c10f7fb0 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix local variable is never usedKarsten Heimrich2022-01-281-1/+0
| | | | | Change-Id: Ief355368fed193e437ee4881dbb1373e21f62a95 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* refactoring: Reorganize project filesMiguel Costa2021-11-161-0/+122
- Moved project files from the 'src' folder into the root 'vstools'. - Renamed some projects: * QtVsTools -> QtVsTools.Package * qtwizard -> QtVsTools.Wizards * Project template projects -> QtTemplate.Project.* * Item template projects -> QtTemplate.Item.* - Moved QtVsTools.Package source files to a sub-folder named 'Package'. NOTE: this change breaks the build; it should only be applied together with subsequent refactoring changes. Change-Id: Ib7b70c350d8e9f068a023b0250d6b490b17d1687 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>