如何在 PlatformIO 中从本地文件系统添加库依赖
如果你想将库依赖添加到 lib_deps,其中库来自本地文件系统,只需将完整路径添加到 lib_deps
platformio_libdeps.ini
lib_deps =
/home/user/MyCustomLib这在开发库时非常方便,因为它允许你只需保存源代码中的更改并重新构建主项目,而无需先发布和更新包。
**注意你需要 Clean 然后 Build 或 Upload 以从本地目录更新文件。**除非你 Clean 然后重新构建,否则 PlatformIO 会缓存它们!
Check out similar posts by category:
PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow