Browse Source

CMake: Update documentation with archiving instructions for AUv3

tags/2021-05-28
reuk 4 years ago
parent
commit
dc6b4ee43f
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      docs/CMake API.md

+ 15
- 0
docs/CMake API.md 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


Loading…
Cancel
Save