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.

84 lines
2.4 KiB

  1. QT += core gui network
  2. QT += mqtt
  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. src/menu_dlg.cpp \
  23. src/holiday_dlg.cpp \
  24. src/edit_dlg.cpp \
  25. src/edit_prog_dlg.cpp \
  26. HEADERS += inc/mainwindow.h \
  27. inc/zoneitem.h \
  28. inc/mqttclient.h \
  29. inc/settings.h \
  30. inc/boost_dlg.h \
  31. inc/menu_dlg.h \
  32. inc/holiday_dlg.h \
  33. inc/edit_dlg.h \
  34. inc/edit_prog_dlg.h \
  35. RESOURCES += thermostat.qrc
  36. TRANSLATION_DIR = lang
  37. TRANSLATIONS += $$TRANSLATION_DIR/thermostat_fr.ts
  38. # This is not working with Qt5.7 on debian.
  39. CONFIG += lrelease embed_translations
  40. target.path = /usr/bin/
  41. INSTALLS += target
  42. VERSION = $$system(./scripts/get_tag_version.sh)
  43. # to see debug messages in console, run with environment variable QT_LOGGING_RULES="debug=true;"
  44. QMAKE_CXXFLAGS += -Wall -Werror
  45. QMAKE_CXXFLAGS += -std=c++11
  46. QMAKE_CXXFLAGS += -DVERSION=\'\"$$VERSION\"\'
  47. QMAKE_CXXFLAGS_DEBUG += -O0
  48. QMAKE_CXXFLAGS_RELEASE += -Os
  49. unix: CONFIG += link_pkgconfig
  50. INCLUDEPATH += inc/ \
  51. LUPDATE = $$shell_path($$[QT_INSTALL_BINS]/lupdate) -locations relative -no-ui-lines -no-sort
  52. LRELEASE = $$shell_path($$[QT_INSTALL_BINS]/lrelease) -compress -nounfinished -removeidentical
  53. LCONVERT = $$shell_path($$[QT_INSTALL_BINS]/lconvert)
  54. langupd.command = $$LUPDATE $$shell_path($$_PRO_FILE_) -ts $$_PRO_FILE_PWD_/$$TRANSLATIONS
  55. langrel.depends = langupd
  56. langrel.input = TRANSLATIONS
  57. langrel.output = $$TRANSLATION_DIR/${QMAKE_FILE_BASE}.qm
  58. langrel.commands = $$LRELEASE ${QMAKE_FILE_IN}
  59. langrel.CONFIG += no_link
  60. QMAKE_EXTRA_TARGETS += langupd
  61. QMAKE_EXTRA_COMPILERS += langrel
  62. PRE_TARGETDEPS += langupd compiler_langrel_make_all