Abandoned: macOS: support QuickLook preview #107014
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue