Abandoned: macOS: support QuickLook preview #107014

Closed
Ankit Meel wants to merge 8 commits from ankitm:ankitm/quicklook into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 9 additions and 6 deletions
Showing only changes of commit b437b0c80a - Show all commits

View File

@ -82,7 +82,8 @@ if(APPLE)
set_target_properties(blender-thumbnailer PROPERTIES
XCODE_PRODUCT_TYPE com.apple.product-type.app-extension)
set_target_properties(blender-thumbnailer PROPERTIES
BUNDLE_EXTENSION appex)
BUNDLE_EXTENSION appex
BL_CODESIGN_ENTITLEMENTS ${CMAKE_CURRENT_SOURCE_DIR}/src/ThumbnailExtensionMacOS.entitlements)
setup_platform_linker_flags(blender-thumbnailer)
set_target_properties(blender-thumbnailer PROPERTIES BUILD_WITH_INSTALL_RPATH true)
list(APPEND LIB

View File

@ -1354,11 +1354,13 @@ elseif(APPLE)
TARGETS blender-thumbnailer
DESTINATION Blender.app/Contents/Plugins
)
# get_target_property(XIB_RESOURCE blender-thumbnailer XIB_RESOURCE)
# install_dir(
# ${XIB_RESOURCE}
# Blender.app/Contents/Plugins/blender-thumbnailer.appex/Contents/Resources
# )
get_target_property(BL_CODESIGN_ENTITLEMENTS blender-thumbnailer BL_CODESIGN_ENTITLEMENTS)
install(CODE
"message(STATUS \"Codesigning thumbnailer with entitlements: ${BL_CODESIGN_ENTITLEMENTS}\")")
install(CODE
"execute_process(
COMMAND codesign --entitlements \"${BL_CODESIGN_ENTITLEMENTS}\" --force --deep --sign - \"${EXECUTABLE_OUTPUT_PATH}/Blender.app/Contents/Plugins/blender-thumbnailer.appex\"
)")
endif()
if(PLATFORM_BUNDLED_LIBRARIES AND TARGETDIR_LIB)