QT += qml quick serialbus concurrent charts bluetooth scxml 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. 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 += \ sources \ sources/storage \ sources/canbus \ sources/utility \ sources/abstract \ sources/model \ sources/model/settings \ HEADERS += \ \ # Main sources/main.h \ sources/Threads.h \ sources/MainTimer.h \ sources/ApplicationPost.h \ # TODO clean up sources/MessageGlobals.h \ \ # Controllers sources/ApplicationController.h \ sources/storage/Settings.h \ \ # ---------- States ---------- sources/StateController.h \ sources/model/MAbstract.h \ # TODO is this needed? sources/model/settings/MSettings.h \ \ # CANBus sources/canbus/CanInterface.h \ sources/canbus/FrameInterface.h \ \ # Denali Message sources/canbus/MessageAcknowModel.h \ sources/canbus/MessageBuilder.h \ sources/canbus/MessageInterpreter.h \ sources/canbus/MessageDispatcher.h \ \ # 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 += \ \ # Main main.cpp \ sources/Threads.cpp \ sources/MainTimer.cpp \ sources/ApplicationPost.cpp \ \ # Controllers sources/ApplicationController.cpp \ sources/storage/Settings.cpp \ \ # ---------- States ---------- sources/StateController.cpp \ \ # ---------- Models ---------- sources/model/MAbstract.cpp \ \ # ---------- Models - settings sources/model/settings/MSettings.cpp \ \ # 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 \ \ # 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 += \ # This could be drydemo.qrc but not needed 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 STATECHARTS += \ drydemoxmlstates.scxml