Skip to content

Commit

Permalink
Do not store text files at the root of VST and AU bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Nov 14, 2020
1 parent 895e8f2 commit 96b4c49
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions vst/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,15 @@ else()
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}/Contents/${VST3_PACKAGE_ARCHITECTURE}-linux/$<0:>")
endif()

file(COPY "gpl-3.0.txt"
DESTINATION "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}")
# Copy the license
if(APPLE)
# on macOS, files are not permitted at the bundle root, during code signing
file(COPY "gpl-3.0.txt"
DESTINATION "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}/Contents/SharedSupport/License")
else()
file(COPY "gpl-3.0.txt"
DESTINATION "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}")
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
target_compile_options(${VSTPLUGIN_PRJ_NAME} PRIVATE
Expand Down Expand Up @@ -280,7 +287,7 @@ elseif(SFIZZ_AU)
DESTINATION "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}/Contents/Resources")

file(COPY "gpl-3.0.txt"
DESTINATION "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}")
DESTINATION "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}/Contents/SharedSupport/License")

# Add the resource fork
if (FALSE)
Expand Down

0 comments on commit 96b4c49

Please sign in to comment.