sl@2
|
1 |
TEMPLATE = lib
|
sl@2
|
2 |
TARGET = MiniDisplay
|
sl@2
|
3 |
QT += qml quick
|
sl@2
|
4 |
CONFIG += qt plugin
|
sl@2
|
5 |
|
sl@2
|
6 |
#DESTDIR = ../MiniDisplay
|
sl@2
|
7 |
|
sl@2
|
8 |
# Avoid going to debug/release subdirectory
|
sl@2
|
9 |
# so that our application will see the
|
sl@2
|
10 |
# import path for the MiniDisplay module.
|
sl@2
|
11 |
win32: DESTDIR = ./
|
sl@2
|
12 |
|
sl@2
|
13 |
|
sl@2
|
14 |
TARGET = $$qtLibraryTarget($$TARGET)
|
sl@2
|
15 |
#uri = com.slions.minidisplay
|
sl@2
|
16 |
uri = MiniDisplay
|
sl@2
|
17 |
|
sl@2
|
18 |
# Input
|
sl@2
|
19 |
SOURCES += \
|
sl@2
|
20 |
minidisplay_plugin.cpp \
|
sl@2
|
21 |
minidisplay.cpp
|
sl@2
|
22 |
|
sl@2
|
23 |
HEADERS += \
|
sl@2
|
24 |
minidisplay_plugin.h \
|
sl@2
|
25 |
minidisplay.h
|
sl@2
|
26 |
|
sl@2
|
27 |
OTHER_FILES = qmldir
|
sl@2
|
28 |
|
sl@2
|
29 |
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
|
sl@2
|
30 |
copy_qmldir.target = $$OUT_PWD/qmldir
|
sl@2
|
31 |
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
|
sl@2
|
32 |
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
|
sl@2
|
33 |
QMAKE_EXTRA_TARGETS += copy_qmldir
|
sl@2
|
34 |
PRE_TARGETDEPS += $$copy_qmldir.target
|
sl@2
|
35 |
}
|
sl@2
|
36 |
|
sl@2
|
37 |
qmldir.files = qmldir
|
sl@2
|
38 |
unix {
|
sl@2
|
39 |
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
|
sl@2
|
40 |
qmldir.path = $$installPath
|
sl@2
|
41 |
target.path = $$installPath
|
sl@2
|
42 |
INSTALLS += target qmldir
|
sl@2
|
43 |
}
|
sl@2
|
44 |
|