Merge branch '0508-dev' into 'V4-dev'

Optimize code.

See merge request kylin-desktop/ukui-search!17
This commit is contained in:
PengfeiZhang 2021-05-13 02:38:33 +00:00
commit 80a237852f
4 changed files with 10 additions and 19 deletions

View File

@ -19,7 +19,7 @@
*/ */
#include "construct-document.h" #include "construct-document.h"
#include "file-utils.h" #include "file-utils.h"
#include "chinese-seg/chinese-segmentation.h" #include "chinese-segmentation.h"
#include <QDebug> #include <QDebug>
#include <QThread> #include <QThread>
#include <QUrl> #include <QUrl>

View File

@ -28,7 +28,7 @@
#include "file-utils.h" #include "file-utils.h"
#include "index-generator.h" #include "index-generator.h"
#include "global-settings.h" #include "global-settings.h"
#include "chinese-seg/chinese-segmentation.h" #include "chinese-segmentation.h"
#include "construct-document.h" #include "construct-document.h"
#include <QStandardPaths> #include <QStandardPaths>

View File

@ -39,9 +39,9 @@
#include <list> #include <list>
#include <queue> #include <queue>
#include "../file-utils.h" #include "file-utils.h"
#include "../global-settings.h" #include "global-settings.h"
#include "chinese-seg/chinese-segmentation.h" #include "chinese-segmentation.h"
#define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString() #define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString()

View File

@ -59,22 +59,13 @@ unix {
target.path = $$[QT_INSTALL_LIBS] target.path = $$[QT_INSTALL_LIBS]
INSTALLS += target INSTALLS += target
header.path = /usr/include/ukui-search/ header.path = /usr/include/ukui-search
header.files += *.h header.files += *.h index/*.h appsearch/*.h settingsearch/*.h
header_appsearch.path = /usr/include/ukui-search/appsearch/ INSTALLS += header
header_appsearch.files = appsearch/*.h
header_index.path = /usr/include/ukui-search/index/
header_index.files = index/*.h
header_settingsearch.path = /usr/include/ukui-search/settingsearch/
header_settingsearch.files = settingsearch/*.h
INSTALLS += header header_appsearch header_index header_settingsearch
} }
INCLUDEPATH += $$PWD/../libchinese-segmentation
DEPENDPATH += $$PWD/../libchinese-segmentation
#INCLUDEPATH += $$PWD/../libchinese-segmentation
#DEPENDPATH += $$PWD/../libchinese-segmentation
#DISTFILES += \ #DISTFILES += \
# ../translations/libsearch/libukui-search_zh_CN.ts # ../translations/libsearch/libukui-search_zh_CN.ts