Build an Arduino library for ESP8266 locally

Hm… I’ll counter with another question, but for @ivankravets… which could answer this for both of us… as I had tried to get this configuration working before but it wouldn’t play ball, and I am so close now it’s not funny.

Ivan, I managed to get my pet library to compiles examples in different envs using the following, but only if I rename the *.ino files to *.cpp. Is there anything I’m missing there? Is it possible to persuade PIO to accept *.ino files as well? .ino files are accepted if I point the [platformio] src_dir to a folder like $PROJECT_DIR/examples/timeouts, but that doesn’t help as that’s the global setting.

platformio.ini contents
[platformio]
src_dir = $PROJECT_DIR/examples
lib_dir = $PROJECT_DIR

[env]
platform = atmelavr
framework = arduino
board = uno

[env:example-blinkingLeds]
src_filter = +<blinkingLeds/>

[env:example-GettingStarted]
src_filter = +<GettingStarted/>

[env:example-timeouts]
src_filter = +<timeouts/>

[env:example-timingComparison]
src_filter = +<timingComparison/>

Edit: Just linking this topic, as it looks to be another approach to the problem, but if the OP can get it working again, looks to be neater / more automated.