diff options
author | Daniel Molkentin <daniel.molkentin@nokia.com> | 2012-09-03 18:24:02 +0200 |
---|---|---|
committer | Daniel Molkentin <daniel.molkentin@nokia.com> | 2012-09-05 16:37:42 +0200 |
commit | c29bf6f6525d435d69936576761b4a29102cd056 (patch) | |
tree | 3458e1bb423c568fcbd7799dcac1876a89047470 /qtcreator.pri | |
parent | d1b65bbf837cfd4f8b655f55633afdcfe1ebe1e8 (diff) | |
download | qt-creator-c29bf6f6525d435d69936576761b4a29102cd056.tar.gz |
Introduce $$QTC_PREFIX instead of abusing $(INSTALL_ROOT).
Reason: $INSTALL_ROOT is only meant to be used by packagers
to temporarily put the contents into a different location,
which is needed for fakeroot packaging.
QTC_PREFIX is not a qmake variable, and defaults to
/usr/local. On Windows the default prefix is "QtCreator",
since "make install" is expected to be used in
a packaging context only where either INSTALL_ROOT
should be used or QTC_PREFIX should be set to the
absolute destination path where e.g. an installer
generator will pick it up.
Change-Id: Ifa4950340e58e34726c53f5417adcc7b50828ce1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'qtcreator.pri')
-rw-r--r-- | qtcreator.pri | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qtcreator.pri b/qtcreator.pri index 9c8dbd5921..1fdd9e4e16 100644 --- a/qtcreator.pri +++ b/qtcreator.pri @@ -3,6 +3,11 @@ QTCREATOR_PRI_INCLUDED = 1 QTCREATOR_VERSION = 2.5.81 +isEmpty(QTC_PREFIX) { + unix: QTC_PREFIX = /usr/local + else: QTC_PREFIX = QtCreator +} + defineReplace(cleanPath) { win32:1 ~= s|\\\\|/|g contains(1, ^/.*):pfx = / |