I’m attempting to create a common source folder that is used across multiple projects. I tried the lib_extra_dirs command, but I don’t understand how the project folder needs to be setup for platformio to properly detect it. In particular, I see this warning about that command:
This is a not direct path to a library with source code. It should be a path to storage that contains libraries grouped by folders. For example, D:\PlatformIO\extra\libraries
but not D:\PlatformIO\extra\libraries\FooLibrary
.
I do want to link directly to a library with source code, so probably this isn’t the correct option. The other method I’ve seen suggested is to update the build_flags w/ the the necessary include paths. Unfortunately, while the headers are now resolved, this still doesn’t work as platformio doesn’t build the .c and .cpp files and I’m not certain how to tell it about an additional src folder.
Can someone please help direct me as to the proper method to accomplish this?