mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
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
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
/* Copyright (C) 2015
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
//! \ingroup sampleblackmiscquantities
|
|
|
|
#include "samplesaviation.h"
|
|
#include "samplesgeo.h"
|
|
#include "samplesphysicalquantities.h"
|
|
#include "blackcore/application.h"
|
|
#include "blackmisc/directoryutils.h"
|
|
|
|
#include <stdio.h>
|
|
#include <QCoreApplication>
|
|
#include <QIODevice>
|
|
#include <QTextStream>
|
|
#include <QtGlobal>
|
|
|
|
using namespace BlackMisc;
|
|
using namespace BlackSample;
|
|
using namespace BlackCore;
|
|
|
|
//! main
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#ifdef Q_OS_MAC
|
|
QCoreApplication::addLibraryPath(CDirectoryUtils::applicationDirectoryPath());
|
|
#endif
|
|
QCoreApplication qa(argc, argv);
|
|
CApplication a;
|
|
Q_UNUSED(a);
|
|
Q_UNUSED(qa);
|
|
|
|
QTextStream out(stdout, QIODevice::WriteOnly);
|
|
CSamplesPhysicalQuantities::samples(out);
|
|
CSamplesAviation::samples(out);
|
|
CSamplesGeo::samples(out);
|
|
return 0;
|
|
}
|