2011-08-18 22:42:19 +02:00
|
|
|
# If HAVE_RULES=yes is passed to qmake, use PCRE and enable rules
|
|
|
|
contains(HAVE_RULES, [yY][eE][sS]) {
|
2012-10-02 07:19:24 +02:00
|
|
|
CONFIG += use_pcre_rules
|
2011-08-18 22:42:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
use_pcre_rules {
|
2012-10-02 07:19:24 +02:00
|
|
|
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.")
|
2011-08-18 22:42:19 +02:00
|
|
|
} else {
|
2012-10-02 07:19:24 +02:00
|
|
|
message("Rules disabled - to enable them, make PCRE available and pass HAVE_RULES=yes to qmake.")
|
2011-08-18 22:42:19 +02:00
|
|
|
}
|