True, but I'm using a static name as TARGET in my pro file. Even if I would use the dynamic version (as plugandpaint does)...
contains(TEMPLATE,lib) {
CONFIG(debug, debug|release) {
mac:TARGET = $$member(TARGET, 0)_debug
win32:TARGET = $$member(TARGET, 0)d
}
}
contains(TEMPLATE,lib) {
CONFIG(debug, debug|release) {
mac:TARGET = $$member(TARGET, 0)_debug
win32:TARGET = $$member(TARGET, 0)d
}
}
To copy to clipboard, switch view to plain text mode
... it would only be relevant for Windoze and Mac OS, right?
As I'm using this .pro file...
TEMPLATE = lib
CONFIG += plugin debug
HEADERS += plugin.h
SOURCES += plugin.cpp
DESTDIR = ../bin/plugins
TARGET = plugin
TEMPLATE = lib
CONFIG += plugin debug
HEADERS += plugin.h
SOURCES += plugin.cpp
DESTDIR = ../bin/plugins
TARGET = plugin
To copy to clipboard, switch view to plain text mode
... my usage of Q_EXPORT_PLUGIN2(plugin, Plugin) should be correct I think.
para
Bookmarks