defines.pri 782 B

123456789101112131415161718192021222324252627282930313233
  1. # some library infos
  2. QMAKE_TARGET_COMPANY = "The Fresh Team"
  3. QMAKE_TARGET_PRODUCT = "Fresh Framework"
  4. QMAKE_TARGET_DESCRIPTION = "Qt Extension Framework"
  5. QMAKE_TARGET_COPYRIGHT = "\\251 2005 - 2014 Filipe Azevedo and $$QMAKE_TARGET_COMPANY"
  6. VERSION = 1.1.0
  7. # make library exportable
  8. DEFINES *= FRESH_CORE_BUILD
  9. # Disable automatic casts
  10. DEFINES *= \
  11. QT_NO_CAST_TO_ASCII \
  12. QT_NO_CAST_FROM_ASCII \
  13. QT_NO_CAST_FROM_BYTEARRAY \
  14. QT_NO_URL_CAST_FROM_STRING \
  15. QT_STRICT_ITERATORS
  16. # Add shorters for literals
  17. DEFINES *= \
  18. QL1S=QLatin1String \
  19. QL1C=QLatin1Char
  20. greaterThan( QT_MAJOR_VERSION, 4 ) {
  21. DEFINES *= \
  22. QSL=QStringLiteral \
  23. QBAL=QByteArrayLiteral
  24. } else {
  25. DEFINES *= \
  26. QSL=QString::fromUtf8 \
  27. QBAL=QByteArray
  28. }