@@ -15,13 +15,22 @@
1515 *
1616 */
1717
18−#ifndef FULL_LIGHTDM_PLUGIN_H
19−#define FULL_LIGHTDM_PLUGIN_H
18+#ifndef LIGHTDM_PLUGIN_H
19+#define LIGHTDM_PLUGIN_H
2020
2121#include <QtQml/QQmlEngine>
2222#include <QtQml/QQmlExtensionPlugin>
2323
24−class FullLightDMPlugin : public QQmlExtensionPlugin
24+#if defined INTEGRATED_LIGHTDM
25+ #define PLUGIN_CLASSNAME FullLightDMPlugin
26+#elif defined FULL_LIGHTDM
27+ #define PLUGIN_CLASSNAME IntegratedLightDMPlugin
28+#else
29+ #error No library defined in LightDM plugin
30+#endif
31+
32+
33+class PLUGIN_CLASSNAME : public QQmlExtensionPlugin
2534{
2635 Q_OBJECT
2736 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
@@ -30,4 +39,4 @@ public:
3039 void registerTypes(const char *uri) override;
3140};
3241
33−#endif /* FULL_LIGHTDM_PLUGIN_H */
42+#endif /* LIGHTDM_PLUGIN_H */