Skip to content

Commit 1a22b14

Browse files
committedOct 1, 2015
Bundle only the QCA plugins that are used on Mac
1 parent 2e011bc commit 1a22b14

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎mac/cmake/1qt.cmake.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,12 @@ ENDIF ()
197197
EXECUTE_PROCESS (COMMAND mkdir -p "${QPLUGDIR}/../crypto")
198198
FIND_QCA_PLUGIN_DIR (1)
199199
MESSAGE (STATUS "Updating QCA plugins with QCA library path in ${QCA_PLUGIN_DIR} ...")
200-
FILE (GLOB QCA_PLUGINS RELATIVE "${QCA_PLUGIN_DIR}/crypto" "${QCA_PLUGIN_DIR}/crypto/libqca*")
200+
# don't copy over any unneeded plugins
201+
SET(QCA_PLUGINS logger ossl softstore)
201202
FOREACH (qca_plugin ${QCA_PLUGINS})
202-
EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "${QCA_PLUGIN_DIR}/crypto/${qca_plugin}" "${QPLUGDIR}/../crypto/")
203+
EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "${QCA_PLUGIN_DIR}/crypto/libqca-${qca_plugin}.dylib" "${QPLUGDIR}/../crypto/")
203204
IF (QCA_CHG)
204-
INSTALLNAMETOOL_CHANGE ("${QCA_CHG}" "${QCA_CHG_TO}" "${QPLUGDIR}/../crypto/${qca_plugin}")
205+
INSTALLNAMETOOL_CHANGE ("${QCA_CHG}" "${QCA_CHG_TO}" "${QPLUGDIR}/../crypto/libqca-${qca_plugin}.dylib")
205206
ENDIF ()
206207
ENDFOREACH ()
207208

@@ -396,7 +397,7 @@ FOREACH (QFW ${QTLISTQG})
396397
ENDIF ()
397398
# qca plugins
398399
FOREACH (qca_plugin ${QCA_PLUGINS})
399-
INSTALLNAMETOOL_CHANGE ("${QFW_CHG}" "${QFW_CHG_TO}" "${QPLUGDIR}/../crypto/${qca_plugin}")
400+
INSTALLNAMETOOL_CHANGE ("${QFW_CHG}" "${QFW_CHG_TO}" "${QPLUGDIR}/../crypto/libqca-${qca_plugin}.dylib")
400401
ENDFOREACH ()
401402
# osg qfont plugin
402403
IF (@HAVE_OSGEARTHQT@)

0 commit comments

Comments
 (0)
Please sign in to comment.