mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-13 04:55:44 +08:00
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:
committed by
Mathew Sutcliffe
parent
9c9f3e82ae
commit
a3bc5c2936
@@ -11,6 +11,7 @@
|
||||
//! \ingroup sampleblackmiscdbus
|
||||
|
||||
#include "blackmisc/dbusserver.h"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/registermetadata.h"
|
||||
#include "blackmisc/network/networkutils.h"
|
||||
#include "blackmisc/dbusutils.h"
|
||||
@@ -28,6 +29,8 @@
|
||||
#include <Qt>
|
||||
#include <QtDebug>
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
//! main
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -35,6 +38,9 @@ int main(int argc, char *argv[])
|
||||
// is just for testing, I did not split it up
|
||||
|
||||
BlackMisc::registerMetadata();
|
||||
#ifdef Q_OS_MAC
|
||||
QCoreApplication::addLibraryPath(CDirectoryUtils::applicationDirectoryPath());
|
||||
#endif
|
||||
QCoreApplication a(argc, argv);
|
||||
QTextStream out(stdout, QIODevice::WriteOnly);
|
||||
QTextStream qtin(stdin);
|
||||
|
||||
Reference in New Issue
Block a user