bepzi / helm

A custom fork of Matt Tytel's Helm synthesizer
GNU General Public License v3.0
7 stars 0 forks source link

Improve how factory presets are included in the LV2 bundle #11

Open bepzi opened 3 years ago

bepzi commented 3 years ago

The LV2 .ttl generator, when it loads the Helm library, will ask it for a list of its current programs/factory presets. In the old build system, this worked by Helm checking at runtime whether or not it was installed, and if not, it would assume it was being run by the .ttl generator and look for the patches/ folder in the root of this repo.

When we switched to CMake, this stopped working reliably, because the relative path to the patches/ folder can change depending on the build configuration. I solved this with a preprocessor macro that hardcodes the absolute path at build time, but I don't like this because it's fragile and obviously not the right way to solve this problem.