You have different pieces of code that you have to include or not depending on specific configurations on Platformio ?
This tutorial is made for you !
In this video, I use Platformio advanced scripting features to provide a configuration interface to your code libraries.
Example code available here: https://github.com/Luos-io/luos_engine
I’m sure you guys have other solutions, let’s talk about it!