From 762181dff011efbaf3d40edb1b3d573c5aceab01 Mon Sep 17 00:00:00 2001 From: Matthew Vick Date: Thu, 17 Dec 2015 13:37:25 -0800 Subject: Add a QML plugin to expose AMB's ClimateControl objects. To expose the AMB ClimateControl objects to the application layer, add a QML plugin so the application developers can natively configure the vehicle's climate controls based on user input. Because the potential compatibility issue between AMB and Qt being discussed on the AGL mailing list has not yet been resolved, this commit also adds a helper program that the climate control plugin will use as a workaround to access AMB that may be removed in the future. To include support for this plugin, it is necessary for users to add "climatecontrolplugin" to their conf/local.conf when building the image. Change-Id: I6117f0a13e4195e460e3b552befb6e326cdf0f6a Signed-off-by: Matthew Vick --- .../climatecontrolplugin/files/climatecontrol.pro | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes-automotive/climatecontrolplugin/files/climatecontrol.pro (limited to '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 index 00000000..d3817c19 --- /dev/null +++ b/recipes-automotive/climatecontrolplugin/files/climatecontrol.pro @@ -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 +} -- cgit 1.2.3-korg