1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[QJson] Check for QJson headers in /usr/include/qjson

Also hopefully fix the QJSON_HAVE_INDENT check
This commit is contained in:
nowrep 2014-02-08 00:47:03 +01:00
parent eef8741b4b
commit da970b274d

View File

@ -58,8 +58,13 @@ else {
}
}
# Ugly hack to check for Indent support in QJson
system(grep "enum IndentMode" /usr/include/qjson/serializer.h &> /dev/null): DEFINES *= QJSON_HAVE_INDENT
# QJson dependency
!mac:unix:isEqual(QT_MAJOR_VERSION, 4) {
!system(test -d /usr/include/qjson): error(ERROR: QJson cannot be found!)
# Ugly hack to check for Indent support in QJson
system(grep setIndentMode /usr/include/qjson/serializer.h > /dev/null): DEFINES *= QJSON_HAVE_INDENT
}
DEFINES *= QT_NO_URL_CAST_FROM_STRING
DEFINES *= QT_USE_QSTRINGBUILDER