-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathplatformio.ini
More file actions
227 lines (192 loc) · 5.1 KB
/
platformio.ini
File metadata and controls
227 lines (192 loc) · 5.1 KB
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
; 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]
default_envs = emulator_Core
[env]
build_flags =
-std=c++17
-I include
-I src/utility
; LVGL
-D LV_CONF_INCLUDE_SIMPLE
-D LV_LVGL_H_INCLUDE_SIMPLE
-D LVGL_USE_V8=1 ; lvgl v8
-D LVGL_USE_V9=0 ; lvgl v9
; EEZ Studio Project
; -D USE_EEZ_STUDIO
lib_deps =
https://github.com/m5stack/M5GFX#develop
lvgl=https://github.com/lvgl/lvgl/archive/refs/tags/v8.4.0.zip ; lvgl v8
; lvgl=https://github.com/lvgl/lvgl#master ; lvgl v9
lib_archive = false
[env:emulator_common]
extends = env
build_flags =
${env.build_flags}
; for debugging :(
; -fsanitize=address
; -fsanitize=undefined
; -fno-omit-frame-pointer
; -g -O0
; SDL2 includes, uncomment the next two lines on macOS if you intalled sdl via homebrew
; !pkg-config --cflags SDL2
; !pkg-config --libs SDL2
; uncomment the next line if running on macOS Mx (arm64 architecture)
; -arch arm64
-l SDL2
-D M5GFX_SHOW_FRAME
-D M5GFX_BACK_COLOR=0xFFFFFFU ; background color
-D M5GFX_SCALE=2
-D M5GFX_ROTATION=0
[env:emulator_Core]
extends = emulator_common
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5Stack
build_src_filter =
+<*>
-<src/utility/lvgl_port_m5stack.cpp>
+<../.pio/libdeps/emulator_Core/lvgl/demos>
[env:board_M5Core]
extends = env
platform = espressif32
board = m5stack-fire
framework = arduino
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_M5Stack
-D BOARD_HAS_PSRAM
build_src_filter =
+<*>
+<../.pio/libdeps/board_M5Core/lvgl/demos>
[env:emulator_Core2]
extends = emulator_common
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5StackCore2
build_src_filter =
+<*>
-<src/utility/lvgl_port_m5stack.cpp>
+<../.pio/libdeps/emulator_Core2/lvgl/demos>
[env:board_M5Core2]
extends = env
platform = espressif32
board = m5stack-core2
framework = arduino
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_M5StackCore2
-D BOARD_HAS_PSRAM
build_src_filter =
+<*>
+<../.pio/libdeps/board_M5Core2/lvgl/demos>
[env:emulator_CoreS3]
extends = emulator_common
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5StackCoreS3
build_src_filter =
+<*>
-<src/utility/lvgl_port_m5stack.cpp>
+<../.pio/libdeps/emulator_CoreS3/lvgl/demos>
[env:board_M5CoreS3]
extends = env
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_M5StackCoreS3
-D BOARD_HAS_PSRAM
build_src_filter =
+<*>
+<../.pio/libdeps/board_M5CoreS3/lvgl/demos>
[env:emulator_StickCPlus]
extends = emulator_common
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5StickCPlus
build_src_filter =
+<*>
-<src/utility/lvgl_port_m5stack.cpp>
+<../.pio/libdeps/emulator_StickCPlus/lvgl/demos>
[env:emulator_StickCPlus2]
extends = emulator_common
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5StickCPlus2
build_src_filter =
+<*>
-<src/utility/lvgl_port_m5stack.cpp>
+<../.pio/libdeps/emulator_StickCPlus2/lvgl/demos>
[env:emulator_Dial]
extends = emulator_common
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5Dial
build_src_filter =
+<*>
-<src/utility/lvgl_port_m5stack.cpp>
+<../.pio/libdeps/emulator_Dial/lvgl/demos>
[env:board_Dial]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_Dial
build_src_filter =
+<*>
+<../.pio/libdeps/board_Dial/lvgl/demos>
[env:emulator_Tab5]
extends = emulator_common
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5Tab5
build_src_filter =
+<*>
-<src/utility/lvgl_port_m5stack.cpp>
+<../.pio/libdeps/emulator_Tab5/lvgl/demos>
[env:board_Tab5]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
framework = arduino
board = esp32-p4-evboard
extra_scripts =
pre:support/risc_arm_cleanup.py
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_M5Tab5
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_CDC_ON_BOOT=1
-D ARDUINO_USB_MODE=1
build_src_filter =
+<*>
+<../.pio/libdeps/board_Tab5/lvgl/demos>