This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-experience-airco/nymea-experience-plugin-airconditioning.pro
2023-02-25 22:49:09 +01:00

49 lines
1.3 KiB
Prolog

TEMPLATE = lib
TARGET = $$qtLibraryTarget(nymea_experiencepluginairconditioning)
CONFIG += plugin link_pkgconfig c++11
PKGCONFIG += nymea
QT -= gui
QT += network sql
include(../config.pri)
HEADERS += experiencepluginairconditioning.h \
airconditioningjsonhandler.h \
airconditioningmanager.h \
notifications.h \
temperatureschedule.h \
thermostat.h \
zoneinfo.h
SOURCES += experiencepluginairconditioning.cpp \
airconditioningjsonhandler.cpp \
airconditioningmanager.cpp \
notifications.cpp \
temperatureschedule.cpp \
thermostat.cpp \
zoneinfo.cpp
target.path = $$[QT_INSTALL_LIBS]/nymea/experiences/
INSTALLS += target
# Install translation files
TRANSLATIONS *= $$files($${_PRO_FILE_PWD_}/translations/*ts, true)
lupdate.depends = FORCE
lupdate.depends += qmake_all
lupdate.commands = lupdate -recursive -no-obsolete $${_PRO_FILE_PWD_}/experience.pro
QMAKE_EXTRA_TARGETS += lupdate
# make lrelease to build .qm from .ts
lrelease.depends = FORCE
lrelease.commands += lrelease $$files($$_PRO_FILE_PWD_/translations/*.ts, true);
QMAKE_EXTRA_TARGETS += lrelease
translations.depends += lrelease
translations.path = /usr/share/nymea/translations
translations.files = $$[QT_SOURCE_TREE]/translations/*.qm
INSTALLS += translations