QT += qml quick serialbus concurrent charts bluetooth CONFIG += c++17 warn_on # CONFIG += disable-desktop # QMAKE_CXX = clazy QMAKE_CXXFLAGS += -Wall -Werror -Wextra -Wimplicit-fallthrough=3 # -save-temps # see .ii # -Wpedantic -Wconversion -Wshadow # these can't always be used, since it gives errors in Qt library. # Leahi Digi Board DEFINES += LEAHI_DIGI_BOARD TRANSLATIONS += \ resources/translations/translation_es.ts \ resources/translations/translation_de.ts #CONFIG += disable_crc disable_crc { message( *** IMPORTANT : DISABLED CRC CHECK *** ) DEFINES += DISABLE_CRC } #CONFIG += disable_keepalive disable_keepalive { message( *** IMPORTANT : DISABLED KEEP ALIVE *** ) DEFINES += DISABLE_KEEP_ALIVE } # added this section to detect which compiler is running # to decide device dependent decisions # by defining a MACRO # and use that MACRO for conditional build message($$QMAKESPEC) linux-g++ { message("Building for desktop") DEFINES += BUILD_FOR_DESKTOP } linux-oe-generic-g++ { message("Building for target") DEFINES += BUILD_FOR_TARGET } # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Refer to the documentation for the # deprecated API to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 INCLUDEPATH += \ common \ sources \ sources/device \ sources/storage \ sources/canbus \ sources/model \ sources/model/td \ sources/model/td/data \ sources/model/td/alarm \ sources/view \ sources/view/td \ sources/view/td/data \ sources/view/confirm \ sources/view/settings \ \ sources/gui \ sources/utility \ sources/wifi \ sources/bluetooth \ sources/cloudsync \ sources/abstract \ sources/model/confirm \ sources/model/settings \ sources/model/ui/data \ sources/model/hd/adjustment \ sources/model/hd/adjustment/disinfect \ sources/model/hd/adjustment/settings \ sources/model/hd/adjustment/pretreatment \ sources/model/hd/adjustment/treatment \ sources/model/hd/adjustment/posttreatment \ sources/model/hd/alarm \ sources/model/hd/data \ sources/model/hd/data/post \ sources/model/hd/data/pretreatment \ sources/model/hd/data/treatment \ sources/model/hd/data/posttreatment \ sources/model/hd/data/treatmentlog \ sources/model/dg/data \ sources/model/dg/data/post \ sources/model/dg/data/pretreatment \ sources/model/dg/data/disinfect \ sources/model/dg/adjustment \ sources/model/dg/adjustment/settings \ sources/view/pretreatment \ sources/view/ui/data \ sources/view/hd/adjustment/common \ sources/view/hd/adjustment \ sources/view/hd/adjustment/pretreatment \ sources/view/hd/adjustment/treatment \ sources/view/hd/adjustment/posttreatment \ sources/view/hd/adjustment/disinfect \ sources/view/hd/alarm \ sources/view/hd/data \ sources/view/hd/data/post \ sources/view/hd/data/pretreatment \ sources/view/hd/data/treatment \ sources/view/hd/data/posttreatment \ sources/view/dg/data \ sources/view/dg/data/post \ sources/view/dg/data/pretreatment \ sources/view/dg/data/disinfect HEADERS += \ \ # common common/AlarmDefs.h \ common/Compatible.h \ common/DDDefs.h \ common/TDDefs.h \ common/MsgDefs.h \ \ # Main sources/main.h \ sources/Threads.h \ sources/MainTimer.h \ sources/AlarmGenerator.h \ sources/ApplicationPost.h \ sources/device/DeviceGlobals.h \ sources/device/DeviceError.h \ \ # Controllers sources/ApplicationController.h \ sources/device/DeviceController.h \ sources/storage/Settings.h \ sources/storage/TreatmentLog.h \ sources/bluetooth/BluetoothInterface.h \ sources/cloudsync/CloudSyncController.h \ \ # ---------- Models ---------- sources/model/MModel.h \ sources/model/MAbstract.h \ sources/model/MAbstractDynamic.h \ sources/device/DeviceModels.h \ \ # ---------- Models - TD - Data //// ----- @LEAHIZED \ # ---------- Views - TD - Data - States //// ----- @LEAHIZED \ # ---------- Models - confirm \ # ---------- Models - POST \ # ---------- Models - settings sources/model/settings/MSettings.h \ sources/model/settings/MWifiNetwork.h \ sources/model/settings/MBluetooth.h \ \ # ---------- Models - Alarm \ # ---------- Models - States Data \ # ---------- Models - HD - Adjustment sources/model/hd/adjustment/MAdjustRequestsBase.h \ \ # ---------- Models - HD - Adjustment - Settings \ # ---------- Models - HD - Adjustment - Pre-Treatment \ # ---------- Models - HD - Adjustment - In-Treatment \ # ---------- Models - HD - Adjustment - End-Treatment \ # ---------- Models - HD - Adjustment - Post-Treatment \ # ---------- Models - HD - Adjustment - Disinfeection \ # ---------- Models - HD - Data - Pre-Treatment - Progress \ # ---------- Models - HD - Data \ # ---------- Models - HD - Data - Treatment Log \ # ---------- Models - DG - Adjustment \ # ---------- Models - DG - Adjustment - Settings \ # ---------- Models - DG - Data - Pre-Treatment - Progress \ # ---------- Models - DG - Data - Disinfect - Progress \ # ---------- Models - DG - Data \ # CANBus sources/canbus/CanInterface.h \ sources/canbus/FrameInterface.h \ \ # Denali Message sources/canbus/MessageGlobals.h \ sources/canbus/MessageAcknowModel.h \ sources/canbus/MessageBuilder.h \ sources/canbus/MessageInterpreter.h \ sources/canbus/MessageDispatcher.h \ \ # Gui sources/gui/GuiGlobals.h \ sources/gui/GuiView.h \ sources/gui/GuiController.h \ \ # ---------- Views ---------- sources/view/VTreatmentCreate.h \ sources/view/VEventSpy.h \ sources/view/VView.h \ sources/view/VGeneralEvent.h \ sources/device/DeviceView.h \ \ # ---------- Views - CONFIRM sources/view/confirm/VConfirm.h \ \ # ---------- Views - POST \ # ---------- Views - Settings sources/view/settings/VDateTime.h \ sources/view/settings/VSettings.h \ sources/view/settings/VLocalization.h \ sources/view/settings/VBluetooth.h \ sources/view/settings/VAdjustmentVersions.h \ sources/view/settings/VAdjustmentAlarmVolume.h \ sources/view/settings/VCloudSync.h \ \ # ---------- Views - Alarm \ # ---------- Views - HD - Adjustment sources/view/VAdjustmentResponseBase.h \ \ # ---------- Views - HD - Adjustment - common \ # ---------- Views - HD - Adjustment - Pre-Treatment \ # ---------- Views - HD - Adjustment - In-Treatment \ # ---------- Views - HD - Adjustment - End-Treatment \ # ---------- Views - HD - Adjustment - Post-Treatment \ # ---------- Views - HD - Adjustment - Disinfection \ # ---------- Views - HD - Data - States \ # ---------- Views - HD - Data - Pre-Treatment - Progress \ # ---------- Views - HD - Data \ # ---------- Views - DG - Data - Pre-Treatment - Progress \ # ---------- Views - DG - Data - Disinfection - Progress \ # ---------- Views - DG - States \ # ---------- Views - DG - Data \ # Storage sources/storage/StorageGlobals.h \ sources/storage/Logger.h \ sources/storage/FileHandler.h \ \ # Utility sources/utility/crc.h \ sources/utility/format.h \ sources/utility/types.h \ sources/utility/encryption.h \ sources/utility/qrcodegen.h SOURCES += \ \ # common \ # Main main.cpp \ sources/Threads.cpp \ sources/MainTimer.cpp \ sources/AlarmGenerator.cpp \ sources/ApplicationPost.cpp \ sources/device/DeviceError.cpp \ \ # Controllers sources/ApplicationController.cpp \ sources/device/DeviceController.cpp \ sources/storage/Settings.cpp \ sources/storage/TreatmentLog.cpp \ sources/bluetooth/BluetoothInterface.cpp \ sources/cloudsync/CloudSyncController.cpp \ \ # ---------- Models ---------- sources/model/MAbstract.cpp \ sources/model/MAbstractDynamic.cpp \ sources/device/DeviceModels.cpp \ \ # ---------- Models - TD - Data - States \ # ---------- Models - CONFIRM \ # ---------- Models - POST \ # ---------- Models - settings sources/model/settings/MSettings.cpp \ sources/model/settings/MBluetooth.cpp \ \ # ---------- Models - Alarm sources/model/hd/alarm/MAlarmMapping.cpp \ \ # ---------- Models - Data - States \ # ---------- Models - HD - Adjustment \ # ---------- Models - HD - Adjustment - Settings \ # ---------- Models - HD - Adjustment - Pre-Treatment \ # ---------- Models - HD - Adjustment - In-Treatment \ # ---------- Models - HD - Adjustment - End-Treatment \ # ---------- Models - HD - Adjustment - Post-Treatment \ # ---------- Models - HD - Adjustment - Disinfection \ # ---------- Models - HD - Data \ # ---------- Models - HD - Data - Pre-Treatment \ # ---------- Models - HD - Data - Treatment Log \ # ---------- Models - DG - Adjustment \ # ---------- Models - DG - Adjustment - Settings \ # ---------- Models - DG - Data - Pre-Treatment - Progress \ # ---------- Models - DG - Data - Disinfection - Progress \ # ---------- Models - DG - Data \ # CANBus sources/canbus/CanInterface.cpp \ sources/canbus/FrameInterface.cpp \ \ # Denali Message sources/canbus/MessageAcknowModel.cpp \ sources/canbus/MessageBuilder.cpp \ sources/canbus/MessageDispatcher.cpp \ sources/canbus/MessageInterpreter.cpp \ \ # Gui sources/gui/GuiGlobals.cpp \ sources/gui/GuiView.cpp \ sources/gui/GuiController.cpp \ \ # ---------- Views ---------- sources/view/VTreatmentCreate.cpp \ sources/view/VEventSpy.cpp \ sources/view/VGeneralEvent.cpp \ sources/device/DeviceView.cpp \ \ # ---------- Views - TD - States Data \ # ---------- Views - CONFIRM sources/view/confirm/VConfirm.cpp \ \ # ---------- Views - POST \ # ---------- Views - Alarm \ # ---------- Views - Settings sources/view/settings/VSettings.cpp \ sources/view/settings/VLocalization.cpp \ sources/view/settings/VDateTime.cpp \ sources/view/settings/VBluetooth.cpp \ sources/view/settings/VAdjustmentVersions.cpp \ sources/view/settings/VAdjustmentAlarmVolume.cpp \ sources/view/settings/VCloudSync.cpp \ \ # ---------- Views - HD - Adjustment sources/view/VAdjustmentResponseBase.cpp \ \ # ---------- Views - HD - Adjustment - common \ # ---------- Views - HD - Adjustment - Pre-Treatment \ # ---------- Views - HD - Adjustment - In-Treatment \ # ---------- Views - HD - Adjustment - End-Treatment \ # ---------- Views - HD - Adjustment - Post-Treatment \ # ---------- Views - HD - Adjustment - Disinfection \ # ---------- Views - HD - States Data \ # ---------- Views - HD - Data \ # ---------- Views - HD - Data - Pre-Treatment \ # ---------- Views - HD - Data - In-Treatment \ # ---------- Views - HD - Data - End-Treatment \ # ---------- Views - DG - Data - Pre-Treatment - Progress \ # ---------- Views - DG - Data - Disinfect - Progress \ # ---------- Views - DG - States \ # ---------- Views - DG - Data \ # Storage sources/storage/StorageGlobals.cpp \ sources/storage/FileHandler.cpp \ sources/storage/Logger.cpp \ \ # Utility sources/utility/crc.cpp \ sources/utility/format.cpp \ sources/utility/types.cpp \ sources/utility/encryption.cpp \ sources/utility/qrcodegen.cpp RESOURCES += \ leahi.qrc DEFINES += \ VER_MAJOR="\\\"${majorVersion}\\\"" \ VER_MINOR="\\\"${minorVersion}\\\"" \ VER_MICRO="\\\"${microVersion}\\\"" \ VER_REVIS="\\\"${buildNumber}\\\"" \ VER_REVIS_DEV=\\\"$$system( date "+%m%d%H%M" )\\\" \ VER_APPLY=\\\"$$system( touch -m main.cpp )\\\" \ VER_BRANCH=\\\"$$system( git rev-parse --abbrev-ref HEAD )\\\" # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /home/root !isEmpty(target.path): INSTALLS += target DISTFILES += \ README.md \ ui_build_history.log