Commit 4d173d5f authored by Liang Qi's avatar Liang Qi Committed by The Qt Project
Browse files

Tools: unnecessary to make qmlplugindump a bundle


Embed Info.plist in qmlplugindump executable in a special way.

Change-Id: I7eb73d0f832ab53d352c1fd2275f77e853269c2c
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 3c9dd93a
No related merge requests found
Showing with 8 additions and 12 deletions
...@@ -68,9 +68,7 @@ void tst_qmlplugindump::initTestCase() ...@@ -68,9 +68,7 @@ void tst_qmlplugindump::initTestCase()
{ {
qmlplugindumpPath = QLibraryInfo::location(QLibraryInfo::BinariesPath); qmlplugindumpPath = QLibraryInfo::location(QLibraryInfo::BinariesPath);
#if defined(Q_OS_MAC) #if defined(Q_OS_WIN)
qmlplugindumpPath += QLatin1String("/qmlplugindump.app/Contents/MacOS/qmlplugindump");
#elif defined(Q_OS_WIN)
qmlplugindumpPath += QLatin1String("/qmlplugindump.exe"); qmlplugindumpPath += QLatin1String("/qmlplugindump.exe");
#else #else
qmlplugindumpPath += QLatin1String("/qmlplugindump"); qmlplugindumpPath += QLatin1String("/qmlplugindump");
......
QT += qml qml-private quick-private core-private QT += qml qml-private quick-private core-private
#
# qmlplugindump is an applicaton bundle on the mac
# so that we can include an Info.plist, which is needed
# to surpress qmlplugindump popping up in the dock
# when launched.
#
CONFIG += qpa_minimal_plugin CONFIG += qpa_minimal_plugin
SOURCES += \ SOURCES += \
...@@ -16,7 +9,12 @@ SOURCES += \ ...@@ -16,7 +9,12 @@ SOURCES += \
HEADERS += \ HEADERS += \
qmlstreamwriter.h qmlstreamwriter.h
OTHER_FILES += Info.plist mac {
macx: QMAKE_INFO_PLIST = Info.plist # Prevent qmlplugindump from popping up in the dock when launched.
# We embed the Info.plist file, so the application doesn't need to
# be a bundle.
QMAKE_LFLAGS += -sectcreate __TEXT __info_plist $$shell_quote($$PWD/Info.plist)
CONFIG -= app_bundle
}
load(qt_tool) load(qt_tool)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment