- 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>
68 lines
2.2 KiB
Plaintext
68 lines
2.2 KiB
Plaintext
# Rend les headers du répertoire energyplugin/ accessibles aux consommateurs
|
|
# (simulation, tests) qui incluent ce .pri depuis un autre répertoire.
|
|
INCLUDEPATH += $$PWD
|
|
|
|
# [ETM] Activate ETM arbitrator — replaces SmartChargingManager::update() with EnergyArbitrator.
|
|
# Propagé à tous les consommateurs du .pri (plugin + simulation + tests).
|
|
# Uncommenter pour activer. Commité DÉSACTIVÉ jusqu'à preuve iso (3b-iv).
|
|
# DEFINES += ETM_ARBITRATOR
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 5) {
|
|
message("Building using Qt6 support")
|
|
CONFIG *= c++17
|
|
QMAKE_LFLAGS *= -std=c++17
|
|
QMAKE_CXXFLAGS *= -std=c++17
|
|
} else {
|
|
message("Building using Qt5 support")
|
|
CONFIG *= c++11
|
|
QMAKE_LFLAGS *= -std=c++11
|
|
QMAKE_CXXFLAGS *= -std=c++11
|
|
DEFINES += QT_DISABLE_DEPRECATED_UP_TO=0x050F00
|
|
}
|
|
|
|
coverage {
|
|
message(Building with code coverage enabled)
|
|
# --coverage option contains: -fprofile-arcs -ftest-coverage -lgcov
|
|
QMAKE_CXXFLAGS *= --coverage
|
|
QMAKE_LDFLAGS *= --coverage
|
|
LIBS += -lgcov
|
|
}
|
|
|
|
HEADERS += \
|
|
$$PWD/energymanagerconfiguration.h \
|
|
$$PWD/energysettings.h \
|
|
$$PWD/evcharger.h \
|
|
$$PWD/nymeaenergyjsonhandler.h \
|
|
$$PWD/rootmeter.h \
|
|
$$PWD/smartchargingmanager.h \
|
|
$$PWD/spotmarket/spotmarketdataprovider.h \
|
|
$$PWD/spotmarket/spotmarketdataproviderawattar.h \
|
|
$$PWD/spotmarket/spotmarketmanager.h \
|
|
$$PWD/types/chargingaction.h \
|
|
$$PWD/types/charginginfo.h \
|
|
$$PWD/types/chargingprocessinfo.h \
|
|
$$PWD/types/chargingschedule.h \
|
|
$$PWD/types/scoreentry.h \
|
|
$$PWD/types/smartchargingstate.h \
|
|
$$PWD/types/timeframe.h \
|
|
|
|
include($$PWD/etm/etm.pri)
|
|
|
|
SOURCES += \
|
|
$$PWD/energymanagerconfiguration.cpp \
|
|
$$PWD/energysettings.cpp \
|
|
$$PWD/evcharger.cpp \
|
|
$$PWD/nymeaenergyjsonhandler.cpp \
|
|
$$PWD/rootmeter.cpp \
|
|
$$PWD/smartchargingmanager.cpp \
|
|
$$PWD/spotmarket/spotmarketdataprovider.cpp \
|
|
$$PWD/spotmarket/spotmarketdataproviderawattar.cpp \
|
|
$$PWD/spotmarket/spotmarketmanager.cpp \
|
|
$$PWD/types/chargingaction.cpp \
|
|
$$PWD/types/charginginfo.cpp \
|
|
$$PWD/types/chargingprocessinfo.cpp \
|
|
$$PWD/types/chargingschedule.cpp \
|
|
$$PWD/types/scoreentry.cpp \
|
|
$$PWD/types/smartchargingstate.cpp \
|
|
$$PWD/types/timeframe.cpp \
|