Patrick Schurig d8ebd65eba [upstream-fix] maxChargingCurrent uint→double + INCLUDEPATH energyplugin.pri + flip ETM vers pri
- tests/mocks/plugins/energymocks/integrationpluginenergymocks.json : maxChargingCurrent
  "type": "uint" → "type": "double" sur les 3 Thing classes (charger, chargerPhaseSwitching,
  simpleCharger) — nymea 1.15 a changé le type de l'interface evcharger.
- energyplugin/energyplugin.pri : INCLUDEPATH += $$PWD — rend energyplugin/ accessible
  aux consommateurs du .pri (simulation, tests) qui compilent les sources ETM.
- energyplugin/energyplugin.pro : le toggle ETM_ARBITRATOR déplacé dans energyplugin.pri
  (unique point de contrôle propagé à plugin ET simulation).
- tests/auto/simulation/experience/energyexperienceenergymock.cpp : même flip que
  energypluginnymea.cpp — instancie EnergyArbitrator si ETM_ARBITRATOR est défini.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 10:39:31 +02:00

38 lines
1002 B
Prolog

TEMPLATE = lib
TARGET = $$qtLibraryTarget(nymea_energypluginnymea)
CONFIG += plugin link_pkgconfig
PKGCONFIG += nymea nymea-energy
QT *= network
include(energyplugin.pri)
HEADERS += \
energypluginnymea.h
SOURCES += \
energypluginnymea.cpp
target.path = $$[QT_INSTALL_LIBS]/nymea/energy/
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_}/etm-powersync-energy-plugin-etm.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 = $$_PRO_FILE_PWD_/translations/*.qm
message("Translation files: $${translations.files}")
INSTALLS += translations