diff -r bc046f5187fd -r 780ee91f4ffb MiniDisplay/minidisplay.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MiniDisplay/minidisplay.pro Tue May 27 17:14:22 2014 +0200 @@ -0,0 +1,44 @@ +TEMPLATE = lib +TARGET = MiniDisplay +QT += qml quick +CONFIG += qt plugin + +#DESTDIR = ../MiniDisplay + +# Avoid going to debug/release subdirectory +# so that our application will see the +# import path for the MiniDisplay module. +win32: DESTDIR = ./ + + +TARGET = $$qtLibraryTarget($$TARGET) +#uri = com.slions.minidisplay +uri = MiniDisplay + +# Input +SOURCES += \ + minidisplay_plugin.cpp \ + minidisplay.cpp + +HEADERS += \ + minidisplay_plugin.h \ + minidisplay.h + +OTHER_FILES = qmldir + +!equals(_PRO_FILE_PWD_, $$OUT_PWD) { + copy_qmldir.target = $$OUT_PWD/qmldir + copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir + copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\" + QMAKE_EXTRA_TARGETS += copy_qmldir + PRE_TARGETDEPS += $$copy_qmldir.target +} + +qmldir.files = qmldir +unix { + installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) + qmldir.path = $$installPath + target.path = $$installPath + INSTALLS += target qmldir +} +