1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/MiniDisplay/minidisplay.pro Tue May 27 17:14:22 2014 +0200
1.3 @@ -0,0 +1,44 @@
1.4 +TEMPLATE = lib
1.5 +TARGET = MiniDisplay
1.6 +QT += qml quick
1.7 +CONFIG += qt plugin
1.8 +
1.9 +#DESTDIR = ../MiniDisplay
1.10 +
1.11 +# Avoid going to debug/release subdirectory
1.12 +# so that our application will see the
1.13 +# import path for the MiniDisplay module.
1.14 +win32: DESTDIR = ./
1.15 +
1.16 +
1.17 +TARGET = $$qtLibraryTarget($$TARGET)
1.18 +#uri = com.slions.minidisplay
1.19 +uri = MiniDisplay
1.20 +
1.21 +# Input
1.22 +SOURCES += \
1.23 + minidisplay_plugin.cpp \
1.24 + minidisplay.cpp
1.25 +
1.26 +HEADERS += \
1.27 + minidisplay_plugin.h \
1.28 + minidisplay.h
1.29 +
1.30 +OTHER_FILES = qmldir
1.31 +
1.32 +!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
1.33 + copy_qmldir.target = $$OUT_PWD/qmldir
1.34 + copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
1.35 + copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
1.36 + QMAKE_EXTRA_TARGETS += copy_qmldir
1.37 + PRE_TARGETDEPS += $$copy_qmldir.target
1.38 +}
1.39 +
1.40 +qmldir.files = qmldir
1.41 +unix {
1.42 + installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
1.43 + qmldir.path = $$installPath
1.44 + target.path = $$installPath
1.45 + INSTALLS += target qmldir
1.46 +}
1.47 +