summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/externalplugin.pri
blob: 54da4d957c8bc4944c4ea50097828f474f29cb4d (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
#
# Lighthouse now has preliminarily support for building and
# loading platform plugins from outside the Qt source/build
# tree.
#
# 1) Building external plugins:
#    Set QTDIR to the Qt build directory, copy this file to
#    the plugin source repository and include it at the top
#    of the plugin's pro file. Use QT_SOURCE_TREE if you
#    want to pull in source code from Qt:
#
#    include($$QT_SOURCE_TREE/src/plugins/platforms/fontdatabases/genericunix/genericunix.pri)
#
# 2) Loading external plugins:
#    Specify the path to the directory containing the
#    plugin on the command line, in addition to the
#    platform name.
#
#    ./wiggly -platformPluginPath /path/to/myPlugin -platform gullfaksA
#

!exists($$(QTDIR)/.qmake.cache) {
    error("Please set QTDIR to the Qt build directory")
}

QT_SOURCE_TREE = $$fromfile($$(QTDIR)/.qmake.cache,QT_SOURCE_TREE)
QT_BUILD_TREE = $$fromfile($$(QTDIR)/.qmake.cache,QT_BUILD_TREE)

include($$QT_SOURCE_TREE/src/plugins/qpluginbase.pri)