From 7f7a6a22e44bb20282258e3e7474c6e86effc2d6 2012-04-12 13:21:50 From: Tero Ahola Date: 2012-04-12 13:21:50 Subject: [PATCH] Simplified QML plugin QMAKE_POST_LINK --- diff --git a/qmlplugin/qmlplugin.pro b/qmlplugin/qmlplugin.pro index a31f8e8..b7a46db 100644 --- a/qmlplugin/qmlplugin.pro +++ b/qmlplugin/qmlplugin.pro @@ -46,15 +46,7 @@ qmldir.files += $$PWD/qmldir qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH INSTALLS += target qmldir -!mac { - FILE = $$PWD/qmldir - win32:{FILE = $$replace(FILE, "/","\\")} - QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_PLUGIN_DIR -}else{ - # Hack to make qml plugins available as internal build versions - exists($$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib") { - QMAKE_POST_LINK += " & $$QMAKE_COPY qmldir $$CHART_BUILD_PLUGIN_DIR" - } -} - - +FILE = $$PWD/qmldir +win32:{FILE = $$replace(FILE, "/","\\")} +mac: QMAKE_POST_LINK += " & " +QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_PLUGIN_DIR