Browse Source

CMake: Correctly set AUv3 product type

tags/2021-05-28
reuk 4 years ago
parent
commit
0341f4d24e
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      extras/Build/CMake/JUCEUtils.cmake

+ 1
- 5
extras/Build/CMake/JUCEUtils.cmake View File

@@ -1316,9 +1316,9 @@ function(_juce_set_plugin_target_properties shared_code_target kind)
_juce_copy_after_build(${shared_code_target} ${target_name} "${output_path}" JUCE_AU_COPY_DIR) _juce_copy_after_build(${shared_code_target} ${target_name} "${output_path}" JUCE_AU_COPY_DIR)
elseif(kind STREQUAL "AUv3") elseif(kind STREQUAL "AUv3")
set_target_properties(${target_name} PROPERTIES set_target_properties(${target_name} PROPERTIES
XCODE_PRODUCT_TYPE "com.apple.product-type.app-extension"
BUNDLE_EXTENSION appex BUNDLE_EXTENSION appex
XCODE_ATTRIBUTE_WRAPPER_EXTENSION appex XCODE_ATTRIBUTE_WRAPPER_EXTENSION appex
XCODE_ATTRIBUTE_PRODUCT_TYPE "com.apple.product-type.app-extension"
XCODE_ATTRIBUTE_GENERATE_PKGINFO_FILE YES) XCODE_ATTRIBUTE_GENERATE_PKGINFO_FILE YES)
elseif(kind STREQUAL "AAX") elseif(kind STREQUAL "AAX")
set_target_properties(${target_name} PROPERTIES set_target_properties(${target_name} PROPERTIES
@@ -1627,10 +1627,6 @@ function(_juce_configure_plugin_targets target)
target_link_libraries(${target}_AAX PRIVATE juce_aax_sdk) target_link_libraries(${target}_AAX PRIVATE juce_aax_sdk)
endif() endif()


if(TARGET ${target}_AUv3)
target_link_libraries(${target}_AUv3 PUBLIC -fapplication-extension "-e _NSExtensionMain")
endif()

if((TARGET ${target}_AUv3) AND (TARGET ${target}_Standalone)) if((TARGET ${target}_AUv3) AND (TARGET ${target}_Standalone))
add_dependencies(${target}_Standalone ${target}_AUv3) add_dependencies(${target}_Standalone ${target}_AUv3)
# Copy the AUv3 into the Standalone app bundle # Copy the AUv3 into the Standalone app bundle


Loading…
Cancel
Save