Qmake - 有 "notcontains" 吗?
Qmake - is there a "notcontains"?
我知道 Qmake 提供了 contains 函数来检查一个变量是否包含一些值:
contains( CONFIG, PartialStatic ) {
// my code here
}
有"notcontains"这样的东西吗?
notcontains( CONFIG, PartialStatic ) {
// my code here
}
不必这样做:
contains( CONFIG, PartialStatic ) {
}
else {
// my code here
}
我在 Qt 文档中没有看到类似的内容。
QMake 允许一元 NOT 运算符:
! contains( CONFIG, PartialStatic ) {
# not that
message(Not that)
}
您可以结合布尔函数。
我知道 Qmake 提供了 contains 函数来检查一个变量是否包含一些值:
contains( CONFIG, PartialStatic ) {
// my code here
}
有"notcontains"这样的东西吗?
notcontains( CONFIG, PartialStatic ) {
// my code here
}
不必这样做:
contains( CONFIG, PartialStatic ) {
}
else {
// my code here
}
我在 Qt 文档中没有看到类似的内容。
QMake 允许一元 NOT 运算符:
! contains( CONFIG, PartialStatic ) {
# not that
message(Not that)
}
您可以结合布尔函数。