Skip to content

Commit

Permalink
Bundle only the QCA plugins that are used on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Oct 1, 2015
1 parent 2e011bc commit 1a22b14
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mac/cmake/1qt.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,12 @@ ENDIF ()
EXECUTE_PROCESS (COMMAND mkdir -p "${QPLUGDIR}/../crypto")
FIND_QCA_PLUGIN_DIR (1)
MESSAGE (STATUS "Updating QCA plugins with QCA library path in ${QCA_PLUGIN_DIR} ...")
FILE (GLOB QCA_PLUGINS RELATIVE "${QCA_PLUGIN_DIR}/crypto" "${QCA_PLUGIN_DIR}/crypto/libqca*")
# don't copy over any unneeded plugins
SET(QCA_PLUGINS logger ossl softstore)
FOREACH (qca_plugin ${QCA_PLUGINS})
EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "${QCA_PLUGIN_DIR}/crypto/${qca_plugin}" "${QPLUGDIR}/../crypto/")
EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "${QCA_PLUGIN_DIR}/crypto/libqca-${qca_plugin}.dylib" "${QPLUGDIR}/../crypto/")
IF (QCA_CHG)
INSTALLNAMETOOL_CHANGE ("${QCA_CHG}" "${QCA_CHG_TO}" "${QPLUGDIR}/../crypto/${qca_plugin}")
INSTALLNAMETOOL_CHANGE ("${QCA_CHG}" "${QCA_CHG_TO}" "${QPLUGDIR}/../crypto/libqca-${qca_plugin}.dylib")
ENDIF ()
ENDFOREACH ()

Expand Down Expand Up @@ -396,7 +397,7 @@ FOREACH (QFW ${QTLISTQG})
ENDIF ()
# qca plugins
FOREACH (qca_plugin ${QCA_PLUGINS})
INSTALLNAMETOOL_CHANGE ("${QFW_CHG}" "${QFW_CHG_TO}" "${QPLUGDIR}/../crypto/${qca_plugin}")
INSTALLNAMETOOL_CHANGE ("${QFW_CHG}" "${QFW_CHG_TO}" "${QPLUGDIR}/../crypto/libqca-${qca_plugin}.dylib")
ENDFOREACH ()
# osg qfont plugin
IF (@HAVE_OSGEARTHQT@)
Expand Down

0 comments on commit 1a22b14

Please sign in to comment.