I'd expect a suitable project file for the plugin to be more or less something like this:
TEMPLATE = lib
CONFIG += plugin static
TARGET = svgalibscreendriver
# DESTDIR, INCLUDEPATH...
HEADERS = svgalibpaintdevice.h \
svgalibpaintengine.h \
svgalibscreen.h \
svgalibsurface.h
SOURCES = svgalibpaintdevice.cpp \
svgalibpaintengine.cpp \
svgalibplugin.cpp \
svgalibscreen.cpp \
svgalibsurface.cpp
TEMPLATE = lib
CONFIG += plugin static
TARGET = svgalibscreendriver
# DESTDIR, INCLUDEPATH...
HEADERS = svgalibpaintdevice.h \
svgalibpaintengine.h \
svgalibscreen.h \
svgalibsurface.h
SOURCES = svgalibpaintdevice.cpp \
svgalibpaintengine.cpp \
svgalibplugin.cpp \
svgalibscreen.cpp \
svgalibsurface.cpp
To copy to clipboard, switch view to plain text mode
TARGET must match Q_EXPORT_PLUGIN2 and Q_IMPORT_PLUGIN. Did I overlook something?
Bookmarks