mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-06 02:49:31 -06:00
- 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
32 lines
842 B
Plaintext
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
|