Merge branch 'master' of ssh://gerrit.automotivelinux.org:29418/AGL/meta-agl-demo...
[AGL/meta-agl-demo.git] / recipes-automotive / climatecontrolplugin / files / climatecontrol.pro
diff --git a/recipes-automotive/climatecontrolplugin/files/climatecontrol.pro b/recipes-automotive/climatecontrolplugin/files/climatecontrol.pro
new file mode 100644 (file)
index 0000000..d3817c1
--- /dev/null
@@ -0,0 +1,36 @@
+TEMPLATE = lib
+TARGET = ClimateControl
+QT += qml quick dbus
+CONFIG += qt plugin c++11
+CONFIG(release):DEFINES += QT_NO_DEBUG_OUTPUT
+
+TARGET = $$qtLibraryTarget($$TARGET)
+uri = Automotive.ClimateControl
+
+# Input
+SOURCES += \
+    climatecontrol_plugin.cpp \
+    climatecontrol.cpp
+
+HEADERS += \
+    climatecontrol_plugin.h \
+    climatecontrol.h
+
+DISTFILES = qmldir \
+    climatecontroltest.qml
+
+!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
+    copy_qmldir.target = $$OUT_PWD/qmldir
+    copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
+    copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
+    QMAKE_EXTRA_TARGETS += copy_qmldir
+    PRE_TARGETDEPS += $$copy_qmldir.target
+}
+
+qmldir.files = qmldir
+unix {
+    installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
+    qmldir.path = $$installPath
+    target.path = $$installPath
+    INSTALLS += target qmldir
+}