Files
TinyORM/qmake/TinyOrm.pri
silverqx d2999dfcbf qmake/cmake unified debug output
- removed all occurrences of QT_NO_DEBUG_OUTPUT, it is up to user
 - TINYORM_DEBUG_SQL is enabled in debug builds and TINYORM_NO_DEBUG_SQL
   in release builds, user still can override debug build with
   TINYORM_NO_DEBUG_SQL
 - enhanced debug output in DatabaseConnection class
 - added driverNamePrintable(), databaseName(), hostName() to
   DB/DatabaseManager/DatabaseConnection
 - logquery added to NS and created library class for it
2021-10-21 09:48:53 +02:00

32 lines
842 B
Plaintext

# TinyORM configuration
# ---
CONFIG *= c++2a strict_c++ warn_on utf8_source link_prl hide_symbols silent
# Use extern constants for shared build
CONFIG(shared, dll|shared|static|staticlib) | \
CONFIG(dll, dll|shared|static|staticlib): \
# Support override because inline_constants can be used in the shared build too
!inline_constants: \
CONFIG *= extern_constants
# Archive library build
else: \
CONFIG += inline_constants
# TinyORM defines
# ---
# Link with the shared library
CONFIG(shared, dll|shared|static|staticlib) | \
CONFIG(dll, dll|shared|static|staticlib): \
DEFINES *= TINYORM_LINKING_SHARED
# Release build
CONFIG(release, debug|release): \
DEFINES *= TINYORM_NO_DEBUG
# Log queries with a time measurement in debug build
CONFIG(release, debug|release): \
DEFINES *= TINYORM_NO_DEBUG_SQL