summaryrefslogtreecommitdiffstats
path: root/recipes-platform/images/agl-demo-platform.inc
blob: 203fcc0772d3e384db19c7f0adae3e994224145c (plain)
1
2
3
# Base image
require recipes-platform/images/agl-image-ivi.inc
iable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
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
}