qmake added qmake/TinyOrm.pri for configure

A user can include this pri file to partially configure TinyOrm library.
This commit is contained in:
silverqx
2021-10-07 15:03:33 +02:00
parent 4024f4a35e
commit 1be1de3fc1

26
qmake/TinyOrm.pri Normal file
View File

@@ -0,0 +1,26 @@
# 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
# ---
# Log queries with a time measurement
DEFINES += TINYORM_DEBUG_SQL
# Link with the shared library
CONFIG(shared, dll|shared|static|staticlib) | \
CONFIG(dll, dll|shared|static|staticlib): \
DEFINES += TINYORM_LINKING_SHARED