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