-
Notifications
You must be signed in to change notification settings - Fork 26
/
vstools.pri_TT
39 lines (37 loc) · 1.11 KB
/
vstools.pri_TT
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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# <#@output extension="pri" #>
# <#@include file="$(SolutionDir)\version.tt" #>
# <#=WARNING_GENERATED_FILE#>
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
!isEmpty(QTVSOOLS_PRI) {
error("vstools.pri already included")
}
QTVSTOOLS_PRI = 1
QTVSTOOLS_VERSION = <#=QT_VS_TOOLS_VERSION#>
QTVSTOOLS_VERSION_TAG = <#=QT_VS_TOOLS_VERSION_TAG#>
defineTest(minQtVersion) {
maj = $$1
min = $$2
patch = $$3
isEqual(QT_MAJOR_VERSION, $$maj) {
isEqual(QT_MINOR_VERSION, $$min) {
isEqual(QT_PATCH_VERSION, $$patch) {
return(true)
}
greaterThan(QT_PATCH_VERSION, $$patch) {
return(true)
}
}
greaterThan(QT_MINOR_VERSION, $$min) {
return(true)
}
}
greaterThan(QT_MAJOR_VERSION, $$maj) {
return(true)
}
return(false)
}
!minQtVersion(5, 6, 0) {
message("Cannot build Qt VS Tools with Qt version $${QT_VERSION}.")
error("Use at least Qt 5.6.0.")
}