diff options
Diffstat (limited to 'qmake-features/qmlplugin.prf')
-rw-r--r-- | qmake-features/qmlplugin.prf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qmake-features/qmlplugin.prf b/qmake-features/qmlplugin.prf new file mode 100644 index 00000000..ee5f462e --- /dev/null +++ b/qmake-features/qmlplugin.prf @@ -0,0 +1,25 @@ +# Add a long padded rpath, so the installer can replace it with a relative rpath +QMAKE_RPATHDIR += "$$INSTALL_PREFIX/long_padding/long_padding/long_padding/long_padding/long_padding\ + long_padding/long_padding/long_padding/long_padding/long_padding/long_padding/" + +TARGET = $$qtLibraryTarget($$TARGET) +DESTDIR = $$BUILD_DIR/imports/shared/$$replace(uri, \\., /) +CONFIG += skip_target_version_ext + +OTHER_FILES = qmldir + +!equals(_PRO_FILE_PWD_, $$OUT_PWD) { + copy_qmldir.target = $$replace(DESTDIR, /, $$QMAKE_DIR_SEP)$${QMAKE_DIR_SEP}qmldir + copy_qmldir.depends = $$replace(_PRO_FILE_PWD_, /, $$QMAKE_DIR_SEP)$${QMAKE_DIR_SEP}qmldir + copy_qmldir.commands = $(COPY_FILE) \"$$copy_qmldir.depends\" \"$$copy_qmldir.target\" + QMAKE_EXTRA_TARGETS += copy_qmldir + PRE_TARGETDEPS += $$copy_qmldir.target +} + +include(../config.pri) + +qmldir.files = qmldir +installPath = $$INSTALL_PREFIX/triton/imports/shared/$$replace(uri, \\., /) +qmldir.path = $$installPath +target.path = $$installPath +INSTALLS += target qmldir |