如何向 PlatformIO 项目添加额外包含目录
在 platformio.ini 中,添加以下构建标志:
platformio_build_flags.ini
build_flags = -I../my-extra-include-dir使用此方法,你还可以添加多个包含目录:
platformio_build_flags_multiple.ini
build_flags = -I../my-first-include-dir -I../my-second-include-dir所有路径都相对于 platformio.ini 所在的目录。
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