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.

67 lines
2.0 KiB

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