| 1 |
TEMPLATE = lib |
| 2 |
TARGET = qmltermwidget |
| 3 |
QT += qml quick widgets |
| 4 |
CONFIG += qt plugin |
| 5 |
|
| 6 |
include(lib.pri) |
| 7 |
|
| 8 |
DESTDIR = $$OUT_PWD/QMLTermWidget |
| 9 |
|
| 10 |
DEFINES += HAVE_POSIX_OPENPT HAVE_SYS_TIME_H |
| 11 |
macx:DEFINES += HAVE_UTMPX _UTMPX_COMPAT HAVE_PTSNAME HAVE_UNLOCKPT HAVE_GRANTPT |
| 12 |
|
| 13 |
INCLUDEPATH += $$PWD/lib |
| 14 |
DEPENDPATH += $$PWD/lib |
| 15 |
INCLUDEPATH += $$PWD/src |
| 16 |
|
| 17 |
HEADERS += $$PWD/src/qmltermwidget_plugin.h \ |
| 18 |
$$PWD/src/ksession.h |
| 19 |
|
| 20 |
# Copy the files useful to the plugin in DESTDIR |
| 21 |
QMAKE_POST_LINK = $(COPY_DIR) $$PWD/lib/color-schemes $$DESTDIR && \ |
| 22 |
$(COPY_DIR) $$PWD/lib/kb-layouts $$DESTDIR && \ |
| 23 |
$$QMAKE_COPY $$PWD/src/qmldir $$DESTDIR && \ |
| 24 |
$$QMAKE_COPY $$PWD/src/QMLTermScrollbar.qml $$DESTDIR |
| 25 |
|
| 26 |
SOURCES += $$PWD/src/qmltermwidget_plugin.cpp \ |
| 27 |
$$PWD/src/ksession.cpp |
| 28 |
|
| 29 |
OTHER_FILES += \ |
| 30 |
src/QMLTermScrollbar.qml \ |
| 31 |
test-app/test-app.qml \ |
| 32 |
src/qmldir |
| 33 |
|
| 34 |
######################################### |
| 35 |
## INTALLS |
| 36 |
######################################### |
| 37 |
|
| 38 |
INSTALL_DIR = $$[QT_INSTALL_QML] |
| 39 |
PLUGIN_IMPORT_PATH = QMLTermWidget |
| 40 |
PLUGIN_ASSETS = $$PWD/src/QMLTermScrollbar.qml \ |
| 41 |
$$PWD/lib/kb-layouts \ |
| 42 |
$$PWD/lib/color-schemes |
| 43 |
|
| 44 |
target.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH |
| 45 |
|
| 46 |
assets.files += $$PLUGIN_ASSETS |
| 47 |
assets.path += $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH |
| 48 |
|
| 49 |
qmldir.files += $$PWD/src/qmldir |
| 50 |
qmldir.path += $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH |
| 51 |
|
| 52 |
colorschemes.files = $$PWD/lib/color-schemes/* |
| 53 |
colorschemes.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH/color-schemes |
| 54 |
colorschemes2.files = $$PWD/lib/color-schemes/historic/* |
| 55 |
colorschemes2.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH/color-schemes/historic |
| 56 |
|
| 57 |
kblayouts.files = $$PWD/lib/kb-layouts/* |
| 58 |
kblayouts.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH/kb-layouts |
| 59 |
kblayouts2.files = $$PWD/lib/kb-layouts/historic/* |
| 60 |
kblayouts2.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH/kb-layouts/historic |
| 61 |
|
| 62 |
scrollbar.files = $$PWD/src/QMLTermScrollbar.qml |
| 63 |
scrollbar.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH |
| 64 |
|
| 65 |
INSTALLS += target qmldir assets colorschemes colorschemes2 kblayouts kblayouts2 scrollbar |