mirror of https://github.com/PCSX2/pcsx2.git
macOS:cmake: build plugins directly to app bundle
Copying them afterwards ended up in the wrong order with Xcode's code signing, causing unsigned plugins to get copied, which would break the later step of signing the whole bundle
This commit is contained in:
parent
2c8b2b48bd
commit
56b0026160
|
@ -130,11 +130,8 @@ macro(add_pcsx2_plugin lib srcs libs flags)
|
||||||
install(TARGETS ${lib} DESTINATION ${CMAKE_SOURCE_DIR}/bin/plugins)
|
install(TARGETS ${lib} DESTINATION ${CMAKE_SOURCE_DIR}/bin/plugins)
|
||||||
endif(PACKAGE_MODE)
|
endif(PACKAGE_MODE)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# Copy to app bundle
|
# Output to app bundle
|
||||||
add_custom_command(TARGET ${lib} POST_BUILD
|
set_target_properties(${lib} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "$<TARGET_FILE_DIR:PCSX2>/plugins")
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory "$<TARGET_FILE_DIR:PCSX2>/plugins"
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:${lib}>" "$<TARGET_FILE_DIR:PCSX2>/plugins/"
|
|
||||||
)
|
|
||||||
add_dependencies(pcsx2-postprocess-bundle ${lib})
|
add_dependencies(pcsx2-postprocess-bundle ${lib})
|
||||||
endif()
|
endif()
|
||||||
endmacro(add_pcsx2_plugin)
|
endmacro(add_pcsx2_plugin)
|
||||||
|
|
Loading…
Reference in New Issue