diff options
Diffstat (limited to 'examples/quick/tutorials/gettingStartedQml/filedialog/filedialog.pro')
-rw-r--r-- | examples/quick/tutorials/gettingStartedQml/filedialog/filedialog.pro | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/examples/quick/tutorials/gettingStartedQml/filedialog/filedialog.pro b/examples/quick/tutorials/gettingStartedQml/filedialog/filedialog.pro index da06975e3b..0886f37b1f 100644 --- a/examples/quick/tutorials/gettingStartedQml/filedialog/filedialog.pro +++ b/examples/quick/tutorials/gettingStartedQml/filedialog/filedialog.pro @@ -2,21 +2,32 @@ TEMPLATE = lib CONFIG += plugin QT += qml -DESTDIR += ../plugins +DESTDIR += ../imports/FileDialog OBJECTS_DIR = tmp MOC_DIR = tmp -TARGET = FileDialog +TARGET = filedialogplugin -HEADERS += directory.h \ +HEADERS += \ + directory.h \ file.h \ dialogPlugin.h -SOURCES += directory.cpp \ +SOURCES += \ + directory.cpp \ file.cpp \ dialogPlugin.cpp -target.path = $$[QT_INSTALL_EXAMPLES]/quick/tutorials/gettingStartedQml/filedialog -qml.files = qmldir -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/tutorials/gettingStartedQml/filedialog -INSTALLS += target qml +OTHER_FILES += qmldir + +copyfile = $$PWD/qmldir +copydest = $$DESTDIR + +# On Windows, use backslashes as directory separators +win32: { + copyfile ~= s,/,\\,g + copydest ~= s,/,\\,g +} + +# Copy the qmldir file to the same folder as the plugin binary +QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$copyfile) $$quote($$copydest) $$escape_expand(\\n\\t) |