1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

CMake: Update documentation with archiving instructions for AUv3

This commit is contained in:
reuk 2021-02-17 11:19:04 +00:00
parent fd1a9b6d14
commit dc6b4ee43f
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -143,6 +143,21 @@ If the "Product -> Archive" action isn't working, the following steps may help c
XCODE_ATTRIBUTE_SKIP_INSTALL "NO")
```
To archive an AUv3 plugin, `XCODE_ATTRIBUTE_INSTALL_PATH` must point to the PlugIns directory of the
final app bundle but only for the AUv3 target. In code, that might look like this:
set_target_properties(my_plugin_Standalone PROPERTIES
XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)"
XCODE_ATTRIBUTE_SKIP_INSTALL "NO")
get_target_property(output_name my_plugin_Standalone OUTPUT_NAME)
# On iOS, the AUv3 should go in <bundle_dir>/PlugIns
# On macOS, the AUv3 should go in <bundle_dir>/Contents/PlugIns
set_target_properties(my_plugin_AUv3 PROPERTIES
XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)/${output_name}.app/PlugIns"
XCODE_ATTRIBUTE_SKIP_INSTALL "NO")
### Building universal binaries for macOS
Building universal binaries that will run on both arm64 and x86_64 can be achieved by