New in version 3.0.
Specify project dependencies that should be installed automatically to libdeps_dir before environment processing. Multiple dependencies are allowed (multi-lines or separated with comma+space “, “).
If you have multiple build environments that depend on the same libraries, you can use Dynamic variables to use common configuration.
; one line definition (comma + space) [env:myenv] lib_deps = LIBRARY_1, LIBRARY_2, LIBRARY_N ; multi-line definition [env:myenv2] lib_deps = LIBRARY_1 LIBRARY_2 LIBRARY_N
[env:myenv] lib_deps = 13 PubSubClient ArduinoJson@~5.6,!=5.4 https://github.com/gioblu/PJON.git#v2.0 https://github.com/me-no-dev/ESPAsyncTCP.git
Specify libraries which should be ignored by Library Dependency Finder.
The correct value for this option is library name (not
folder name). In the most cases, library name is pre-defined in manifest file
module.json). The multiple
library names are allowed, split them with comma+space “, “.
[env:myenv] lib_ignore = SPI, Ethernet, mbed-fs
A list with extra directories/storages where Library Dependency Finder (LDF) will look for dependencies. Multiple paths are allowed. Please separate them using comma+space “, “.
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
[env:myenv] lib_extra_dirs = /common/libraries, /iot/libraries
New in version 3.0.
This option specifies how does Library Dependency Finder should analyze
#include directives). See Dependency Finder Mode for details.
[env:myenv] lib_ldf_mode = chain
Library compatibility mode allows to control strictness of Library Dependency Finder. More details Compatibility Mode.
By default, this value is set to
lib_compat_mode = 1 and means that LDF
will check only for framework compatibility.
[env:myenv] lib_compat_mode = 1
New in version 3.4.1.
Create an archive (
*.a, static library) from the object files and link it
into a firmware (program). This is default behavior of PlatformIO Build System
lib_archive = true).
lib_archive = false will instruct PIO Build System to link object
files directly (in-line). This could be useful if you need to override
symbols defined in framework or other libraries.
[env:myenv] lib_archive = false