-
Notifications
You must be signed in to change notification settings - Fork 0
/
TinyOrmPlayground.pro
112 lines (80 loc) · 2.43 KB
/
TinyOrmPlayground.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
QT -= gui
TEMPLATE = app
# Version requirements
# ---
# Older vesions may work, but you are on your own
# Req - requirement, throws error
# Rec - recommended, shows info message
# 16.10/16.11 (1929) - to support #pragma system_header
tinyMinReqMsvc = 19.29
tinyMinReqQt = 6.2
tinyMinReqClangCl = 14.0.3
tinyMinRecClang = 12
tinyMinRecGCC = 10.2
# Unused
#tinyMinReqRangeV3Version = 0.12.0
#tinyMinReqTabulateVersion = 1.5.0
# Make minimum toolchain version a requirement
load(private/tiny_toolchain_requirement)
# Link against TinyORM library for Tom application (also adds defines and include headers)
# ---
include($$TINY_MAIN_DIR/TinyORM/qmake/TinyOrm.pri)
# TinyOrmPlayground specific configuration
# ---
CONFIG *= cmdline
#CONFIG -= silent
# TinyOrmPlayground defines
# ---
DEFINES += PROJECT_TINYORM_PLAYGROUND
# Release build
CONFIG(release, debug|release): DEFINES += TINYPLAY_NO_DEBUG
# Debug build
CONFIG(debug, debug|release): DEFINES *= TINYPLAY_DEBUG
# Qt defines
# ---
# Disable debug output in release mode
CONFIG(release, debug|release): DEFINES *= QT_NO_DEBUG_OUTPUT
# Platform specific configuration
# ---
win32: include(qmake/winconf.pri)
macx: include(qmake/macxconf.pri)
mingw|if(unix:!macx): include(qmake/unixconf.pri)
# TinyOrmPlayground header and source files
# ---
include(src/src.pri)
# File version
# ---
# Find version numbers in the version header file and assign them to the
# <TARGET>_VERSION_<MAJOR,MINOR,PATCH,TWEAK> and also to the VERSION variable.
load(private/tiny_version_numbers)
tiny_version_numbers()
# Windows resource and manifest files
# ---
# Find version.hpp
tinyRcIncludepath = $$quote($$PWD/src/)
# Find Windows manifest
mingw: tinyRcIncludepath += $$quote($$PWD/resources/)
load(private/tiny_resource_and_manifest)
tiny_resource_and_manifest($$tinyRcIncludepath)
unset(tinyRcIncludepath)
# Use Precompiled headers (PCH)
# ---
include($$PWD/src/pch.pri)
# Default rules for deployment
# ---
CONFIG(release, debug|release) {
win32-msvc: target.path = C:/optx64/$${TARGET}
# else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
}
# Some info output
# ---
load(private/tiny_info_messages)
tiny_log_info_messages()
# User Configuration
# ---
exists(conf.pri): \
include(conf.pri)
else:disable_autoconf: \
error( "'conf.pri' for '$${TARGET}' project does not exist.\
See an example configuration in 'conf.pri.example'." )