Excluding directories in internal libraries

Hi,

Is there some way to exclude specific source code files located inside an internal library?

I tried to add a library.json with a exclude directive inside the internal library directory but without success.

Regards,

If you talk about a local library, then we have an issue for that #289.

If you are going to add library to PlatformIO Registry, you can use exclude field from library.json.

I see it’s implemented now. Is there also a possibility to define the src_filter for the local library in platformio.ini instead of library.json, because I need an exclude just for a specific environment…

EDIT: I found this meanwhile, will give it a try.