d3817c19686d1d37a07da5f558c3bed872acbee5
[AGL/meta-agl-demo.git] / recipes-automotive / climatecontrolplugin / files / climatecontrol.pro
1 TEMPLATE = lib
2 TARGET = ClimateControl
3 QT += qml quick dbus
4 CONFIG += qt plugin c++11
5 CONFIG(release):DEFINES += QT_NO_DEBUG_OUTPUT
6
7 TARGET = $$qtLibraryTarget($$TARGET)
8 uri = Automotive.ClimateControl
9
10 # Input
11 SOURCES += \
12     climatecontrol_plugin.cpp \
13     climatecontrol.cpp
14
15 HEADERS += \
16     climatecontrol_plugin.h \
17     climatecontrol.h
18
19 DISTFILES = qmldir \
20     climatecontroltest.qml
21
22 !equals(_PRO_FILE_PWD_, $$OUT_PWD) {
23     copy_qmldir.target = $$OUT_PWD/qmldir
24     copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
25     copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
26     QMAKE_EXTRA_TARGETS += copy_qmldir
27     PRE_TARGETDEPS += $$copy_qmldir.target
28 }
29
30 qmldir.files = qmldir
31 unix {
32     installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
33     qmldir.path = $$installPath
34     target.path = $$installPath
35     INSTALLS += target qmldir
36 }