I have a multi platform-project where I want to support both arduino and esp-idf (and possibly some more in the future). The esp-idf system uses cmake for its building chain, wich works great, except it doesn’t allow the processing of libraries (or esp-components) in the same way (i.e. it doesn’t know about the library.json file).
I have a library with extra-scripts I would like to run based on a custom-target of the main-project.
Is there a way to add a custom target to the main project which triggers the default pio-build-chain so it would call this extrascript, regardless of what build-chain is used?