summaryrefslogtreecommitdiffstats
path: root/qmake/option.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2011-02-14 15:57:01 +0100
committerJoerg Bornemann <joerg.bornemann@nokia.com>2011-03-15 15:56:03 +0100
commitc35f610219b1d09f6d05215a2e2fe4f2f6bd966c (patch)
tree6301609af836a44a2d1489041a0479ee9dc3e75a /qmake/option.h
parentc0cd8db0498daaa8151d1f80143b6849016bdc7c (diff)
qmake vcproj generator: support PCHs with other extensions than .h
Task-number: QTBUG-16639 Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'qmake/option.h')
-rw-r--r--qmake/option.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/qmake/option.h b/qmake/option.h
index e3ddc9a975..bc873438e1 100644
--- a/qmake/option.h
+++ b/qmake/option.h
@@ -139,6 +139,14 @@ struct Option
return fixString(in, flags);
}
+ inline static bool hasFileExtension(const QString &str, const QStringList &extensions)
+ {
+ foreach (const QString &ext, extensions)
+ if (str.endsWith(ext))
+ return true;
+ return false;
+ }
+
//global qmake mode, can only be in one mode per invocation!
enum QMAKE_MODE { QMAKE_GENERATE_NOTHING, QMAKE_GENERATE_PROJECT, QMAKE_GENERATE_MAKEFILE,
QMAKE_GENERATE_PRL, QMAKE_SET_PROPERTY, QMAKE_QUERY_PROPERTY };
@@ -195,7 +203,6 @@ private:
inline QString fixEnvVariables(const QString &x) { return Option::fixString(x, Option::FixEnvVars); }
inline QStringList splitPathList(const QString &paths) { return paths.split(Option::dirlist_sep); }
-
// this is a stripped down version of the one found in QtCore
class QLibraryInfo
{