disabled compilation of cmark until it gets fixed

This commit is contained in:
csoler 2018-07-23 17:20:13 +02:00
parent fbc4e4205d
commit 3272ee0719
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
3 changed files with 17 additions and 1 deletions

View File

@ -2,7 +2,7 @@
TEMPLATE = app
QT += network xml
CONFIG += qt gui uic qrc resources idle cmark
CONFIG += qt gui uic qrc resources idle
CONFIG += console
TARGET = retroshare
DEFINES += TARGET=\\\"$${TARGET}\\\"
@ -1371,6 +1371,7 @@ gxsgui {
}
cmark {
DEFINES *= USE_CMARK
HEADERS += \
../../supportlibs/cmark/src/buffer.h \

View File

@ -38,9 +38,14 @@
#include "util/imageutil.h"
#include "util/rstime.h"
// #define USE_CMARK
#ifdef USE_CMARK
//Include for CMark
// This needs to be fixed: use system library if available, etc.
#include <gui/../../../supportlibs/cmark/src/cmark.h>
#include <gui/../../../supportlibs/cmark/src/node.h>
#endif
#include <iostream>
@ -586,6 +591,7 @@ QString RsHtml::formatText(QTextDocument *textDocument, const QString &text, ulo
// Save Space and Tab because doc loose it.
formattedText=saveSpace(formattedText);
#ifdef USE_CMARK
if (flag & RSHTML_FORMATTEXT_USE_CMARK) {
// Transform html to plain text
QTextBrowser textBrowser;
@ -608,6 +614,7 @@ QString RsHtml::formatText(QTextDocument *textDocument, const QString &text, ulo
textBrowser.setHtml(formattedText);
formattedText=textBrowser.toHtml();
}
#endif
QString errorMsg; int errorLine; int errorColumn;

View File

@ -30,11 +30,19 @@ no_retroshare_gui:CONFIG -= retroshare_gui
CONFIG *= gxsdistsync
# disabled by the time we fix compilation
CONFIG *= no_cmark
# To disable RetroShare-nogui append the following
# assignation to qmake command line "CONFIG+=no_retroshare_nogui"
CONFIG *= retroshare_nogui
no_retroshare_nogui:CONFIG -= retroshare_nogui
# To disable cmark append the following
# assignation to qmake command line "CONFIG+=no_cmark"
CONFIG *= cmark
no_cmark:CONFIG -= cmark
# To enable RetroShare plugins append the following
# assignation to qmake command line "CONFIG+=retroshare_plugins"
CONFIG *= no_retroshare_plugins