forked from qt-creator/qt-creator
Commit things that went missing from 2a4a56b2be
Change-Id: I16f0d8880003156722cd80fdc51b0f8f21a5bfae Reviewed-on: http://codereview.qt-project.org/6120 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -27,9 +27,9 @@ isEmpty(IDE_BUILD_TREE):IDE_BUILD_TREE=%QtCreatorBuild%
|
|||||||
## uncomment to build plugin into user config directory
|
## uncomment to build plugin into user config directory
|
||||||
## <localappdata>/plugins/<ideversion>
|
## <localappdata>/plugins/<ideversion>
|
||||||
## where <localappdata> is e.g.
|
## where <localappdata> is e.g.
|
||||||
## <drive>:\Users\<username>\AppData\Local\Nokia\QtCreator on Windows Vista and later
|
## "%LOCALAPPDATA%\Nokia\qtcreator" on Windows Vista and later
|
||||||
## $XDG_DATA_HOME/Nokia/QtCreator or ~/.local/share/Nokia/QtCreator on Linux
|
## "$XDG_DATA_HOME/Nokia/qtcreator" or "~/.local/share/Nokia/qtcreator" on Linux
|
||||||
## ~/Library/Application Support/Nokia/QtCreator on Mac
|
## "~/Library/Application Support/Nokia/Qt Creator" on Mac
|
||||||
%DestDir%USE_USER_DESTDIR = yes
|
%DestDir%USE_USER_DESTDIR = yes
|
||||||
|
|
||||||
PROVIDER = %VendorName%
|
PROVIDER = %VendorName%
|
||||||
|
|||||||
@@ -167,27 +167,27 @@ static inline QStringList getPluginPaths(QSettings *settings)
|
|||||||
QString pluginPath = rootDirPath;
|
QString pluginPath = rootDirPath;
|
||||||
pluginPath += QLatin1Char('/');
|
pluginPath += QLatin1Char('/');
|
||||||
pluginPath += QLatin1String(IDE_LIBRARY_BASENAME);
|
pluginPath += QLatin1String(IDE_LIBRARY_BASENAME);
|
||||||
pluginPath += QLatin1Char('/');
|
pluginPath += QLatin1String("/qtcreator/plugins");
|
||||||
pluginPath += QLatin1String("qtcreator");
|
|
||||||
pluginPath += QLatin1Char('/');
|
|
||||||
pluginPath += QLatin1String("plugins");
|
|
||||||
rc.push_back(pluginPath);
|
rc.push_back(pluginPath);
|
||||||
#else
|
#else
|
||||||
// 2) "PlugIns" (OS X)
|
// 2) "PlugIns" (OS X)
|
||||||
QString pluginPath = rootDirPath;
|
QString pluginPath = rootDirPath;
|
||||||
pluginPath += QLatin1Char('/');
|
pluginPath += QLatin1String("/PlugIns");
|
||||||
pluginPath += QLatin1String("PlugIns");
|
|
||||||
rc.push_back(pluginPath);
|
rc.push_back(pluginPath);
|
||||||
#endif
|
#endif
|
||||||
// 3) <localappdata>/plugins/<ideversion>
|
// 3) <localappdata>/plugins/<ideversion>
|
||||||
// where <localappdata> is e.g.
|
// where <localappdata> is e.g.
|
||||||
// <drive>:\Users\<username>\AppData\Local\Nokia\QtCreator on Windows Vista and later
|
// <drive>:\Users\<username>\AppData\Local\Nokia\qtcreator on Windows Vista and later
|
||||||
// $XDG_DATA_HOME or ~/.local/share/Nokia/QtCreator on Linux
|
// $XDG_DATA_HOME or ~/.local/share/Nokia/qtcreator on Linux
|
||||||
// ~/Library/Application Support/Nokia/Qt Creator on Mac
|
// ~/Library/Application Support/Nokia/Qt Creator on Mac
|
||||||
pluginPath = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
|
pluginPath = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
|
||||||
pluginPath += QLatin1Char('/');
|
pluginPath += QLatin1String("/Nokia/");
|
||||||
pluginPath += QLatin1String("plugins");
|
#if !defined(Q_OS_MAC)
|
||||||
pluginPath += QLatin1Char('/');
|
pluginPath += QLatin1String("qtcreator");
|
||||||
|
#else
|
||||||
|
pluginPath += QLatin1String("Qt Creator");
|
||||||
|
#endif
|
||||||
|
pluginPath += QLatin1String("/plugins/");
|
||||||
pluginPath += QLatin1String(Core::Constants::IDE_VERSION_LONG);
|
pluginPath += QLatin1String(Core::Constants::IDE_VERSION_LONG);
|
||||||
rc.push_back(pluginPath);
|
rc.push_back(pluginPath);
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
@@ -10,13 +10,19 @@ isEmpty(PROVIDER) {
|
|||||||
isEmpty(USE_USER_DESTDIR) {
|
isEmpty(USE_USER_DESTDIR) {
|
||||||
DESTDIR = $$IDE_PLUGIN_PATH/$$PROVIDER
|
DESTDIR = $$IDE_PLUGIN_PATH/$$PROVIDER
|
||||||
} else {
|
} else {
|
||||||
win32:DESTDIRBASE = "$$(LOCALAPPDATA)"
|
win32 {
|
||||||
else:macx: DESTDIRBASE = "$$(HOME)/Library/Application Support"
|
DESTDIRAPPNAME = "qtcreator"
|
||||||
else:unix {
|
DESTDIRBASE = "$$(LOCALAPPDATA)"
|
||||||
|
isEmpty(DESTDIRBASE):DESTDIRBASE="$$(USERPROFILE)\Local Settings\Application Data"
|
||||||
|
} else:macx {
|
||||||
|
DESTDIRAPPNAME = "Qt Creator"
|
||||||
|
DESTDIRBASE = "$$(HOME)/Library/Application Support"
|
||||||
|
} else:unix {
|
||||||
|
DESTDIRAPPNAME = "qtcreator"
|
||||||
DESTDIRBASE = "$$(XDG_DATA_HOME)"
|
DESTDIRBASE = "$$(XDG_DATA_HOME)"
|
||||||
isEmpty(DESTDIRBASE):DESTDIRBASE = "$$(HOME)/.local/share"
|
isEmpty(DESTDIRBASE):DESTDIRBASE = "$$(HOME)/.local/share"
|
||||||
}
|
}
|
||||||
DESTDIR = "$$DESTDIRBASE/Nokia/QtCreator/plugins/$$QTCREATOR_VERSION/$$PROVIDER"
|
DESTDIR = "$$DESTDIRBASE/Nokia/$$DESTDIRAPPNAME/plugins/$$QTCREATOR_VERSION/$$PROVIDER"
|
||||||
}
|
}
|
||||||
LIBS += -L$$DESTDIR
|
LIBS += -L$$DESTDIR
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user