-
-
Notifications
You must be signed in to change notification settings - Fork 383
/
platformio.ini
165 lines (143 loc) · 4.53 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = FluidNC
include_dir = FluidNC/include
; lib_dir = libraries
test_dir = FluidNC/tests
data_dir = FluidNC/data
default_envs = wifi
extra_configs=
platformio_override.ini
;debug.ini
[common_env_data]
lib_deps_builtin =
SPI
[common]
build_flags =
!python git-version.py
-DCORE_DEBUG_LEVEL=0
-Wno-unused-variable
-Wno-unused-function
lib_deps =
TMCStepper@>=0.7.0,<1.0.0
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected]
bt_deps =
BluetoothSerial
wifi_deps =
arduinoWebSockets=https://github.com/MitchBradley/arduinoWebSockets#canSend
WiFi=https://github.com/MitchBradley/WiFi#canWrite
; If we include the following explicit dependencies when we get the
; Arduino framework code from github, platformio picks up different
; and incompatible versions of these libraries from who knows where,
; ArduinoOTA
; DNSServer
; ESPmDNS
; Update
; WebServer
; WiFi
; WiFiClientSecure
[common_esp32_base]
platform = https://github.com/platformio/platform-espressif32.git
framework = arduino
platform_packages =
platformio/framework-arduinoespressif32@^3.20016.0
board_build.arduino.upstream_packages = no
upload_speed = 921600
board_build.partitions = min_littlefs.csv ; For 4M ESP32
board_build.filesystem = littlefs
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs1M_8MB.csv ; For 8Meg ESP32
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs9M_16MB.csv ; For 16Meg ESP32
monitor_speed = 115200
monitor_flags =
--eol=LF
monitor_filters=esp32_exception_decoder
board_build.f_flash = 80000000L
build_unflags = -std=gnu++11
build_flags = ${common.build_flags} -std=gnu++17 -D_GLIBCXX_HAVE_DIRENT_H -D__FLUIDNC
; -lstdc++fs
build_src_filter =
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<src/>
+<esp32>
+<stdfs>
-<src/WebUI>
-<src/BTConfig.cpp>
; -<src/OLED.cpp>
lib_extra_dirs =
libraries
[common_esp32]
; See FluidNC/ld/esp32/README.md
extra_scripts = FluidNC/ld/esp32/vtable_in_dram.py
extends = common_esp32_base
board = esp32dev
[common_esp32_s3]
extends = common_esp32_base
board = esp32-s3-devkitc-1
lib_deps = ${common.lib_deps}
[common_wifi]
build_src_filter = +<src/WebUI/*.cpp>
[common_bt]
build_src_filter = +<src/BTConfig.cpp> +<src/WebUI/WebCommands.cpp>
[env:debug]
extends = common_esp32
build_type = debug
lib_deps = ${common.lib_deps}
[env:noradio]
extends = common_esp32
lib_deps = ${common.lib_deps}
build_src_filter = ${common_esp32_base.build_src_filter}
[env:wifi]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_src_filter = ${common_esp32_base.build_src_filter} ${common_wifi.build_src_filter}
[env:bt]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_src_filter = ${common_esp32_base.build_src_filter} ${common_bt.build_src_filter}
[env:noradio_s3]
extends = common_esp32_s3
lib_deps = ${common.lib_deps}
build_src_filter = ${common_esp32_base.build_src_filter}
build_flags = ${common_esp32_base.build_flags}
[env:wifi_s3]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_src_filter = ${common_esp32_base.build_src_filter} ${common_wifi.build_src_filter}
[env:bt_s3]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_src_filter = ${common_esp32_base.build_src_filter} ${common_bt.build_src_filter}
; This environment has bit-rot, and does not build.
; Files relevant to it reside in ./X86TestSupport and ./FluidNC/test
; TODO - Migrate tests over to [env:tests] environment
; [env:native]
; platform = native
; test_build_src = true
; build_src_filter =
; +<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<src/>
; +<X86TestSupport/>
; -<src/I2SOut.cpp> -<src\Motors\Trinamic*.cpp>
; build_flags = -IX86TestSupport -std=c++17 -limagehlp
; lib_compat_mode = off
; lib_deps =
; google/googletest @ ^1.10.0
; lib_extra_dirs =
; X86TestSupport
[tests_common]
platform = native
test_framework = googletest
test_build_src = true
build_src_filter = +<src/Pins/PinOptionsParser.cpp> +<src/string_util.cpp>
build_flags = -std=c++17 -g
[env:tests]
extends = tests_common
build_flags = ${tests_common.build_flags} -fsanitize=address,undefined
[env:tests_nosan]
extends = tests_common