forked from Swordfish90/qmltermwidget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qmltermwidget.pro
52 lines (38 loc) · 1.34 KB
/
qmltermwidget.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
TEMPLATE = lib
TARGET = qmltermwidget
QT += qml quick widgets
CONFIG += qt plugin
include(lib.pri)
DESTDIR = $$OUT_PWD/QMLTermWidget
DEFINES += HAVE_POSIX_OPENPT HAVE_SYS_TIME_H
macx:DEFINES += HAVE_UTMPX _UTMPX_COMPAT
INCLUDEPATH += $$PWD/lib
DEPENDPATH += $$PWD/lib
INCLUDEPATH += $$PWD/src
HEADERS += $$PWD/src/qmltermwidget_plugin.h \
$$PWD/src/ksession.h
SOURCES += $$PWD/src/qmltermwidget_plugin.cpp \
$$PWD/src/ksession.cpp
OTHER_FILES += \
src/QMLTermScrollbar.qml \
test-app/test-app.qml \
src/qmldir
# Copy the files useful to the plugin in DESTDIR
QMAKE_POST_LINK = $(COPY_DIR) $$PWD/lib/color-schemes $$DESTDIR && \
$(COPY_DIR) $$PWD/lib/kb-layouts $$DESTDIR && \
$$QMAKE_COPY $$PWD/src/qmldir $$DESTDIR && \
$$QMAKE_COPY $$PWD/src/QMLTermScrollbar.qml $$DESTDIR
#########################################
## INTALLS
#########################################
INSTALL_DIR = $$[QT_INSTALL_QML]
PLUGIN_IMPORT_PATH = Papyros/Terminal
PLUGIN_ASSETS = $$PWD/src/QMLTermScrollbar.qml \
$$PWD/lib/kb-layouts \
$$PWD/lib/color-schemes
target.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH
assets.files += $$PLUGIN_ASSETS
assets.path += $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH
qmldir.files += $$PWD/src/qmldir
qmldir.path += $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH
INSTALLS += target qmldir assets