From 19e3441b7c6dfb25e3dd8c019b681922404a7aae Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 21 Aug 2012 14:36:20 +0200 Subject: remove QMAKE_MKSPECS property from qmake -query's view it's a dynamic property which is something between meaningless and misleading when used outside a project file. also, experience from creator shows that people would consistently abuse it (not handling it as the list it is). Change-Id: Id52cd40da5c38c0c74535d0701fdae53dfa39cad Reviewed-by: Joerg Bornemann --- qmake/property.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'qmake/property.cpp') diff --git a/qmake/property.cpp b/qmake/property.cpp index 171a085796..99bfbfc594 100644 --- a/qmake/property.cpp +++ b/qmake/property.cpp @@ -49,8 +49,6 @@ QT_BEGIN_NAMESPACE -QStringList qmake_mkspec_paths(); //project.cpp - static const struct { const char *name; QLibraryInfo::LibraryLocation loc; @@ -109,8 +107,6 @@ QMakeProperty::value(const QString &v) QString val = m_values.value(v); if (!val.isNull()) return val; - else if(v == "QMAKE_MKSPECS") - return qmake_mkspec_paths().join(Option::dirlist_sep); else if(v == "QMAKE_VERSION") return qmake_version(); #ifdef QT_VERSION_STR @@ -165,7 +161,6 @@ QMakeProperty::exec() QStringList specialProps; for (int i = 0; i < sizeof(propList)/sizeof(propList[0]); i++) specialProps.append(QString::fromLatin1(propList[i].name)); - specialProps.append("QMAKE_MKSPECS"); specialProps.append("QMAKE_VERSION"); #ifdef QT_VERSION_STR specialProps.append("QT_VERSION"); -- cgit v1.2.3