Hey! So, I want to have multiple independent sources (but with access to the same libs) in one PIO project, switchable via ENV.
Looking into the docs and discussions here I thought using build_src_filter
would be pretty straight forward. But it doesn’t work.
[env]
platform = https://github.com/Community-PIO-CH32V/platform-ch32v.git
[env:project1]
build_src_filter = +<project1>
[env:project2]
build_src_filter = +<project2>
This just gives me Error: Nothing to build. Please put your source code files to the 'projectroot\src' folder
for both environments. I tried many variations of the filter but the result is the same.
My project structure is simply the standard with src
deleted and instead multiple projectX
in it.
How do I use this properly?