From be2c59c691663fdeb2c33fef503304c621edf002 Mon Sep 17 00:00:00 2001 From: Pete Savage Date: Mon, 26 Jul 2021 20:30:52 +0100 Subject: [PATCH 1/3] Add source permissions to preserve file perms --- plugins/lv2/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/lv2/CMakeLists.txt b/plugins/lv2/CMakeLists.txt index a8d97bb5..4bf68051 100644 --- a/plugins/lv2/CMakeLists.txt +++ b/plugins/lv2/CMakeLists.txt @@ -117,7 +117,8 @@ endif() # Installation if(NOT MSVC) install(DIRECTORY ${PROJECT_BINARY_DIR} DESTINATION ${LV2PLUGIN_INSTALL_DIR} - COMPONENT "lv2") + COMPONENT "lv2" + USE_SOURCE_PERMISSIONS) bundle_dylibs(lv2 "${LV2PLUGIN_INSTALL_DIR}/${PROJECT_NAME}.lv2/Contents/Binary/sfizz.so" COMPONENT "lv2") From c3bbe3b04e4a799bbff8c776dad7229cd857185a Mon Sep 17 00:00:00 2001 From: Pete Savage Date: Mon, 26 Jul 2021 20:31:26 +0100 Subject: [PATCH 2/3] Add source permissions to preserve file perms --- plugins/puredata/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/puredata/CMakeLists.txt b/plugins/puredata/CMakeLists.txt index c8a33a65..c8c6fd1f 100644 --- a/plugins/puredata/CMakeLists.txt +++ b/plugins/puredata/CMakeLists.txt @@ -49,7 +49,8 @@ copy_puredata_resources(sfizz_puredata # Installation if(NOT MSVC) install(DIRECTORY "${PUREDATA_BINARY_DIR}" DESTINATION "${PDPLUGIN_INSTALL_DIR}" - COMPONENT "puredata") + COMPONENT "puredata" + USE_SOURCE_PERMISSIONS) bundle_dylibs(puredata "${PDPLUGIN_INSTALL_DIR}/sfizz/sfizz${PUREDATA_SUFFIX}" COMPONENT "puredata") From 30c2881c2e389b64471b241d6a9f597954cad4ca Mon Sep 17 00:00:00 2001 From: Pete Savage Date: Mon, 26 Jul 2021 20:32:48 +0100 Subject: [PATCH 3/3] Add source permissions to preserve file perms --- plugins/vst/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/vst/CMakeLists.txt b/plugins/vst/CMakeLists.txt index 894975f4..63565809 100644 --- a/plugins/vst/CMakeLists.txt +++ b/plugins/vst/CMakeLists.txt @@ -136,7 +136,8 @@ if(SFIZZ_VST) if(NOT MSVC) install(DIRECTORY "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}" DESTINATION "${VSTPLUGIN_INSTALL_DIR}" - COMPONENT "vst") + COMPONENT "vst" + USE_SOURCE_PERMISSIONS) bundle_dylibs(vst "${VSTPLUGIN_INSTALL_DIR}/${VSTPLUGIN_BUNDLE_NAME}/Contents/MacOS/sfizz" COMPONENT "vst") @@ -284,7 +285,8 @@ elseif(SFIZZ_AU) if(AUPLUGIN_INSTALL_DIR) install(DIRECTORY "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}" DESTINATION "${AUPLUGIN_INSTALL_DIR}" - COMPONENT "au") + COMPONENT "au" + USE_SOURCE_PERMISSIONS) bundle_dylibs(au "${AUPLUGIN_INSTALL_DIR}/${AUPLUGIN_BUNDLE_NAME}/Contents/MacOS/sfizz" COMPONENT "au") @@ -355,7 +357,8 @@ if(SFIZZ_VST2) if(VST2PLUGIN_INSTALL_DIR) install(DIRECTORY "${PROJECT_BINARY_DIR}/${VST2PLUGIN_BUNDLE_NAME}" DESTINATION "${VST2PLUGIN_INSTALL_DIR}" - COMPONENT "vst2") + COMPONENT "vst2" + USE_SOURCE_PERMISSIONS) if(APPLE) bundle_dylibs(vst2 "${VST2PLUGIN_INSTALL_DIR}/${VST2PLUGIN_BUNDLE_NAME}/Contents/Binary/sfizz.${CMAKE_SHARED_MODULE_SUFFIX}"