mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-07-24 06:22:22 +08:00
add QtDBus module in .pro, for older version Dtk5 didn't include this module correctly Log: add QtDBus module in .pro
56 lines
1.2 KiB
Prolog
56 lines
1.2 KiB
Prolog
QT += core gui webenginewidgets concurrent dbus
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 5): QT += widgets
|
|
|
|
TEMPLATE = app
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
DEFINES += PROJECT_NAME=\\\"'$${TARGET}'\\\"
|
|
|
|
# Get build version from qmake
|
|
VERSION = $$BUILD_VERSION
|
|
isEmpty(VERSION): VERSION = 1.0
|
|
DEFINES += APP_VERSION=\\\"'$${VERSION}'\\\"
|
|
|
|
CONFIG += c++11 link_pkgconfig
|
|
PKGCONFIG += dtkcore dtkgui dtkwidget
|
|
|
|
HEADERS += \
|
|
mainwindow.h \
|
|
globaldefine.h \
|
|
httpd.h \
|
|
httplib.h \
|
|
widget.h \
|
|
webengineview.h \
|
|
webenginepage.h \
|
|
application.h \
|
|
webengineurlrequestinterceptor.h
|
|
|
|
SOURCES += \
|
|
main.cpp \
|
|
httpd.cpp \
|
|
mainwindow.cpp \
|
|
widget.cpp \
|
|
webengineview.cpp \
|
|
webenginepage.cpp \
|
|
application.cpp \
|
|
webengineurlrequestinterceptor.cpp
|
|
|
|
RESOURCES += \
|
|
resources/resources.qrc
|
|
|
|
TRANSLATIONS += \
|
|
translations/$${TARGET}_zh_CN.ts
|
|
|
|
# Default rules for deployment.
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
else: unix:!android: target.path = /opt/durapps/$${TARGET}/bin
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
# Rules for deployment
|
|
qm.files += translations/*.qm
|
|
qm.path = /opt/durapps/$${TARGET}/share/$${TARGET}/translations
|
|
|
|
INSTALLS += qm
|