platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.79k stars 784 forks source link

Nested Base Environments in platformio.ini #3891

Closed fazerlicourice7 closed 3 years ago

fazerlicourice7 commented 3 years ago

[env:cryo] lib_deps = adafruit/Adafruit MCP9600 Library@^1.1.1

[env:cryo:E1_coldflow] src_filter = -<*> + build_flags = -DHAL=teensy

[env:cryo:E1_coldflow_v2] src_filter = -<*> + build_flags = -DHAL=teensy



------------------------------------------------------------------

### Additional info

Currently, the single default env is pretty restrictive, I'd like the ability to dynamically change dependencies w/out having to change the dependencies on every single image. Additionally this is very useful for doing embedded vs native (w/ a HAL) development.
ivankravets commented 3 years ago

You need https://docs.platformio.org/en/latest/projectconf/section_env_advanced.html#extends