https://github.com/johnnovak/clap-tutorial
CLAP plugin tutorial
https://github.com/johnnovak/clap-tutorial
Last synced: 3 months ago
JSON representation
CLAP plugin tutorial
- Host: GitHub
- URL: https://github.com/johnnovak/clap-tutorial
- Owner: johnnovak
- License: bsd-3-clause
- Created: 2024-09-22T08:59:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-27T07:37:58.000Z (8 months ago)
- Last Synced: 2025-03-29T06:51:35.683Z (4 months ago)
- Language: C
- Size: 169 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLAP plugin tutorial
This is an adaptation for [nakst's excellent CLAP plugin
tutorial](https://nakst.gitlab.io/tutorial/clap-part-1.html) for C++20, CMake
and vcpkg.## Prerequisites
- vcpkg
### Install vcpkg
If you don't have vcpkg installed yet:
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg && bootstrap-vcpkg.shThen append this to your `.bashrc` or `.zshrc`:
export VCPKG_ROOT=
export PATH=$VCPKG_ROOT:$PATHOn Windows, run `bootstrap-vcpkg.bat` instead and set the `PATH` Windows
enviroment variable accordingly.## Building
Configure the project:
cmake --preset=default
Build the project (output will be in the `build/` subdirectory):
cmake --build build
To clean the `build` directory:
cmake --build build --target clean
To nuke all local files on the `.gitignore` list:
git clean -dfX
## Useful references
- [Official CMake Tutorial](https://cmake.org/cmake/help/latest/guide/tutorial/index.html)
- [Microsofts's CMake & vcpks tutorial](https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-cmd)
- [Tremus's CPLUG – C wrapper for VST3, AUv2, CLAP audio plugin formats](https://github.com/Tremus/CPLUG)
- [tobanteAudio's C++ CLAP examples](https://github.com/tobanteAudio/clap-examples/tree/main)