mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-14 14:29:29 -06:00
qmake added qmake/TinyOrm.pri for configure
A user can include this pri file to partially configure TinyOrm library.
This commit is contained in:
26
qmake/TinyOrm.pri
Normal file
26
qmake/TinyOrm.pri
Normal 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
|
||||
Reference in New Issue
Block a user