Thermostat pour piloter jusqu'à 4 radiateurs avec fil pilote
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.2 KiB

  1. QT += core gui network
  2. QT += qmqtt
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4. CONFIG += c++11
  5. TARGET = thermostat
  6. TEMPLATE = app
  7. # The following define makes your compiler emit warnings if you use
  8. # any feature of Qt which as been marked as deprecated (the exact warnings
  9. # depend on your compiler). Please consult the documentation of the
  10. # deprecated API in order to know how to port your code away from it.
  11. DEFINES += QT_DEPRECATED_WARNINGS
  12. # You can also make your code fail to compile if you use deprecated APIs.
  13. # In order to do so, uncomment the following line.
  14. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  15. DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  16. SOURCES += src/main.cpp \
  17. src/mainwindow.cpp \
  18. src/zoneitem.cpp \
  19. src/mqttclient.cpp \
  20. src/settings.cpp \
  21. src/boost_dlg.cpp \
  22. HEADERS += inc/mainwindow.h \
  23. inc/zoneitem.h \
  24. inc/mqttclient.h \
  25. inc/settings.h \
  26. inc/boost_dlg.h \
  27. RESOURCES += thermostat.qrc
  28. TRANSLATION_DIR = lang
  29. TRANSLATIONS += $$TRANSLATION_DIR/thermostat_fr.ts
  30. # This is not working with Qt5.7 on debian.
  31. CONFIG += lrelease embed_translations
  32. target.path = /usr/bin/
  33. INSTALLS += target
  34. VERSION = $$system(./scripts/get_tag_version.sh)
  35. # to see debug messages in console, run with environment variable QT_LOGGING_RULES="debug=true;"
  36. QMAKE_CXXFLAGS += -Wall -Werror
  37. QMAKE_CXXFLAGS += -std=c++11
  38. QMAKE_CXXFLAGS += -DVERSION=\'\"$$VERSION\"\'
  39. QMAKE_CXXFLAGS_DEBUG += -O0
  40. QMAKE_CXXFLAGS_RELEASE += -Os
  41. unix: CONFIG += link_pkgconfig
  42. INCLUDEPATH += inc/ \
  43. LUPDATE = $$shell_path($$[QT_INSTALL_BINS]/lupdate) -locations relative -no-ui-lines -no-sort
  44. LRELEASE = $$shell_path($$[QT_INSTALL_BINS]/lrelease) -compress -nounfinished -removeidentical
  45. LCONVERT = $$shell_path($$[QT_INSTALL_BINS]/lconvert)
  46. langupd.command = $$LUPDATE $$shell_path($$_PRO_FILE_) -ts $$_PRO_FILE_PWD_/$$TRANSLATIONS
  47. langrel.depends = langupd
  48. langrel.input = TRANSLATIONS
  49. langrel.output = $$TRANSLATION_DIR/${QMAKE_FILE_BASE}.qm
  50. langrel.commands = $$LRELEASE ${QMAKE_FILE_IN}
  51. langrel.CONFIG += no_link
  52. QMAKE_EXTRA_TARGETS += langupd
  53. QMAKE_EXTRA_COMPILERS += langrel
  54. PRE_TARGETDEPS += langupd compiler_langrel_make_all