1 From b9bf46966dd7931f9f33c30ed608a21d0e71e923 Mon Sep 17 00:00:00 2001
2 From: rewine <lhongxu@outlook.com>
3 Date: Tue, 19 Jul 2022 13:19:10 +0800
4 Subject: [PATCH 1/2] remove dependency on vendored library
7 CuteMarkEd.pro | 4 +---
8 app-static/app-static.pro | 11 ++---------
10 app/cutemarkdownhighlighter.h | 2 +-
11 4 files changed, 4 insertions(+), 15 deletions(-)
13 diff --git a/CuteMarkEd.pro b/CuteMarkEd.pro
14 index 4ee92e3..0d247a4 100644
17 @@ -9,12 +9,10 @@ TEMPLATE = subdirs
29 # build order: 3rdparty -> libs -> app-static -> app & test
30 #libs.depends = 3rdparty
31 diff --git a/app-static/app-static.pro b/app-static/app-static.pro
32 index cd3c292..560b4fc 100644
33 --- a/app-static/app-static.pro
34 +++ b/app-static/app-static.pro
35 @@ -13,7 +13,6 @@ CONFIG += c++11
39 -INCLUDEPATH += $$PWD/../3rdparty/md4c/src
42 snippets/jsonsnippettranslator.cpp \
43 @@ -34,10 +33,7 @@ SOURCES += \
44 revealviewsynchronizer.cpp \
45 htmlpreviewcontroller.cpp \
46 htmlviewsynchronizer.cpp \
47 - yamlheaderchecker.cpp \
48 - $$PWD/../3rdparty/md4c/src/md4c.c \
49 - $$PWD/../3rdparty/md4c/src/entity.c \
50 - $$PWD/../3rdparty/md4c/src/md4c-html.c
51 + yamlheaderchecker.cpp
55 @@ -64,10 +60,7 @@ HEADERS += \
56 revealviewsynchronizer.h \
57 htmlpreviewcontroller.h \
58 htmlviewsynchronizer.h \
59 - yamlheaderchecker.h \
60 - $$PWD/../3rdparty/md4c/src/md4c.h \
61 - $$PWD/../3rdparty/md4c/src/entity.h \
62 - $$PWD/../3rdparty/md4c/src/md4c-html.h
67 diff --git a/app/app.pro b/app/app.pro
68 index 4827673..ab961cf 100644
71 @@ -40,8 +40,6 @@ macx {
75 -include(../3rdparty/qmarkdowntextedit/qmarkdowntextedit.pri)
76 -include(../3rdparty/hunspell/hunspell.pri)
80 diff --git a/app/cutemarkdownhighlighter.h b/app/cutemarkdownhighlighter.h
81 index c99ab56..78f2be6 100644
82 --- a/app/cutemarkdownhighlighter.h
83 +++ b/app/cutemarkdownhighlighter.h
86 #include <QSyntaxHighlighter>
88 -#include "../3rdparty/qmarkdowntextedit/markdownhighlighter.h"
89 +#include <QMarkdownTextedit/markdownhighlighter.h>