1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00:00

Set correct include_dir in platformio.ini (#2999)

This commit is contained in:
Oxan van Leeuwen
2022-01-04 21:59:34 +01:00
committed by GitHub
parent 193d3e0206
commit ffea3597f4
2 changed files with 15 additions and 6 deletions

View File

@@ -5,8 +5,13 @@
[platformio]
default_envs = esp8266, esp32, esp32-idf
; Ideally, we want src_dir to be the root directory of the repository, to mimic the runtime build
; environment as best as possible. Unfortunately, the ESP-IDF toolchain really doesn't like this
; being the root directory. Instead, set esphome/ as the source directory, all our sources are in
; there anyway. Set the root directory as the include_dir, so that the esphome/ directory is on the
; include path.
src_dir = esphome
include_dir =
include_dir = .
[runtime]
; This are the flags as set by the runtime.