aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlplugindump/qmlplugindump.pro
blob: 2e6e793157d8c490a43dedc0e06d1d9231bbfb1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
QT += qml qml-private quick-private core-private
qtHaveModule(widgets): QT += widgets

CONFIG += no_import_scan

QTPLUGIN.platforms = qminimal

# We cannot use libQmlCompiler as that is built for the host
# and qmlplugindump needs to be built for the target.

INCLUDEPATH += $$PWD/../../src/qmlcompiler

SOURCES += \
    ../../src/qmlcompiler/qqmljsstreamwriter.cpp \
    main.cpp \
    qmltypereader.cpp

HEADERS += \
    ../../src/qmlcompiler/qqmljsstreamwriter_p.h \
    qmltypereader.h

macx {
    # 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 += -Wl,-sectcreate,__TEXT,__info_plist,$$shell_quote($$PWD/Info.plist)
    CONFIG -= app_bundle
}

QMAKE_TARGET_DESCRIPTION = QML Plugin Metadata Dumper

load(qt_tool)