Add <swiftInstall>/bin to library lookup paths

Summary:
This change adds <swiftInstall>/bin to the library lookup paths.
Without, QFactoryLoader is not able to find the Qt plugins
on Mac OS since on this platform the hard coded path defaults to
'foo.app/Contents/MacOS' for app bundles.
This change also adds the installation of QtPrintSupport framework which
is a dependency from cocoa platform plugin.

ref T48

Reviewers: kbasan, msutcliffe

Reviewed By: kbasan

Subscribers: jenkins

Maniphest Tasks: T48

Differential Revision: https://dev.swift-project.org/D15
This commit is contained in:
Roland Winklmeier
2017-04-25 13:27:21 +02:00
committed by Mathew Sutcliffe
parent 9c9f3e82ae
commit a3bc5c2936
13 changed files with 55 additions and 2 deletions

View File

@@ -10,16 +10,21 @@
//! \file
//! \ingroup samplehotkey
#include "blackmisc/directoryutils.h"
#include "blackgui/components/settingshotkeycomponent.h"
#include "blackgui/guiapplication.h"
#include <QApplication>
using namespace BlackMisc;
using namespace BlackGui;
//! main
int main(int argc, char *argv[])
{
#ifdef Q_OS_MAC
QApplication::addLibraryPath(CDirectoryUtils::applicationDirectoryPath());
#endif
CGuiApplication::highDpiScreenSupport();
QApplication qa(argc, argv);
CGuiApplication a("samplehotkey", BlackMisc::CApplicationInfo::Sample, QPixmap());