diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-09-11 15:37:51 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-09-11 17:27:40 +0200 |
commit | 6706df97ac176738b59f66f55f164854f9e66855 (patch) | |
tree | 6e715cebdaf4c6e5ffb4434d0a9e3ecf4a567b77 /src/qtcreatorplugin.pri | |
parent | d472a6638b3392f4e10d1833f6c625fd2038d951 (diff) | |
download | qt-creator-6706df97ac176738b59f66f55f164854f9e66855.tar.gz |
use new qmake functions under qt5
waaaay faster than the hand-crafted ones
Change-Id: Ia4f60207b26a01752ca1eeddf1d8a76381cd1710
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/qtcreatorplugin.pri')
-rw-r--r-- | src/qtcreatorplugin.pri | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qtcreatorplugin.pri b/src/qtcreatorplugin.pri index ea0360753b..1c1d6b8558 100644 --- a/src/qtcreatorplugin.pri +++ b/src/qtcreatorplugin.pri @@ -33,11 +33,21 @@ isEmpty(TARGET) { error("qtcreatorplugin.pri: You must provide a TARGET") } +isEqual(QT_MAJOR_VERSION, 5) { + +defineReplace(stripOutDir) { + return($$relative_path($$1, $$OUT_PWD)) +} + +} else { # qt5 + defineReplace(stripOutDir) { 1 ~= s|^$$re_escape($$OUT_PWD/)||$$i_flag return($$1) } +} # qt5 + PLUGINSPEC = $$_PRO_FILE_PWD_/$${TARGET}.pluginspec PLUGINSPEC_IN = $${PLUGINSPEC}.in exists($$PLUGINSPEC_IN) { |