This repository relates to one of my blog posts.
This repository contains whatever is needed to compile a minimal CLAP plug-in in Zig, which free-audio's clap-info accepts. It's made to be built on MacOS, perhaps other OSes will follow someday. It has not been tested in a digital audio workstation (DAW) yet.
When cloning the repository, make sure to include --recursive-submodules to get the clap and clap-info submodules.
Afterwards, run
cd tools/clap-info && git submodule init && git submodule updateto fetch clap-info's dependencies.
Make sure you've installed Zig and CMake.
To compile the plug-in to a shared library (outputting it in a subfolder of the template plugin.clap bundle):
make buildTo compile the plug-in and clap-info, and then also run clap-info to validate the plug-in:
make run-clap-info