mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
disabled compilation of cmark until it gets fixed
This commit is contained in:
parent
fbc4e4205d
commit
3272ee0719
@ -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 \
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user