2012-12-11 21:08:15 +00:00
|
|
|
#
|
|
|
|
# W A R N I N G
|
|
|
|
# -------------
|
|
|
|
#
|
|
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
|
|
# implementation detail. It may change from version to version
|
|
|
|
# without notice, or even be removed.
|
|
|
|
#
|
|
|
|
# We mean it.
|
|
|
|
#
|
|
|
|
|
2012-10-24 12:00:12 +00:00
|
|
|
load(qt_build_paths)
|
|
|
|
|
|
|
|
isEmpty(PLUGIN_TYPE): error("PLUGIN_TYPE (plugins/ subdirectory) needs to be defined.")
|
|
|
|
|
2011-05-27 08:10:36 +00:00
|
|
|
TEMPLATE = lib
|
2012-10-24 12:00:12 +00:00
|
|
|
CONFIG += plugin
|
|
|
|
DESTDIR = $$MODULE_BASE_OUTDIR/plugins/$$PLUGIN_TYPE
|
2011-05-27 08:10:36 +00:00
|
|
|
|
2012-10-24 12:03:47 +00:00
|
|
|
tool_plugin {
|
|
|
|
!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
|
|
|
|
} else:if(win32|mac):!macx-xcode {
|
2012-06-12 11:30:13 +00:00
|
|
|
contains(QT_CONFIG, debug_and_release):CONFIG += debug_and_release
|
|
|
|
contains(QT_CONFIG, build_all):CONFIG += build_all
|
|
|
|
}
|
2011-05-27 08:10:36 +00:00
|
|
|
|
2013-02-15 18:28:28 +00:00
|
|
|
CONFIG(static, static|shared) {
|
2012-12-07 09:46:43 +00:00
|
|
|
isEmpty(MODULE): MODULE = $$basename(TARGET)
|
2012-10-24 13:02:08 +00:00
|
|
|
|
|
|
|
MODULE_PRI = $$MODULE_QMAKE_OUTDIR/mkspecs/modules/qt_plugin_$${MODULE}.pri
|
|
|
|
|
2012-12-14 09:51:28 +00:00
|
|
|
!build_pass {
|
|
|
|
MODULE_PRI_CONT = \
|
|
|
|
"QT_PLUGIN.$${MODULE}.TYPE = $$PLUGIN_TYPE" \
|
|
|
|
"QT_PLUGIN.$${MODULE}.CLASS_NAME = $$PLUGIN_CLASS_NAME"
|
2012-12-10 13:56:29 +00:00
|
|
|
|
2012-12-14 09:51:28 +00:00
|
|
|
write_file($$MODULE_PRI, MODULE_PRI_CONT)|error("Aborting.")
|
|
|
|
}
|
2012-10-24 13:02:08 +00:00
|
|
|
|
|
|
|
pritarget.path = $$[QT_HOST_DATA]/mkspecs/modules
|
|
|
|
pritarget.files = $$MODULE_PRI
|
|
|
|
INSTALLS += pritarget
|
|
|
|
}
|
|
|
|
|
2012-10-24 12:00:12 +00:00
|
|
|
target.path = $$[QT_INSTALL_PLUGINS]/$$PLUGIN_TYPE
|
|
|
|
INSTALLS += target
|
|
|
|
|
|
|
|
TARGET = $$qtLibraryTarget($$TARGET)
|
|
|
|
|
2011-05-27 08:10:36 +00:00
|
|
|
load(qt_targets)
|
2013-01-24 22:54:08 +00:00
|
|
|
load(qt_common)
|
2011-05-27 08:10:36 +00:00
|
|
|
|
|
|
|
wince*:LIBS += $$QMAKE_LIBS_GUI
|
2011-12-23 12:47:15 +00:00
|
|
|
QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
|
2013-01-29 20:51:31 +00:00
|
|
|
|
|
|
|
unix|win32-g++* {
|
|
|
|
!isEmpty(_QMAKE_SUPER_CACHE_): \
|
|
|
|
rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]*
|
|
|
|
else: \
|
|
|
|
rplbase = $$MODULE_QMAKE_OUTDIR
|
|
|
|
lib_replace.match = $$rplbase/lib
|
|
|
|
lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
|
|
|
|
QMAKE_PRL_INSTALL_REPLACE += lib_replace
|
|
|
|
}
|