-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnymea-experience-plugin-airconditioning.pro
48 lines (37 loc) · 1.26 KB
/
nymea-experience-plugin-airconditioning.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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