mirror of https://github.com/mgba-emu/mgba.git
Qt: Replace macdeployqt with tools/deploy-mac.py
This commit is contained in:
parent
66a1af39be
commit
27eb75fcde
|
@ -97,9 +97,16 @@ install(TARGETS ${BINARY_NAME}-qt
|
||||||
if(APPLE OR WIN32)
|
if(APPLE OR WIN32)
|
||||||
set_target_properties(${BINARY_NAME}-qt PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
set_target_properties(${BINARY_NAME}-qt PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
||||||
endif()
|
endif()
|
||||||
if(APPLE AND MACDEPLOYQT)
|
if(APPLE)
|
||||||
add_custom_command(TARGET ${BINARY_NAME}-qt POST_BUILD COMMAND ${MACDEPLOYQT} ${PROJECT_NAME}.app)
|
set(DEPLOY_OPTIONS -p platforms/libqcocoa.dylib,accessible/libqtaccessiblewidgets.dylib,audio/libqtaudio_coreaudio.dylib)
|
||||||
add_custom_command(TARGET ${BINARY_NAME}-qt POST_BUILD COMMAND rm -r ${PROJECT_NAME}.app/Contents/Plugins/bearer)
|
if(NOT CMAKE_INSTALL_NAME_TOOL EQUAL "install_name_tool")
|
||||||
add_custom_command(TARGET ${BINARY_NAME}-qt POST_BUILD COMMAND rm -r ${PROJECT_NAME}.app/Contents/Plugins/imageformats)
|
set(DEPLOY_OPTIONS ${DEPLOY_OPTIONS} -I ${CMAKE_INSTALL_NAME_TOOL})
|
||||||
add_custom_command(TARGET ${BINARY_NAME}-qt POST_BUILD COMMAND rm -r ${PROJECT_NAME}.app/Contents/Plugins/printsupport)
|
endif()
|
||||||
|
if(DEFINED CMAKE_OTOOL AND NOT CMAKE_OTOOL EQUAL "otool")
|
||||||
|
set(DEPLOY_OPTIONS ${DEPLOY_OPTIONS} -O ${CMAKE_OTOOL})
|
||||||
|
endif()
|
||||||
|
if(DEFINED CROSS_ROOT)
|
||||||
|
set(DEPLOY_OPTIONS ${DEPLOY_OPTIONS} -R ${CROSS_ROOT})
|
||||||
|
endif()
|
||||||
|
add_custom_command(TARGET ${BINARY_NAME}-qt POST_BUILD COMMAND ${CMAKE_SOURCE_DIR}/tools/deploy-mac.py ${DEPLOY_OPTIONS} ${PROJECT_NAME}.app)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue