diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2022-07-21 10:06:31 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2022-07-26 10:48:13 +0000 |
commit | f3c62bd79209d98a240adf1aa5cbb6c465067e37 (patch) | |
tree | adc70a3e8e4067113d6d8766affea54dc35a0c2a | |
parent | ccbe6dcd778c6915ac751ce6de6d4aa4e8a0deca (diff) |
Add support for shadow builds of Qt
Change-Id: I4bd5611b8866662bdb745eef8c6af971d18e8495
Reviewed-by: Miguel Costa <miguel.costa@qt.io>
-rw-r--r-- | QtVsTools.Core/QMakeConf.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/QtVsTools.Core/QMakeConf.cs b/QtVsTools.Core/QMakeConf.cs index 2488ff1c..7f49c768 100644 --- a/QtVsTools.Core/QMakeConf.cs +++ b/QtVsTools.Core/QMakeConf.cs @@ -65,6 +65,17 @@ namespace QtVsTools.Core qmakeConf = Path.Combine(qtPrefix, qtArchData, "mkspecs", qmakeXSpec, "qmake.conf"); + if (!File.Exists(qmakeConf)) { + // Check if this is a shadow build of Qt. + qtPrefix = qmakeQuery["QT_INSTALL_PREFIX/src"]; + if (string.IsNullOrEmpty(qtPrefix)) + throw new QtVSException("qmake error: no value for QT_INSTALL_PREFIX/src"); + qtArchData = qmakeQuery["QT_INSTALL_ARCHDATA/src"]; + if (string.IsNullOrEmpty(qtArchData)) + throw new QtVSException("qmake error: no value for QT_INSTALL_ARCHDATA/src"); + + qmakeConf = Path.Combine(qtPrefix, qtArchData, "mkspecs", qmakeXSpec, "qmake.conf"); + } if (!File.Exists(qmakeConf)) throw new QtVSException("qmake.conf expected at " + qmakeConf + " not found"); } |