2022-06-06 11:37:01 +08:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2019-07-20T10:23:11
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT += network core widgets gui concurrent xml KWindowSystem dbus x11extras
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += printsupport
|
|
|
|
|
|
|
|
include(../common.pri)
|
|
|
|
|
|
|
|
TARGET = peony
|
|
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += create_pc create_prl no_install_prl
|
|
|
|
QMAKE_CXXFLAGS += -Werror=return-type -Werror=return-local-addr -Werror=uninitialized -Werror=unused-label
|
|
|
|
CONFIG += link_pkgconfig no_keywords c++11 lrelease hide_symbols
|
2023-02-21 11:38:17 +08:00
|
|
|
PKGCONFIG += glib-2.0 gio-2.0 gio-unix-2.0 poppler-qt5 gsettings-qt udisks2 libnotify libcanberra openssl x11-xcb dconf
|
2022-06-06 11:37:01 +08:00
|
|
|
DEFINES += PEONYCORE_LIBRARY
|
2023-02-21 11:38:17 +08:00
|
|
|
|
|
|
|
contains(DEFINES, KY_FILE_DIALOG) {
|
|
|
|
PKGCONFIG += kysdk-qtwidgets
|
|
|
|
}
|
|
|
|
|
|
|
|
contains(DEFINES, KY_SDK_SYSINFO) {
|
|
|
|
PKGCONFIG += kysdk-sysinfo
|
|
|
|
}
|
|
|
|
|
|
|
|
contains(DEFINES, KY_SDK_QT_WIDGETS) {
|
|
|
|
PKGCONFIG += kysdk-qtwidgets
|
|
|
|
}
|
|
|
|
|
|
|
|
contains(DEFINES, KY_SDK_WAYLANDHELPER) {
|
|
|
|
PKGCONFIG += kysdk-waylandhelper
|
|
|
|
}
|
2022-06-06 11:37:01 +08:00
|
|
|
|
|
|
|
schemes.files += org.ukui.peony.settings.gschema.xml
|
|
|
|
schemes.path = /usr/share/glib-2.0/schemas/
|
|
|
|
|
|
|
|
PLUGIN_INSTALL_DIRS = $$[QT_INSTALL_LIBS]/peony-extensions
|
|
|
|
DEFINES += PLUGIN_INSTALL_DIRS='\\"$${PLUGIN_INSTALL_DIRS}\\"'
|
|
|
|
|
|
|
|
QMAKE_CXXFLAGS += -execution-charset:utf-8
|
|
|
|
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any feature of Qt which has been marked as 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 you use 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
|
|
|
|
|
|
|
|
include(libpeony-qt.pri)
|
|
|
|
|
|
|
|
TRANSLATIONS += ../translations/libpeony-qt/libpeony-qt_zh_CN.ts \
|
|
|
|
../translations/libpeony-qt/libpeony-qt_tr.ts \
|
|
|
|
../translations/libpeony-qt/libpeony-qt_cs.ts \
|
2023-06-27 14:03:39 +08:00
|
|
|
../translations/libpeony-qt/libpeony-qt_bo_CN.ts \
|
|
|
|
../translations/libpeony-qt/libpeony-qt_mn.ts
|
2022-06-06 11:37:01 +08:00
|
|
|
|
|
|
|
DESTDIR += $$PWD
|
|
|
|
|
|
|
|
unix {
|
|
|
|
target.path = $$[QT_INSTALL_LIBS]
|
|
|
|
|
|
|
|
QMAKE_PKGCONFIG_NAME = peony
|
|
|
|
QMAKE_PKGCONFIG_DESCRIPTION = Peony Header files
|
|
|
|
QMAKE_PKGCONFIG_VERSION = $$VERSION
|
|
|
|
QMAKE_PKGCONFIG_LIBDIR = $$target.path
|
|
|
|
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
|
|
|
|
QMAKE_PKGCONFIG_INCDIR = /usr/include/peony-qt
|
|
|
|
QMAKE_PKGCONFIG_CFLAGS += -I/usr/include/peony-qt/fileop -I/usr/include/peony-qt/model -I/usr/include/peony-qt/controls
|
|
|
|
QMAKE_PKGCONFIG_REQUIRES = Qt5Widgets Qt5Network glib-2.0 gio-2.0 gio-unix-2.0 poppler-qt5 gsettings-qt udisks2 libnotify libcanberra
|
|
|
|
|
|
|
|
INSTALLS += target \
|
|
|
|
schemes
|
|
|
|
|
|
|
|
# fixme:// format_dialog.h
|
|
|
|
header.path = /usr/include/peony-qt
|
2022-06-30 16:28:32 +08:00
|
|
|
header.files += *.h model/*.h file-operation/*.h vfs/*.h controls/ ../plugin-iface/*.h convenient-utils/*.h convenient-utils/disc/*.h windows/format_dialog.h windows/FMWindowIface.h \
|
2023-07-14 15:56:34 +08:00
|
|
|
libpeony-qt/usershare-manager.h windows/udfFormatDialog.h windows/udfAppendBurnDataDialog.h windows/format-dlg-create-delegate.h
|
2022-06-06 11:37:01 +08:00
|
|
|
# header.depends = header2
|
|
|
|
header.files += development-files/header-files/*
|
|
|
|
INSTALLS += header
|
|
|
|
|
|
|
|
# header2.commands = sh $$PWD/copy-headers.sh
|
|
|
|
# INSTALLS += header2
|
|
|
|
|
|
|
|
# QMAKE_EXTRA_TARGETS += header header2
|
|
|
|
|
|
|
|
# pcfile.path = $$[QT_INSTALL_LIBS]/pkgconfig
|
|
|
|
# pcfile.files = development-files/peony.pc
|
|
|
|
# INSTALLS += pcfile
|
|
|
|
|
|
|
|
#QM_FILES_RESOURCE_PREFIX = ../translations/libpeony-qt
|
|
|
|
QM_FILES_INSTALL_PATH = /usr/share/libpeony-qt
|
|
|
|
}
|