2022-06-13 13:38:47 +08:00
|
|
|
QT += core gui dbus KWindowSystem xml x11extras sql
|
2021-05-22 21:29:43 +08:00
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
2022-05-27 09:42:15 +08:00
|
|
|
VERSION = 2.2.3
|
2022-01-20 15:04:17 +08:00
|
|
|
DEFINES += VERSION='\\"$${VERSION}\\"'
|
2021-05-22 21:29:43 +08:00
|
|
|
TARGET = ukui-search
|
|
|
|
TEMPLATE = app
|
|
|
|
|
2022-06-27 09:30:22 +08:00
|
|
|
PKGCONFIG += gio-2.0 glib-2.0 gio-unix-2.0 kysdk-waylandhelper
|
2021-05-22 21:29:43 +08:00
|
|
|
CONFIG += c++11 link_pkgconfig no_keywords lrelease
|
|
|
|
LIBS += -lxapian -lgsettings-qt -lquazip5 -lX11
|
2023-06-07 11:29:23 +08:00
|
|
|
LIBS += -lukui-appwidget-manager -lukui-appwidget-provider
|
2021-11-22 16:03:31 +08:00
|
|
|
#LIBS += -lukui-log4qt
|
2021-05-22 21:29:43 +08:00
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any Qt feature that has been marked deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if it uses deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
2021-05-27 21:10:11 +08:00
|
|
|
include(../libsearch/libukui-search-headers.pri)
|
2021-05-22 21:29:43 +08:00
|
|
|
include(control/control.pri)
|
|
|
|
include(model/model.pri)
|
|
|
|
include(xatom/xatom.pri)
|
2022-01-20 15:04:17 +08:00
|
|
|
include(../3rd-parties/qtsingleapplication/qtsingleapplication.pri)
|
2021-05-22 21:29:43 +08:00
|
|
|
include(view/view.pri)
|
2023-06-07 11:29:23 +08:00
|
|
|
include(search-app-widget-plugin/search-app-widget-plugin.pri)
|
2021-05-22 21:29:43 +08:00
|
|
|
|
2021-05-27 21:10:11 +08:00
|
|
|
|
2021-05-22 21:29:43 +08:00
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
2021-08-09 21:00:15 +08:00
|
|
|
mainwindow.cpp \
|
2022-01-20 15:04:17 +08:00
|
|
|
ukui-search-dbus-service.cpp \
|
|
|
|
ukui-search-gui.cpp
|
2021-05-22 21:29:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
2021-08-12 14:53:17 +08:00
|
|
|
mainwindow.h \
|
2022-01-20 15:04:17 +08:00
|
|
|
ukui-search-dbus-service.h \
|
|
|
|
ukui-search-gui.h
|
2021-05-22 21:29:43 +08:00
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
|
|
|
|
target.path = /usr/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
|
|
data-menu.path = /usr/share/applications
|
|
|
|
data-menu.files += ../data/ukui-search-menu.desktop
|
|
|
|
data.path = /etc/xdg/autostart
|
|
|
|
data.files += ../data/ukui-search.desktop
|
|
|
|
|
|
|
|
INSTALLS += data data-menu
|
|
|
|
|
|
|
|
RESOURCES += \
|
2023-06-07 11:29:23 +08:00
|
|
|
resource.qrc \
|
|
|
|
search-app-widget-plugin/provider/src.qrc
|
2021-05-22 21:29:43 +08:00
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
../translations/ukui-search/zh_CN.ts \
|
|
|
|
../translations/ukui-search/tr.ts \
|
2023-06-07 11:29:23 +08:00
|
|
|
../translations/ukui-search/bo_CN.ts \
|
|
|
|
../translations/ukui-search/appwidget/search_zh_CN.ts \
|
|
|
|
../translations/ukui-search/appwidget/search_bo_CN.ts
|
2021-05-22 21:29:43 +08:00
|
|
|
|
|
|
|
qm_files.path = /usr/share/ukui-search/translations/
|
2023-06-07 11:29:23 +08:00
|
|
|
qm_files.files = $$OUT_PWD/.qm/zh_CN.qm \
|
|
|
|
$$OUT_PWD/.qm/bo_CN.qm \
|
|
|
|
$$OUT_PWD/.qm/tr.qm \
|
2021-05-22 21:29:43 +08:00
|
|
|
|
|
|
|
schemes.path = /usr/share/glib-2.0/schemas/
|
2021-11-22 16:03:31 +08:00
|
|
|
schemes.files += ../data/org.ukui.log4qt.ukui-search.gschema.xml
|
2021-05-22 21:29:43 +08:00
|
|
|
|
2023-06-07 11:29:23 +08:00
|
|
|
appwidget_qm_files.files = $$OUT_PWD/.qm/search_bo_CN.qm \
|
|
|
|
$$OUT_PWD/.qm/search_zh_CN.qm
|
|
|
|
appwidget_qm_files.path = /usr/share/appwidget/translations/
|
|
|
|
|
|
|
|
qml.files += search-app-widget-plugin/provider/data/search.qml
|
|
|
|
qml.path = /usr/share/appwidget/qml/
|
|
|
|
|
|
|
|
appwidgetconf.files += search-app-widget-plugin/provider/data/search.conf
|
|
|
|
appwidgetconf.path = /usr/share/appwidget/config/
|
|
|
|
|
|
|
|
service.files += search-app-widget-plugin/provider/org.ukui.appwidget.provider.search.service
|
|
|
|
service.path += /usr/share/dbus-1/services/
|
|
|
|
|
|
|
|
preview.files += search-app-widget-plugin/provider/data/search.png
|
|
|
|
preview.path = /usr/share/appwidget/search/
|
|
|
|
|
|
|
|
svg.files += search-app-widget-plugin/provider/data/ukui-search.svg
|
|
|
|
svg.path = /usr/share/appwidget/search/
|
|
|
|
|
|
|
|
INSTALLS += qm_files schemes qml appwidget_qm_files appwidgetconf service preview svg
|
2021-05-22 21:29:43 +08:00
|
|
|
|
|
|
|
LIBS += -L$$OUT_PWD/../libchinese-segmentation -lchinese-segmentation \
|
|
|
|
-L$$OUT_PWD/../libsearch -lukui-search
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../libchinese-segmentation
|
|
|
|
DEPENDPATH += $$PWD/../libchinese-segmentation
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
../data/org.ukui.log4qt.ukui-search.gschema.xml \
|