cppcheck/lib/pcrerules.pri

19 lines
604 B
Plaintext
Raw Normal View History

# On non-Windows, if the variable HAVE_RULES is empty, default to using PCRE and enabling rules
!win32:isEmpty(HAVE_RULES) {
CONFIG += use_pcre_rules
}
# If HAVE_RULES=yes is passed to qmake, use PCRE and enable rules
contains(HAVE_RULES, [yY][eE][sS]) {
CONFIG += use_pcre_rules
}
use_pcre_rules {
DEFINES += HAVE_RULES
LIBS += -L../externals -lpcre
INCLUDEPATH += ../externals
message("Rules enabled - to disable them and remove the dependency on PCRE, pass HAVE_RULES=no to qmake.")
} else {
message("Rules disabled - to enable them, make PCRE available and pass HAVE_RULES=yes to qmake.")
}