mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
CMake: Link necessary libraries for hosting plugins
The CoreAudioKit (and on macOS, AudioUnit) frameworks are required to host AudioUnit plugins. Hosts (especially those which don't use the `juce_audio_utils` module) should use the new `PLUGINHOST_AU` parameter to `juce_add_*` in order to add the correct preprocessor definition and link the necessary frameworks.
This commit is contained in:
parent
36a37c36bb
commit
5e5ac203b9
3 changed files with 27 additions and 2 deletions
|
|
@ -399,6 +399,12 @@ attributes directly to these creation functions, rather than adding them later.
|
|||
`AAX_ePlugInCategory_SWGenerators`, `AAX_ePlugInCategory_WrappedPlugin`,
|
||||
`AAX_ePlugInCategory_Effect`
|
||||
|
||||
- `PLUGINHOST_AU`
|
||||
- May be either TRUE or FALSE (defaults to FALSE). If TRUE, will add the preprocessor definition
|
||||
`JUCE_PLUGINHOST_AU=1` to the new target, and will link the macOS frameworks necessary for
|
||||
hosting plugins. Using this parameter should be preferred over using
|
||||
`target_compile_definitions` to manually set the `JUCE_PLUGINHOST_AU` preprocessor definition.
|
||||
|
||||
- `COPY_PLUGIN_AFTER_BUILD`
|
||||
- Whether or not to install the plugin to the current system after building. False by default.
|
||||
If you want all of the plugins in a subdirectory to be installed automatically after building,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue