| | |
| | | **
|
| | | ****************************************************************************/
|
| | |
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Diagnostics;
|
| | | using System.IO;
|
| | | using System.Linq;
|
| | | using System.Text;
|
| | | using System.Threading;
|
| | | using QtVsTools.SyntaxAnalysis;
|
| | | using Microsoft.VisualStudio.Shell;
|
| | |
|
| | | namespace QtVsTools.Core
|
| | | {
|
| | | using static RegExpr;
|
| | | using static SyntaxAnalysis.RegExpr;
|
| | |
|
| | | public class QMakeQuery : QMake
|
| | | {
|
| | |
| | |
|
| | | public Dictionary<string, string> QueryAllValues()
|
| | | {
|
| | | string result = string.Empty;
|
| | | stdOutput = new StringBuilder();
|
| | | Query = " ";
|
| | |
|
| | |
| | | {
|
| | | get
|
| | | {
|
| | | string value = string.Empty;
|
| | | if (Properties.TryGetValue(name, out value))
|
| | | if (Properties.TryGetValue(name, out string value))
|
| | | return value;
|
| | | else
|
| | | return null;
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | Dictionary<string, string> _Properties;
|
| | | Dictionary<string, string> Properties => _Properties ?? (_Properties = QueryAllValues());
|
| | | Dictionary<string, string> Properties
|
| | | {
|
| | | get
|
| | | {
|
| | | return _Properties ?? (_Properties = QueryAllValues());
|
| | | }
|
| | | }
|
| | |
|
| | | Parser _PropertyParser;
|
| | | Parser PropertyParser
|