forked from qt-creator/qt-creator
don't use HostOsInfo class in shared/proparser
this class cannot be used in code which is shared outside creator. Change-Id: I0f4a6c1599bdf21fab532c974acf8ccd82ad318e Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -33,8 +33,6 @@
|
||||
#include "qmakeglobals.h"
|
||||
#include "ioutils.h"
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
|
||||
#include <QDir>
|
||||
|
||||
using namespace ProFileEvaluatorInternal;
|
||||
@@ -95,8 +93,11 @@ QStringList ProFileEvaluator::values(const QString &variableName, const ProFile
|
||||
|
||||
QString ProFileEvaluator::sysrootify(const QString &path, const QString &baseDir) const
|
||||
{
|
||||
const Qt::CaseSensitivity cs = Utils::HostOsInfo::isWindowsHost()
|
||||
? Qt::CaseInsensitive : Qt::CaseSensitive;
|
||||
#ifdef Q_OS_WIN
|
||||
Qt::CaseSensitivity cs = Qt::CaseInsensitive;
|
||||
#else
|
||||
Qt::CaseSensitivity cs = Qt::CaseSensitive;
|
||||
#endif
|
||||
const bool isHostSystemPath =
|
||||
d->m_option->sysroot.isEmpty() || path.startsWith(d->m_option->sysroot, cs)
|
||||
|| path.startsWith(baseDir, cs) || path.startsWith(d->m_outputDir, cs);
|
||||
|
Reference in New Issue
Block a user