-
Notifications
You must be signed in to change notification settings - Fork 23
/
platformio.ini
102 lines (90 loc) · 3 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
; This PlatformIO project is for development purposes *only*: clang-tidy derives its compilation
; database from here, and IDEs like CLion and VSCode also use it. This does not actually create a
; usable binary.
; It's *not* used during runtime.
[platformio]
default_envs = esp32-idf
src_dir = esphome
include_dir = .esphome_repo
; This are just the build flags as set by the runtime.
[flags:runtime]
build_flags =
-Wno-unused-but-set-variable
-Wno-sign-compare
; This are just the build flags for clang-tidy.
[flags:clangtidy]
build_flags =
-Wall
-Wextra
-Wunreachable-code
-Wfor-loop-analysis
-Wshadow-field
-Wshadow-field-in-constructor
-Wshadow-uncaptured-local
; This are common settings for all environments.
[common]
lib_deps =
esphome/[email protected] ; api
makuna/[email protected] ; neopixelbus
esphome/[email protected] ; improv_serial / esp32_improv
bblanchon/[email protected] ; json
wjtje/[email protected] ; qr_code
functionpointer/[email protected] ; mlx90393
pavlodn/[email protected] ; haier
; This is using the repository until a new release is published to PlatformIO
https://github.com/Sensirion/arduino-gas-index-algorithm.git#3.2.1 ; Sensirion Gas Index Algorithm Arduino Library
build_flags =
-DESPHOME_LOG_LEVEL=ESPHOME_LOG_LEVEL_VERY_VERBOSE
;src_filter =
; +<./>
; +<../tests/dummy_main.cpp>
; +<../.temp/all-include.cpp>
lib_ldf_mode = off
; This are common settings for all IDF-framework based environments.
[common:idf]
extends = common
build_flags =
${common.build_flags}
-DUSE_ESP_IDF
; This are common settings for the ESP32 (all variants) using IDF.
[common:esp32-idf]
extends = common:idf
platform = platformio/[email protected]
platform_packages =
platformio/framework-espidf@~3.40406.0
espressif/[email protected]
;platform = platformio/[email protected]
;platform_packages =
; platformio/framework-espidf@~3.50102.0
; espressif/[email protected]
framework = espidf
lib_deps =
${common:idf.lib_deps}
espressif/[email protected] ; esp32_camera
droscy/[email protected] ; wireguard
;audio_pipeline
build_flags =
${common:idf.build_flags}
-Wno-nonnull-compare
-DUSE_ESP32
-DUSE_ESP32_FRAMEWORK_ESP_IDF
;extra_scripts = post:esphome/components/esp32/post_build.py.script
[env:esp32-idf]
extends = common:esp32-idf
board = esp32dev
;board_build.esp-idf.sdkconfig_path = .temp/sdkconfig-esp32-idf
build_flags =
${common:esp32-idf.build_flags}
${flags:runtime.build_flags}
-DUSE_ESP32_VARIANT_ESP32
-DUSE_VOICE_ASSISTANT
[env:esp32-s3-idf]
extends = common:esp32-idf
board = esp32-s3-devkitc-1
board_build.esp-idf.preserve_source_file_extension = yes
;board_build.esp-idf.sdkconfig_path = .temp/sdkconfig-esp32-idf
build_flags =
${common:esp32-idf.build_flags}
${flags:runtime.build_flags}
-DUSE_ESP32_VARIANT_ESP32
-DUSE_VOICE_ASSISTANT