diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-02-17 11:45:05 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-17 06:12:24 +0100 |
commit | 01a842c2fbfb5a74d61481165cc6d722de7c49ba (patch) | |
tree | be27924422bc00f965ab3244b07256bdc00c50f3 /src/sensors/sensors.pro | |
parent | fbc2e2ca805b97bdbef4a3b6b6a276215ba668df (diff) | |
download | qtsensors-01a842c2fbfb5a74d61481165cc6d722de7c49ba.tar.gz |
Update REGISTER_STATIC_PLUGIN_V2 (compile)
Ideally, this macro would only consist of a Q_EXPORT_PLUGIN /
Q_IMPORT_PLUGIN combination but there is no 'static' version of
Q_EXPORT_PLUGIN available unless we're a static build of Qt.
Thus, this macro duplicates the logic from the correct Q_EXPORT_PLUGIN
macro here.
Use the new code so that we can compile apps that use
REGISTER_STATIC_PLUGIN_V2 (like the unit test).
Using an ifdef so we don't break people who haven't updated qtbase yet.
Refactor the headers so we only have 1 copy of this macro.
Change-Id: Id8c69833029bdd54b66d24dea878b0603b0cb6e9
Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
Diffstat (limited to 'src/sensors/sensors.pro')
-rw-r--r-- | src/sensors/sensors.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sensors/sensors.pro b/src/sensors/sensors.pro index 02d38cf..0f91869 100644 --- a/src/sensors/sensors.pro +++ b/src/sensors/sensors.pro @@ -14,7 +14,8 @@ QT = core core-private DEFINES += QT_BUILD_SENSORS_LIB QT_MAKEDLL load(qt_module_config) -HEADERS += qtsensorsversion.h +HEADERS += qtsensorsversion.h \ + qsensorplugindefs.h symbian { |