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.

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