diff options
Diffstat (limited to 'src/lib/qtprofilesetup/qtenvironment.h')
-rw-r--r-- | src/lib/qtprofilesetup/qtenvironment.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/qtprofilesetup/qtenvironment.h b/src/lib/qtprofilesetup/qtenvironment.h index 4fb5a03ee..72725cfae 100644 --- a/src/lib/qtprofilesetup/qtenvironment.h +++ b/src/lib/qtprofilesetup/qtenvironment.h @@ -48,6 +48,9 @@ namespace qbs { class QBS_EXPORT QtEnvironment { public: + inline bool targetsDesktopWindows() const; + inline bool isForMinGw() const; + QString installPrefixPath; QString libraryPath; QString includePath; @@ -82,6 +85,17 @@ public: bool frameworkBuild = false; }; +bool QtEnvironment::targetsDesktopWindows() const +{ + return mkspecName.startsWith(QLatin1String("win32-")) || isForMinGw(); +} + +bool QtEnvironment::isForMinGw() const +{ + return mkspecName.startsWith(QLatin1String("win32-g++")) + || mkspecName.startsWith(QLatin1String("mingw")); +} + } // namespace qbs #endif // Include guard. |