@geastack/targets 0.1.84 → 0.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-config.json +481 -0
- package/package.json +7 -7
- package/targets/cmake/gea_build_config.cmake +12 -0
- package/targets/esp32/gea_framework.cmake +25 -3
- package/targets/esp32-p4-m5stack-tab5/main/CMakeLists.txt +2 -1
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/CMakeLists.txt +2 -1
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/CMakeLists.txt +2 -1
- package/targets/esp32-s3-elecrow-rotary-2.1/main/CMakeLists.txt +2 -0
- package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +3 -1
- package/targets/esp32-s3-lilygo-t-display-s3-long/CMakeLists.txt +1 -1
- package/targets/esp32-s3-lilygo-t-display-s3-long/main/CMakeLists.txt +1 -24
- package/targets/esp32-s3-touch-amoled-1.75/main/CMakeLists.txt +2 -1
- package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +6 -77
- package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +11 -128
- package/targets/rp2350-tufty-2350/CMakeLists.txt +6 -7
- package/targets/rp2350-waveshare-touch-amoled-2.41/CMakeLists.txt +4 -0
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"platforms": {
|
|
4
|
+
"esp32": {
|
|
5
|
+
"supported": [
|
|
6
|
+
"ui.styleStorage",
|
|
7
|
+
"compiler.staticCssRules",
|
|
8
|
+
"compiler.staticCssTape",
|
|
9
|
+
"compiler.staticCssTapeMinChunk",
|
|
10
|
+
"compiler.translationUnits",
|
|
11
|
+
"compiler.storeRelowering",
|
|
12
|
+
"compiler.moduleGraph",
|
|
13
|
+
"compiler.allowAny",
|
|
14
|
+
"compiler.numberPrecision",
|
|
15
|
+
"renderer.subtreeRevealChecks",
|
|
16
|
+
"renderer.recordInlinePositions",
|
|
17
|
+
"diagnostics.performanceCounters",
|
|
18
|
+
"diagnostics.frameTiming"
|
|
19
|
+
],
|
|
20
|
+
"defaults": {
|
|
21
|
+
"ui": {
|
|
22
|
+
"styleStorage": "inline"
|
|
23
|
+
},
|
|
24
|
+
"compiler": {
|
|
25
|
+
"staticCssRules": true,
|
|
26
|
+
"staticCssTape": true,
|
|
27
|
+
"staticCssTapeMinChunk": 5,
|
|
28
|
+
"translationUnits": "default",
|
|
29
|
+
"storeRelowering": true,
|
|
30
|
+
"moduleGraph": "auto",
|
|
31
|
+
"allowAny": false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"rp2350": {
|
|
36
|
+
"supported": [
|
|
37
|
+
"ui.styleStorage",
|
|
38
|
+
"compiler.staticCssRules",
|
|
39
|
+
"compiler.staticCssTape",
|
|
40
|
+
"compiler.staticCssTapeMinChunk",
|
|
41
|
+
"compiler.translationUnits",
|
|
42
|
+
"compiler.storeRelowering",
|
|
43
|
+
"compiler.moduleGraph",
|
|
44
|
+
"compiler.allowAny"
|
|
45
|
+
],
|
|
46
|
+
"defaults": {
|
|
47
|
+
"ui": {
|
|
48
|
+
"styleStorage": "inline"
|
|
49
|
+
},
|
|
50
|
+
"compiler": {
|
|
51
|
+
"staticCssRules": true,
|
|
52
|
+
"staticCssTape": true,
|
|
53
|
+
"staticCssTapeMinChunk": 5,
|
|
54
|
+
"translationUnits": "default",
|
|
55
|
+
"storeRelowering": true,
|
|
56
|
+
"moduleGraph": "auto",
|
|
57
|
+
"allowAny": false
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"macos": {
|
|
62
|
+
"supported": [
|
|
63
|
+
"compiler.staticCssRules",
|
|
64
|
+
"compiler.staticCssTape",
|
|
65
|
+
"compiler.staticCssTapeMinChunk",
|
|
66
|
+
"compiler.translationUnits",
|
|
67
|
+
"compiler.storeRelowering",
|
|
68
|
+
"compiler.moduleGraph",
|
|
69
|
+
"compiler.allowAny"
|
|
70
|
+
],
|
|
71
|
+
"defaults": {
|
|
72
|
+
"compiler": {
|
|
73
|
+
"staticCssRules": true,
|
|
74
|
+
"staticCssTape": true,
|
|
75
|
+
"staticCssTapeMinChunk": 5,
|
|
76
|
+
"translationUnits": "default",
|
|
77
|
+
"storeRelowering": true,
|
|
78
|
+
"moduleGraph": "auto",
|
|
79
|
+
"allowAny": false
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"ios": {
|
|
84
|
+
"supported": [
|
|
85
|
+
"compiler.staticCssRules",
|
|
86
|
+
"compiler.staticCssTape",
|
|
87
|
+
"compiler.staticCssTapeMinChunk",
|
|
88
|
+
"compiler.translationUnits",
|
|
89
|
+
"compiler.storeRelowering",
|
|
90
|
+
"compiler.moduleGraph",
|
|
91
|
+
"compiler.allowAny"
|
|
92
|
+
],
|
|
93
|
+
"defaults": {
|
|
94
|
+
"compiler": {
|
|
95
|
+
"staticCssRules": true,
|
|
96
|
+
"staticCssTape": true,
|
|
97
|
+
"staticCssTapeMinChunk": 5,
|
|
98
|
+
"translationUnits": "default",
|
|
99
|
+
"storeRelowering": true,
|
|
100
|
+
"moduleGraph": "auto",
|
|
101
|
+
"allowAny": false
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"windows": {
|
|
106
|
+
"supported": [
|
|
107
|
+
"compiler.staticCssRules",
|
|
108
|
+
"compiler.staticCssTape",
|
|
109
|
+
"compiler.staticCssTapeMinChunk",
|
|
110
|
+
"compiler.translationUnits",
|
|
111
|
+
"compiler.storeRelowering",
|
|
112
|
+
"compiler.moduleGraph",
|
|
113
|
+
"compiler.allowAny"
|
|
114
|
+
],
|
|
115
|
+
"defaults": {
|
|
116
|
+
"compiler": {
|
|
117
|
+
"staticCssRules": true,
|
|
118
|
+
"staticCssTape": true,
|
|
119
|
+
"staticCssTapeMinChunk": 5,
|
|
120
|
+
"translationUnits": "balanced",
|
|
121
|
+
"storeRelowering": true,
|
|
122
|
+
"moduleGraph": "auto",
|
|
123
|
+
"allowAny": false
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"pebble": {
|
|
128
|
+
"supported": [
|
|
129
|
+
"compiler.staticCssRules",
|
|
130
|
+
"compiler.staticCssTape",
|
|
131
|
+
"compiler.staticCssTapeMinChunk",
|
|
132
|
+
"compiler.translationUnits",
|
|
133
|
+
"compiler.storeRelowering",
|
|
134
|
+
"compiler.moduleGraph",
|
|
135
|
+
"compiler.allowAny"
|
|
136
|
+
],
|
|
137
|
+
"defaults": {
|
|
138
|
+
"compiler": {
|
|
139
|
+
"staticCssRules": true,
|
|
140
|
+
"staticCssTape": true,
|
|
141
|
+
"staticCssTapeMinChunk": 5,
|
|
142
|
+
"translationUnits": "default",
|
|
143
|
+
"storeRelowering": true,
|
|
144
|
+
"moduleGraph": "auto",
|
|
145
|
+
"allowAny": false
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"geaos": {
|
|
150
|
+
"supported": [
|
|
151
|
+
"compiler.staticCssRules",
|
|
152
|
+
"compiler.staticCssTape",
|
|
153
|
+
"compiler.staticCssTapeMinChunk",
|
|
154
|
+
"compiler.translationUnits",
|
|
155
|
+
"compiler.storeRelowering",
|
|
156
|
+
"compiler.moduleGraph",
|
|
157
|
+
"compiler.allowAny"
|
|
158
|
+
],
|
|
159
|
+
"defaults": {
|
|
160
|
+
"compiler": {
|
|
161
|
+
"staticCssRules": true,
|
|
162
|
+
"staticCssTape": true,
|
|
163
|
+
"staticCssTapeMinChunk": 5,
|
|
164
|
+
"translationUnits": "default",
|
|
165
|
+
"storeRelowering": true,
|
|
166
|
+
"moduleGraph": "auto",
|
|
167
|
+
"allowAny": false
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"xbox": {
|
|
172
|
+
"supported": [
|
|
173
|
+
"compiler.staticCssRules",
|
|
174
|
+
"compiler.staticCssTape",
|
|
175
|
+
"compiler.staticCssTapeMinChunk",
|
|
176
|
+
"compiler.translationUnits",
|
|
177
|
+
"compiler.storeRelowering",
|
|
178
|
+
"compiler.moduleGraph",
|
|
179
|
+
"compiler.allowAny"
|
|
180
|
+
],
|
|
181
|
+
"defaults": {
|
|
182
|
+
"compiler": {
|
|
183
|
+
"staticCssRules": true,
|
|
184
|
+
"staticCssTape": true,
|
|
185
|
+
"staticCssTapeMinChunk": 5,
|
|
186
|
+
"translationUnits": "default",
|
|
187
|
+
"storeRelowering": true,
|
|
188
|
+
"moduleGraph": "auto",
|
|
189
|
+
"allowAny": false
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"web": {
|
|
194
|
+
"supported": [
|
|
195
|
+
"compiler.staticCssRules",
|
|
196
|
+
"compiler.staticCssTape",
|
|
197
|
+
"compiler.staticCssTapeMinChunk",
|
|
198
|
+
"compiler.translationUnits",
|
|
199
|
+
"compiler.storeRelowering",
|
|
200
|
+
"compiler.moduleGraph",
|
|
201
|
+
"compiler.allowAny",
|
|
202
|
+
"ui.styleStorage"
|
|
203
|
+
],
|
|
204
|
+
"defaults": {
|
|
205
|
+
"compiler": {
|
|
206
|
+
"staticCssRules": true,
|
|
207
|
+
"staticCssTape": true,
|
|
208
|
+
"staticCssTapeMinChunk": 5,
|
|
209
|
+
"translationUnits": "default",
|
|
210
|
+
"storeRelowering": true,
|
|
211
|
+
"moduleGraph": "auto",
|
|
212
|
+
"allowAny": false
|
|
213
|
+
},
|
|
214
|
+
"ui": {
|
|
215
|
+
"styleStorage": "inline"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"cssDevicePixelRatio": 1.5,
|
|
219
|
+
"inference": {
|
|
220
|
+
"canvasOnly": true
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"boards": {
|
|
225
|
+
"esp32-s3-touch-amoled-1.8": {
|
|
226
|
+
"supported": [
|
|
227
|
+
"compiler.generatedCodeOptimization",
|
|
228
|
+
"renderer.fuseReplayFlush",
|
|
229
|
+
"renderer.adaptiveCoalescing",
|
|
230
|
+
"renderer.broadDirtyBounds",
|
|
231
|
+
"display.framebufferStream",
|
|
232
|
+
"display.presentStream"
|
|
233
|
+
],
|
|
234
|
+
"defaults": {
|
|
235
|
+
"compiler": {
|
|
236
|
+
"generatedCodeOptimization": "Os",
|
|
237
|
+
"numberPrecision": "float64"
|
|
238
|
+
},
|
|
239
|
+
"renderer": {
|
|
240
|
+
"fuseReplayFlush": false,
|
|
241
|
+
"subtreeRevealChecks": true,
|
|
242
|
+
"recordInlinePositions": true,
|
|
243
|
+
"adaptiveCoalescing": false,
|
|
244
|
+
"broadDirtyBounds": false
|
|
245
|
+
},
|
|
246
|
+
"display": {
|
|
247
|
+
"framebufferStream": "independent",
|
|
248
|
+
"presentStream": "independent"
|
|
249
|
+
},
|
|
250
|
+
"diagnostics": {
|
|
251
|
+
"performanceCounters": true,
|
|
252
|
+
"frameTiming": true
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"cssDevicePixelRatio": 1.5,
|
|
256
|
+
"constraints": {}
|
|
257
|
+
},
|
|
258
|
+
"esp32-s3-touch-amoled-2.06": {
|
|
259
|
+
"supported": [
|
|
260
|
+
"compiler.generatedCodeOptimization",
|
|
261
|
+
"renderer.fuseReplayFlush",
|
|
262
|
+
"renderer.adaptiveCoalescing",
|
|
263
|
+
"renderer.broadDirtyBounds",
|
|
264
|
+
"display.framebufferStream",
|
|
265
|
+
"display.presentStream",
|
|
266
|
+
"display.flushPoolBytes",
|
|
267
|
+
"services.wifi"
|
|
268
|
+
],
|
|
269
|
+
"defaults": {
|
|
270
|
+
"compiler": {
|
|
271
|
+
"generatedCodeOptimization": "O2",
|
|
272
|
+
"numberPrecision": "float32"
|
|
273
|
+
},
|
|
274
|
+
"renderer": {
|
|
275
|
+
"fuseReplayFlush": false,
|
|
276
|
+
"subtreeRevealChecks": true,
|
|
277
|
+
"recordInlinePositions": true,
|
|
278
|
+
"adaptiveCoalescing": true,
|
|
279
|
+
"broadDirtyBounds": true
|
|
280
|
+
},
|
|
281
|
+
"display": {
|
|
282
|
+
"framebufferStream": "continuous",
|
|
283
|
+
"presentStream": "continuous",
|
|
284
|
+
"flushPoolBytes": 0
|
|
285
|
+
},
|
|
286
|
+
"diagnostics": {
|
|
287
|
+
"performanceCounters": false,
|
|
288
|
+
"frameTiming": false
|
|
289
|
+
},
|
|
290
|
+
"services": {
|
|
291
|
+
"wifi": "auto"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"cssDevicePixelRatio": 1.5,
|
|
295
|
+
"constraints": {},
|
|
296
|
+
"inference": {
|
|
297
|
+
"canvasOnly": true
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"esp32-s3-touch-amoled-2.41": {
|
|
301
|
+
"supported": [
|
|
302
|
+
"compiler.generatedCodeOptimization",
|
|
303
|
+
"renderer.fuseReplayFlush",
|
|
304
|
+
"renderer.adaptiveCoalescing",
|
|
305
|
+
"renderer.broadDirtyBounds",
|
|
306
|
+
"display.framebufferStream",
|
|
307
|
+
"display.presentStream"
|
|
308
|
+
],
|
|
309
|
+
"defaults": {
|
|
310
|
+
"compiler": {
|
|
311
|
+
"generatedCodeOptimization": "O2",
|
|
312
|
+
"numberPrecision": "float64"
|
|
313
|
+
},
|
|
314
|
+
"renderer": {
|
|
315
|
+
"fuseReplayFlush": false,
|
|
316
|
+
"subtreeRevealChecks": true,
|
|
317
|
+
"recordInlinePositions": true,
|
|
318
|
+
"adaptiveCoalescing": false,
|
|
319
|
+
"broadDirtyBounds": false
|
|
320
|
+
},
|
|
321
|
+
"display": {
|
|
322
|
+
"framebufferStream": "independent",
|
|
323
|
+
"presentStream": "independent"
|
|
324
|
+
},
|
|
325
|
+
"diagnostics": {
|
|
326
|
+
"performanceCounters": true,
|
|
327
|
+
"frameTiming": true
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"cssDevicePixelRatio": 1.5,
|
|
331
|
+
"constraints": {
|
|
332
|
+
"display.framebufferStream": [
|
|
333
|
+
"independent"
|
|
334
|
+
],
|
|
335
|
+
"display.presentStream": [
|
|
336
|
+
"independent"
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"esp32-s3-lilygo-t-display-s3-long": {
|
|
341
|
+
"supported": [
|
|
342
|
+
"compiler.generatedCodeOptimization",
|
|
343
|
+
"renderer.fuseReplayFlush",
|
|
344
|
+
"renderer.adaptiveCoalescing",
|
|
345
|
+
"renderer.broadDirtyBounds",
|
|
346
|
+
"display.framebufferStream",
|
|
347
|
+
"display.presentStream"
|
|
348
|
+
],
|
|
349
|
+
"defaults": {
|
|
350
|
+
"compiler": {
|
|
351
|
+
"generatedCodeOptimization": "Os",
|
|
352
|
+
"numberPrecision": "float64"
|
|
353
|
+
},
|
|
354
|
+
"renderer": {
|
|
355
|
+
"fuseReplayFlush": false,
|
|
356
|
+
"subtreeRevealChecks": true,
|
|
357
|
+
"recordInlinePositions": true,
|
|
358
|
+
"adaptiveCoalescing": false,
|
|
359
|
+
"broadDirtyBounds": false
|
|
360
|
+
},
|
|
361
|
+
"display": {
|
|
362
|
+
"framebufferStream": "independent",
|
|
363
|
+
"presentStream": "independent"
|
|
364
|
+
},
|
|
365
|
+
"diagnostics": {
|
|
366
|
+
"performanceCounters": true,
|
|
367
|
+
"frameTiming": true
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"cssDevicePixelRatio": 1,
|
|
371
|
+
"constraints": {
|
|
372
|
+
"display.framebufferStream": [
|
|
373
|
+
"independent"
|
|
374
|
+
],
|
|
375
|
+
"renderer.fuseReplayFlush": [
|
|
376
|
+
false
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"rp2350-tufty-2350": {
|
|
381
|
+
"cssDevicePixelRatio": 1,
|
|
382
|
+
"supported": []
|
|
383
|
+
},
|
|
384
|
+
"rp2350-waveshare-touch-amoled-2.41": {
|
|
385
|
+
"cssDevicePixelRatio": 1.5,
|
|
386
|
+
"supported": []
|
|
387
|
+
},
|
|
388
|
+
"esp32-s3-waveshare-touch-lcd-4b": {
|
|
389
|
+
"supported": [
|
|
390
|
+
"compiler.generatedCodeOptimization",
|
|
391
|
+
"services.wifi"
|
|
392
|
+
],
|
|
393
|
+
"defaults": {
|
|
394
|
+
"compiler": {
|
|
395
|
+
"generatedCodeOptimization": "O2"
|
|
396
|
+
},
|
|
397
|
+
"services": {
|
|
398
|
+
"wifi": "auto"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"cssDevicePixelRatio": 1,
|
|
402
|
+
"constraints": {}
|
|
403
|
+
},
|
|
404
|
+
"esp32-s3": {
|
|
405
|
+
"supported": [
|
|
406
|
+
"compiler.generatedCodeOptimization",
|
|
407
|
+
"services.wifi"
|
|
408
|
+
],
|
|
409
|
+
"defaults": {
|
|
410
|
+
"compiler": {
|
|
411
|
+
"generatedCodeOptimization": "O2",
|
|
412
|
+
"numberPrecision": "float32"
|
|
413
|
+
},
|
|
414
|
+
"services": {
|
|
415
|
+
"wifi": "auto"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"cssDevicePixelRatio": 1.5
|
|
419
|
+
},
|
|
420
|
+
"esp32-s3-touch-amoled-1.75": {
|
|
421
|
+
"cssDevicePixelRatio": 1.5,
|
|
422
|
+
"defaults": {
|
|
423
|
+
"diagnostics": {
|
|
424
|
+
"frameTiming": true
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"supported": []
|
|
428
|
+
},
|
|
429
|
+
"esp32-s3-epaper-1.54": {
|
|
430
|
+
"cssDevicePixelRatio": 1,
|
|
431
|
+
"supported": []
|
|
432
|
+
},
|
|
433
|
+
"esp32-s3-lilygo-t5-epaper-4.7": {
|
|
434
|
+
"cssDevicePixelRatio": 1,
|
|
435
|
+
"supported": []
|
|
436
|
+
},
|
|
437
|
+
"esp32-m5stack-m5paper": {
|
|
438
|
+
"cssDevicePixelRatio": 1,
|
|
439
|
+
"supported": []
|
|
440
|
+
},
|
|
441
|
+
"esp32-s3-m5stack-papers3": {
|
|
442
|
+
"cssDevicePixelRatio": 1,
|
|
443
|
+
"supported": []
|
|
444
|
+
},
|
|
445
|
+
"esp32-s3-m5stack-sticks3": {
|
|
446
|
+
"cssDevicePixelRatio": 1.5,
|
|
447
|
+
"supported": []
|
|
448
|
+
},
|
|
449
|
+
"esp32-s3-elecrow-rotary-2.1": {
|
|
450
|
+
"cssDevicePixelRatio": 1.5,
|
|
451
|
+
"supported": []
|
|
452
|
+
},
|
|
453
|
+
"esp32-p4-waveshare-touch-lcd-7": {
|
|
454
|
+
"cssDevicePixelRatio": 1,
|
|
455
|
+
"defaults": {
|
|
456
|
+
"diagnostics": {
|
|
457
|
+
"frameTiming": true
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"supported": []
|
|
461
|
+
},
|
|
462
|
+
"esp32-p4-waveshare-touch-lcd-3.5": {
|
|
463
|
+
"cssDevicePixelRatio": 1,
|
|
464
|
+
"defaults": {
|
|
465
|
+
"diagnostics": {
|
|
466
|
+
"frameTiming": true
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"supported": []
|
|
470
|
+
},
|
|
471
|
+
"esp32-p4-m5stack-tab5": {
|
|
472
|
+
"cssDevicePixelRatio": 2,
|
|
473
|
+
"defaults": {
|
|
474
|
+
"diagnostics": {
|
|
475
|
+
"frameTiming": true
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"supported": []
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/targets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.85",
|
|
4
4
|
"description": "Native embedded build targets (ESP32-IDF, RP2350) for geastack apps: board sources, target catalog, and CMake glue driven by the gea CLI.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"targets.json",
|
|
18
|
+
"build-config.json",
|
|
18
19
|
"targets",
|
|
19
20
|
"!targets/**/build/**",
|
|
20
21
|
"!targets/**/build-*/**",
|
|
@@ -36,16 +37,15 @@
|
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"@geastack/chips": "^0.1.4",
|
|
39
|
-
"@geastack/compiler": "^1.0.
|
|
40
|
-
"@geastack/core": "^0.1.
|
|
40
|
+
"@geastack/compiler": "^1.0.20",
|
|
41
|
+
"@geastack/core": "^0.1.31",
|
|
41
42
|
"@geastack/elements": "^0.1.3",
|
|
42
43
|
"@geastack/engine": "^0.1.8",
|
|
43
44
|
"@geastack/geaos": "^0.1.3",
|
|
44
|
-
"@geastack/geatsc-plugin-gea": "^0.1.
|
|
45
|
-
"@geastack/host": "^0.1.
|
|
45
|
+
"@geastack/geatsc-plugin-gea": "^0.1.13",
|
|
46
|
+
"@geastack/host": "^0.1.10"
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
49
|
"test": "for f in $(git ls-files | grep -E '(^|/)(test[-_][^/]*|[^/]*\\.test)\\.mjs$'); do echo \"==> $f\"; node \"$f\" || exit 1; done"
|
|
49
|
-
}
|
|
50
|
-
"gitHead": "10230ddd9bec0287a8705c8e1f96fb06a063c845"
|
|
50
|
+
}
|
|
51
51
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Resolved application choices come from the CLI, never from an app name.
|
|
2
|
+
# IDF's early requirements pass only receives the path through its child env.
|
|
3
|
+
foreach(_gea_input GEA_BUILD_CONFIG_FILE GEA_BUILD_CONFIG_JSON)
|
|
4
|
+
if(NOT ${_gea_input} AND DEFINED ENV{${_gea_input}})
|
|
5
|
+
set(${_gea_input} "$ENV{${_gea_input}}")
|
|
6
|
+
endif()
|
|
7
|
+
endforeach()
|
|
8
|
+
if(GEA_BUILD_CONFIG_FILE)
|
|
9
|
+
include("${GEA_BUILD_CONFIG_FILE}")
|
|
10
|
+
elseif(NOT CMAKE_SCRIPT_MODE_FILE)
|
|
11
|
+
message(FATAL_ERROR "Resolved package.json build settings are missing. Build with a current gea CLI.")
|
|
12
|
+
endif()
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
include("${CMAKE_CURRENT_LIST_DIR}/../cmake/gea_build_config.cmake")
|
|
1
2
|
# Shared geastack framework resolution for every esp32 board target.
|
|
2
3
|
#
|
|
3
4
|
# Requires GEA_EMBEDDED_ROOT to be set by the includer (the board's main
|
|
@@ -215,7 +216,7 @@ list(REMOVE_ITEM GEA_FW_CXX_SOURCES ${GEA_FW_APP_SENSITIVE_SOURCES})
|
|
|
215
216
|
# The direct-canvas profiling apps intentionally use a small framework slice.
|
|
216
217
|
# Reproduce that slice in the stable component instead of compiling the normal
|
|
217
218
|
# framework and relying on the linker to discard it.
|
|
218
|
-
if(
|
|
219
|
+
if(GEA_APP_CANVAS_ONLY)
|
|
219
220
|
set(GEA_FW_CXX_SOURCES
|
|
220
221
|
"${GEA_ENGINE}/ui/canvas_element.cpp"
|
|
221
222
|
"${GEA_ENGINE}/canvas.cpp"
|
|
@@ -299,8 +300,29 @@ function(gea_framework_inherit_build_settings)
|
|
|
299
300
|
# main is a static archive, so PRIVATE link options stop at the archive and
|
|
300
301
|
# never reach the final executable link. Publish the rescan group through
|
|
301
302
|
# its link interface so the ELF linker actually sees it.
|
|
302
|
-
|
|
303
|
-
|
|
303
|
+
if(GEA_APP_CANVAS_ONLY)
|
|
304
|
+
# The small canvas graph can first pull app_main/display from the late
|
|
305
|
+
# framework rescan, after both the generated app and SDK drivers were
|
|
306
|
+
# visited. Rescan the selected components together, including the app.
|
|
307
|
+
# This extracts only referenced members, unlike --whole-archive.
|
|
308
|
+
idf_build_get_property(_gea_components BUILD_COMPONENTS)
|
|
309
|
+
set(_gea_rescan "${GEATSC_ARCHIVE}")
|
|
310
|
+
foreach(_gea_component IN LISTS _gea_components)
|
|
311
|
+
idf_component_get_property(_gea_lib ${_gea_component} COMPONENT_LIB)
|
|
312
|
+
if(TARGET ${_gea_lib})
|
|
313
|
+
get_target_property(_gea_lib_type ${_gea_lib} TYPE)
|
|
314
|
+
if(_gea_lib_type STREQUAL "STATIC_LIBRARY")
|
|
315
|
+
list(APPEND _gea_rescan "$<TARGET_FILE:${_gea_lib}>")
|
|
316
|
+
endif()
|
|
317
|
+
endif()
|
|
318
|
+
endforeach()
|
|
319
|
+
list(JOIN _gea_rescan "$<COMMA>" _gea_rescan_args)
|
|
320
|
+
target_link_libraries(${COMPONENT_LIB} INTERFACE
|
|
321
|
+
"-Wl$<COMMA>--start-group$<COMMA>${_gea_rescan_args}$<COMMA>--end-group")
|
|
322
|
+
else()
|
|
323
|
+
target_link_libraries(${COMPONENT_LIB} INTERFACE
|
|
324
|
+
"-Wl$<COMMA>--start-group$<COMMA>${CMAKE_BINARY_DIR}/esp-idf/main/libmain.a$<COMMA>${CMAKE_BINARY_DIR}/esp-idf/gea_framework/libgea_framework.a$<COMMA>--end-group")
|
|
325
|
+
endif()
|
|
304
326
|
|
|
305
327
|
endfunction()
|
|
306
328
|
|
|
@@ -430,7 +430,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
430
430
|
GEA_EMBEDDED_AUDIO_DISABLED=0
|
|
431
431
|
GEA_EMBEDDED_DEFAULT_FRAME_INTERVAL_US=16000
|
|
432
432
|
GEA_EMBEDDED_FRAME_SCHEDULER_USE_ESP_TIMER=1
|
|
433
|
-
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
|
|
434
433
|
GEA_EMBEDDED_FRAME_SCHEDULER_IDLE_YIELD_TICKS=0
|
|
435
434
|
GEA_EMBEDDED_FRAME_SCHEDULER_MAX_CATCHUP_FRAMES_BEFORE_YIELD=60
|
|
436
435
|
GEA_EMBEDDED_DIRTY_REGION_MAX_RECTS=64
|
|
@@ -493,6 +492,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
493
492
|
add_custom_command(
|
|
494
493
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
495
494
|
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
495
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
496
496
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
497
497
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
498
498
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -508,6 +508,7 @@ add_custom_command(
|
|
|
508
508
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
509
509
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
510
510
|
DEPENDS
|
|
511
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
511
512
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
512
513
|
${_ACTIVE_APP_SRCS}
|
|
513
514
|
${_ACTIVE_APP_ASSETS}
|
|
@@ -395,7 +395,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
395
395
|
GEA_EMBEDDED_AUDIO_DISABLED=0
|
|
396
396
|
GEA_EMBEDDED_DEFAULT_FRAME_INTERVAL_US=16000
|
|
397
397
|
GEA_EMBEDDED_FRAME_SCHEDULER_USE_ESP_TIMER=1
|
|
398
|
-
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
|
|
399
398
|
GEA_EMBEDDED_FRAME_SCHEDULER_IDLE_YIELD_TICKS=0
|
|
400
399
|
GEA_EMBEDDED_FRAME_SCHEDULER_MAX_CATCHUP_FRAMES_BEFORE_YIELD=60
|
|
401
400
|
GEA_EMBEDDED_DIRTY_REGION_MAX_RECTS=64
|
|
@@ -458,6 +457,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
458
457
|
add_custom_command(
|
|
459
458
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
460
459
|
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
460
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
461
461
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
462
462
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
463
463
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -471,6 +471,7 @@ add_custom_command(
|
|
|
471
471
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
472
472
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
473
473
|
DEPENDS
|
|
474
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
474
475
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
475
476
|
${_ACTIVE_APP_SRCS}
|
|
476
477
|
${_ACTIVE_APP_ASSETS}
|
|
@@ -410,7 +410,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
410
410
|
GEA_EMBEDDED_AUDIO_DISABLED=0
|
|
411
411
|
GEA_EMBEDDED_DEFAULT_FRAME_INTERVAL_US=16000
|
|
412
412
|
GEA_EMBEDDED_FRAME_SCHEDULER_USE_ESP_TIMER=1
|
|
413
|
-
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
|
|
414
413
|
GEA_EMBEDDED_FRAME_SCHEDULER_IDLE_YIELD_TICKS=0
|
|
415
414
|
GEA_EMBEDDED_FRAME_SCHEDULER_MAX_CATCHUP_FRAMES_BEFORE_YIELD=60
|
|
416
415
|
GEA_EMBEDDED_DIRTY_REGION_MAX_RECTS=64
|
|
@@ -473,6 +472,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
473
472
|
add_custom_command(
|
|
474
473
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
475
474
|
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
475
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
476
476
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
477
477
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
478
478
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -486,6 +486,7 @@ add_custom_command(
|
|
|
486
486
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
487
487
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
488
488
|
DEPENDS
|
|
489
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
489
490
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
490
491
|
${_ACTIVE_APP_SRCS}
|
|
491
492
|
${_ACTIVE_APP_ASSETS}
|
|
@@ -507,6 +507,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
507
507
|
add_custom_command(
|
|
508
508
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
509
509
|
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
510
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
510
511
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
511
512
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
512
513
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -520,6 +521,7 @@ add_custom_command(
|
|
|
520
521
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
521
522
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
522
523
|
DEPENDS
|
|
524
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
523
525
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
524
526
|
${_ACTIVE_APP_SRCS}
|
|
525
527
|
${_GEATSC_BIN}
|
|
@@ -91,7 +91,7 @@ set(GEA_EMBEDDED_CPP_BOARD "${GEA_EMBEDDED_TARGET_CPP_BOARD}" CACHE STRING "Boar
|
|
|
91
91
|
# crisp, uniform stems when baked at an integer multiple of their native size,
|
|
92
92
|
# which requires baked-size == CSS-size. A non-integer DPR (1.5) would force
|
|
93
93
|
# fractional baked sizes and reintroduce uneven 1px/2px stems on this 1-bit panel.
|
|
94
|
-
set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "${GEA_EMBEDDED_TARGET_CSS_DEVICE_PIXEL_RATIO}" CACHE STRING "Logical CSS px to physical pixel scale for this board"
|
|
94
|
+
set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "${GEA_EMBEDDED_TARGET_CSS_DEVICE_PIXEL_RATIO}" CACHE STRING "Logical CSS px to physical pixel scale for this board")
|
|
95
95
|
|
|
96
96
|
# Write a file only when its content would change. Preserves mtime when content matches,
|
|
97
97
|
# so downstream make/ninja rules don't see spurious changes on every reconfigure.
|
|
@@ -583,6 +583,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
583
583
|
add_custom_command(
|
|
584
584
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
585
585
|
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
586
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
586
587
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
587
588
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
588
589
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -597,6 +598,7 @@ add_custom_command(
|
|
|
597
598
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
598
599
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
599
600
|
DEPENDS
|
|
601
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
600
602
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
601
603
|
${_ACTIVE_APP_SRCS}
|
|
602
604
|
${_ACTIVE_APP_ASSETS}
|
|
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
|
|
|
2
2
|
|
|
3
3
|
set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/../esp32/components")
|
|
4
4
|
include("${CMAKE_CURRENT_LIST_DIR}/../esp32/app_project.cmake")
|
|
5
|
-
set(GEA_EMBEDDED_APP "
|
|
5
|
+
set(GEA_EMBEDDED_APP "" CACHE STRING "Example app to build (must match a package.json gea.id)")
|
|
6
6
|
set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
|
|
7
7
|
|
|
8
8
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
set(GEA_BOARD_COMPONENT_DIR "${CMAKE_CURRENT_LIST_DIR}")
|
|
2
2
|
set(GEA_BOARD_TARGET_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
|
|
3
3
|
set(GEA_EMBEDDED_CPP_BOARD "esp32-s3-lilygo-t-display-s3-long")
|
|
4
|
-
set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.0")
|
|
4
|
+
set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.0" CACHE STRING "Logical CSS px to physical pixel scale for this board")
|
|
5
5
|
set(GEA_BOARD_DISPLAY_WIDTH 640)
|
|
6
6
|
set(GEA_BOARD_DISPLAY_HEIGHT 180)
|
|
7
7
|
set(GEA_BOARD_NATIVE_DISPLAY_WIDTH 180)
|
|
@@ -15,32 +15,9 @@ endif()
|
|
|
15
15
|
if(NOT DEFINED GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH)
|
|
16
16
|
set(GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH 1)
|
|
17
17
|
endif()
|
|
18
|
-
if(NOT DEFINED GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM)
|
|
19
|
-
# The AXS15231B intermittently loses horizontal pixel alignment when a
|
|
20
|
-
# framebuffer stream keeps CS asserted across queued DMA chunks.
|
|
21
|
-
set(GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM 0)
|
|
22
|
-
endif()
|
|
23
18
|
set(GEA_BOARD_PARTIAL_PAD_X 0)
|
|
24
19
|
set(GEA_BOARD_PARTIAL_PAD_Y 0)
|
|
25
20
|
set(GEA_BOARD_STREAM_PACE_CHUNKS 0)
|
|
26
|
-
if(NOT DEFINED GEA_BOARD_GEATSC_OPTIMIZATION)
|
|
27
|
-
# Keep the one-time large-partition migration image compatible with the
|
|
28
|
-
# original 2 MiB OTA layout. Later builds have 8,128 KiB per slot.
|
|
29
|
-
set(GEA_BOARD_GEATSC_OPTIMIZATION -Os)
|
|
30
|
-
endif()
|
|
31
|
-
if(NOT DEFINED GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX)
|
|
32
|
-
set(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX 1)
|
|
33
|
-
endif()
|
|
34
|
-
# Landscape scanout uses a physical-order framebuffer exposed through a rotated
|
|
35
|
-
# logical Canvas. Keep fused replay off until its generated-app microtask crash
|
|
36
|
-
# is resolved; the stable path renders into native-order PSRAM and copies rows.
|
|
37
|
-
set(GEA_BOARD_FUSE_REPLAY_FLUSH 0)
|
|
38
|
-
# The shared bouncing-balls profile collapses 64 movers to one broad dirty
|
|
39
|
-
# bbox, which is beneficial on the square AMOLED but makes this rotated panel
|
|
40
|
-
# redraw and transmit almost all 640 native rows. Preserve precise damage so
|
|
41
|
-
# display.cpp can project it into only the changed physical row bands.
|
|
42
|
-
set(GEA_BOARD_BROAD_DIRTY_BBOX 0)
|
|
43
|
-
set(GEA_BOARD_ADAPTIVE_COALESCE 0)
|
|
44
21
|
set(GEA_BOARD_EXTRA_REQUIRES
|
|
45
22
|
esp_driver_ledc
|
|
46
23
|
espressif__esp_tinyusb
|
|
@@ -430,7 +430,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
430
430
|
GEA_EMBEDDED_APP_FRAME_TASK_PRIORITY=23
|
|
431
431
|
# Compact scheduler perf line (gea_esp32_frame perf-lite) for cross-checking
|
|
432
432
|
# the app-level gea.perf window without the full phase dump's serial cost.
|
|
433
|
-
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
|
|
434
433
|
# 2-core replay split: defaults (96 rows / 64k px) only engage at the largest
|
|
435
434
|
# dirty phases of an animated-transform scene; lower so mid-size regions split
|
|
436
435
|
# too. Measured on css-3d-cube (glassy): median 52.3 -> 59.2 fps, min 44 -> 49.
|
|
@@ -485,6 +484,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
485
484
|
add_custom_command(
|
|
486
485
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
487
486
|
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
487
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
488
488
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
489
489
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
490
490
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -498,6 +498,7 @@ add_custom_command(
|
|
|
498
498
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
499
499
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
500
500
|
DEPENDS
|
|
501
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
501
502
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
502
503
|
${_ACTIVE_APP_SRCS}
|
|
503
504
|
${_ACTIVE_APP_ASSETS}
|
|
@@ -99,70 +99,8 @@ if(GEA_EMBEDDED_CPP_BOARD STREQUAL "esp32-s3-touch-amoled-1.8")
|
|
|
99
99
|
list(APPEND GEA_BOARD_PLATFORM_SOURCES "${CMAKE_CURRENT_LIST_DIR}/panel_reset.cpp")
|
|
100
100
|
list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_BOARD_PREPARE_DISPLAY_PANEL=1)
|
|
101
101
|
endif()
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
set(GEA_BOARD_GEATSC_OPTIMIZATION -O2)
|
|
105
|
-
else()
|
|
106
|
-
set(GEA_BOARD_GEATSC_OPTIMIZATION -Os)
|
|
107
|
-
endif()
|
|
108
|
-
endif()
|
|
109
|
-
if(NOT DEFINED GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX)
|
|
110
|
-
if(GEA_EMBEDDED_CPP_BOARD STREQUAL "esp32-s3-touch-amoled-1.8")
|
|
111
|
-
set(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX 1)
|
|
112
|
-
else()
|
|
113
|
-
set(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX 0)
|
|
114
|
-
endif()
|
|
115
|
-
endif()
|
|
116
|
-
|
|
117
|
-
# Keep app-sensitive renderer/codegen choices explicit at the board wrapper.
|
|
118
|
-
# The 1.8-inch board and wrappers opting into the bouncing-balls-jsx profile
|
|
119
|
-
# use native-number and retained-tree shortcuts for that app. Other apps keep
|
|
120
|
-
# their existing settings.
|
|
121
|
-
set(GEA_EMBEDDED_NUMBER_F32 0)
|
|
122
|
-
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 0)
|
|
123
|
-
set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 1)
|
|
124
|
-
set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 0)
|
|
125
|
-
set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE 0)
|
|
126
|
-
set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE 0)
|
|
127
|
-
set(GEA_EMBEDDED_FB_CS_HELD_VALUE 0)
|
|
128
|
-
set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE 0)
|
|
129
|
-
set(GEA_EMBEDDED_PERF_VALUE 1)
|
|
130
|
-
set(GEA_EMBEDDED_PERF_LITE_VALUE 1)
|
|
131
|
-
if(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX AND GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
|
|
132
|
-
set(GEA_EMBEDDED_NUMBER_F32 1)
|
|
133
|
-
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 1)
|
|
134
|
-
set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 0)
|
|
135
|
-
set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 1)
|
|
136
|
-
set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE 1)
|
|
137
|
-
set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE 1)
|
|
138
|
-
set(GEA_EMBEDDED_FB_CS_HELD_VALUE 1)
|
|
139
|
-
set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE 1)
|
|
140
|
-
set(GEA_EMBEDDED_PERF_VALUE 0)
|
|
141
|
-
set(GEA_EMBEDDED_PERF_LITE_VALUE 0)
|
|
142
|
-
list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_NUMBER_FLOAT=1)
|
|
143
|
-
endif()
|
|
144
|
-
# An explicit diagnostic build may override the profile's instrumentation
|
|
145
|
-
# default. Keep the component definition consistent with the app-wide one.
|
|
146
|
-
foreach(_GEA_APP_DEFINE IN LISTS GEA_EMBEDDED_APP_DEFINES)
|
|
147
|
-
if(_GEA_APP_DEFINE MATCHES "^GEA_EMBEDDED_PERF=([01])$")
|
|
148
|
-
set(GEA_EMBEDDED_PERF_VALUE "${CMAKE_MATCH_1}")
|
|
149
|
-
endif()
|
|
150
|
-
endforeach()
|
|
151
|
-
if(DEFINED GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM)
|
|
152
|
-
set(GEA_EMBEDDED_FB_CS_HELD_VALUE ${GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM})
|
|
153
|
-
endif()
|
|
154
|
-
if(DEFINED GEA_BOARD_PRESENT_CS_HELD_STREAM)
|
|
155
|
-
set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE ${GEA_BOARD_PRESENT_CS_HELD_STREAM})
|
|
156
|
-
endif()
|
|
157
|
-
if(DEFINED GEA_BOARD_FUSE_REPLAY_FLUSH)
|
|
158
|
-
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE ${GEA_BOARD_FUSE_REPLAY_FLUSH})
|
|
159
|
-
endif()
|
|
160
|
-
if(DEFINED GEA_BOARD_ADAPTIVE_COALESCE)
|
|
161
|
-
set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE ${GEA_BOARD_ADAPTIVE_COALESCE})
|
|
162
|
-
endif()
|
|
163
|
-
if(DEFINED GEA_BOARD_BROAD_DIRTY_BBOX)
|
|
164
|
-
set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE ${GEA_BOARD_BROAD_DIRTY_BBOX})
|
|
165
|
-
endif()
|
|
102
|
+
# Compiler/renderer choices are resolved from package.json by the CLI.
|
|
103
|
+
# Hardware defaults and restrictions live in the targets build catalog.
|
|
166
104
|
|
|
167
105
|
# Write a file only when its content would change. Preserves mtime when content matches,
|
|
168
106
|
# so downstream make/ninja rules don't see spurious changes on every reconfigure.
|
|
@@ -369,7 +307,7 @@ set(GEATSC_COMPILE_OPTIONS
|
|
|
369
307
|
# the false positive into an error and no board on this base builds at all.
|
|
370
308
|
-Wno-dangling-reference
|
|
371
309
|
-Wno-dangling-pointer
|
|
372
|
-
|
|
310
|
+
-${GEA_BUILD_COMPILER_GENERATED_CODE_OPTIMIZATION}
|
|
373
311
|
-mtext-section-literals
|
|
374
312
|
)
|
|
375
313
|
set(GEATSC_COMPILE_DEFINITIONS "")
|
|
@@ -603,15 +541,7 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
603
541
|
GEA_EMBEDDED_HAS_GENERATED_FONTS=1
|
|
604
542
|
GEA_EMBEDDED_APP_FRAME_TASK_CORE=0
|
|
605
543
|
GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_STREAM_FLUSH=${GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH}
|
|
606
|
-
GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_CS_HELD_STREAM=${GEA_EMBEDDED_FB_CS_HELD_VALUE}
|
|
607
|
-
GEA_EMBEDDED_DISPLAY_CO5300_PRESENT_CS_HELD_STREAM=${GEA_EMBEDDED_PRESENT_CS_HELD_VALUE}
|
|
608
544
|
GEA_EMBEDDED_DISPLAY_QSPI_PCLK_HZ=${GEA_BOARD_QSPI_PCLK_HZ}
|
|
609
|
-
GEA_EMBEDDED_DISPLAY_FUSE_REPLAY_FLUSH=${GEA_EMBEDDED_FUSE_FLUSH_VALUE}
|
|
610
|
-
GEA_EMBEDDED_SUBTREE_REVEAL_CHECK=${GEA_EMBEDDED_REVEAL_CHECK_VALUE}
|
|
611
|
-
GEA_EMBEDDED_SKIP_POSITION_INLINE_RECORD=${GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE}
|
|
612
|
-
GEA_EMBEDDED_FLUSH_ADAPTIVE_COALESCE=${GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE}
|
|
613
|
-
GEA_EMBEDDED_BROAD_DIRTY_BBOX=${GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE}
|
|
614
|
-
GEA_EMBEDDED_PERF=${GEA_EMBEDDED_PERF_VALUE}
|
|
615
545
|
# SH8601 JSX flush — the fastest genuinely-clean config is tight SPARSE per-ball windows
|
|
616
546
|
# + X=8 pad, no fusion (~53-57fps). Measured dead-ends (all on-device, 2026-06-09):
|
|
617
547
|
# - full-width band-collapse: 47fps. Cuts windows but DMAs the whole screen (byte-bound).
|
|
@@ -651,7 +581,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
651
581
|
GEA_EMBEDDED_RENDER_PARALLEL_MIN_PIXELS=24000
|
|
652
582
|
# Compact per-window scheduler perf line (tag gea_esp32_frame) for on-device
|
|
653
583
|
# fps measurement without the full phase dump's serial cost.
|
|
654
|
-
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=${GEA_EMBEDDED_PERF_LITE_VALUE}
|
|
655
584
|
${GEA_BOARD_EXTRA_COMPILE_DEFINITIONS}
|
|
656
585
|
${GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS}
|
|
657
586
|
${GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS}
|
|
@@ -701,9 +630,8 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
701
630
|
)
|
|
702
631
|
add_custom_command(
|
|
703
632
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
704
|
-
COMMAND ${
|
|
705
|
-
"
|
|
706
|
-
node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
633
|
+
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
634
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
707
635
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
708
636
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
709
637
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -717,6 +645,7 @@ add_custom_command(
|
|
|
717
645
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
718
646
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
719
647
|
DEPENDS
|
|
648
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
720
649
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
721
650
|
${_ACTIVE_APP_SRCS}
|
|
722
651
|
${_ACTIVE_APP_ASSETS}
|
|
@@ -294,7 +294,7 @@ set(GEATSC_COMPILE_OPTIONS
|
|
|
294
294
|
# Scoped to the generated GEATSC archive only (this block never applies to
|
|
295
295
|
# framework or app source), so hand-written uninitialized bugs still error.
|
|
296
296
|
-Wno-uninitialized
|
|
297
|
-
|
|
297
|
+
-${GEA_BUILD_COMPILER_GENERATED_CODE_OPTIMIZATION}
|
|
298
298
|
-mtext-section-literals
|
|
299
299
|
)
|
|
300
300
|
set(GEATSC_COMPILE_DEFINITIONS "")
|
|
@@ -303,18 +303,7 @@ if(NOT CMAKE_SCRIPT_MODE_FILE)
|
|
|
303
303
|
"${GEA_HOST}/host/rtc_esp.cpp"
|
|
304
304
|
PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable;-Os"
|
|
305
305
|
)
|
|
306
|
-
|
|
307
|
-
list(APPEND GEATSC_COMPILE_DEFINITIONS GEA_CPP_MINIMAL_GLOBAL_OBJECT=1)
|
|
308
|
-
endif()
|
|
309
|
-
if(GEA_EMBEDDED_APP STREQUAL "canvas-3d")
|
|
310
|
-
list(APPEND GEATSC_COMPILE_DEFINITIONS GEA_EMBEDDED_DIRECT_CANVAS_CONTEXT=1)
|
|
311
|
-
set_property(SOURCE
|
|
312
|
-
${GEA_APP_ENTRY_SRC}
|
|
313
|
-
"${GEA_CORE}/runtime.cpp"
|
|
314
|
-
"${GEA_ENGINE}/ui/canvas_element.cpp"
|
|
315
|
-
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/frame_scheduler.cpp"
|
|
316
|
-
APPEND PROPERTY COMPILE_DEFINITIONS GEA_EMBEDDED_DIRECT_CANVAS_CONTEXT=1)
|
|
317
|
-
endif()
|
|
306
|
+
|
|
318
307
|
endif()
|
|
319
308
|
set(GEA_EMBEDDED_HTTPS_REQUIRES "")
|
|
320
309
|
set(GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS "")
|
|
@@ -431,85 +420,7 @@ if(_GEA_EMBEDDED_ENABLE_HTTPS AND GEA_EMBEDDED_CAPABILITY_NETWORK)
|
|
|
431
420
|
list(APPEND GEA_EMBEDDED_HTTPS_REQUIRES mbedtls)
|
|
432
421
|
endif()
|
|
433
422
|
|
|
434
|
-
|
|
435
|
-
if(GEA_EMBEDDED_APP STREQUAL "canvas-3d" OR GEA_EMBEDDED_APP STREQUAL "gea3d-cube")
|
|
436
|
-
set(GEA_EMBEDDED_DIRECT_CANVAS_PROFILE 1)
|
|
437
|
-
endif()
|
|
438
|
-
# The profile controls two independent things that only canvas-3d wants
|
|
439
|
-
# together: (a) the lean board build (minimal framework sources, radios off,
|
|
440
|
-
# boot services off, flush pool) and (b) the SLIM direct-canvas geatsc
|
|
441
|
-
# emission (direct_canvas_runtime.h — no gea_cpp_value dynamic machinery).
|
|
442
|
-
# gea3d-cube needs (a) but its class-heavy emitted code requires the full
|
|
443
|
-
# runtime, so its codegen stays on the standard emission.
|
|
444
|
-
set(GEA_EMBEDDED_DIRECT_CANVAS_CODEGEN ${GEA_EMBEDDED_DIRECT_CANVAS_PROFILE})
|
|
445
|
-
if(GEA_EMBEDDED_APP STREQUAL "gea3d-cube")
|
|
446
|
-
set(GEA_EMBEDDED_DIRECT_CANVAS_CODEGEN 0)
|
|
447
|
-
endif()
|
|
448
|
-
|
|
449
|
-
# f32 `number` storage WITHOUT the slim direct-canvas runtime: the S3 FPU is
|
|
450
|
-
# single-precision, so full-runtime DOM apps that opt in here keep the whole
|
|
451
|
-
# gea_cpp_value/DOM machinery but lower `number` to gea_f32 (and Math.* to the
|
|
452
|
-
# f32 helpers). Independent of the direct-canvas profile above.
|
|
453
|
-
set(GEA_EMBEDDED_NUMBER_F32 0)
|
|
454
|
-
if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx" OR GEA_EMBEDDED_APP STREQUAL "bubble-grid")
|
|
455
|
-
set(GEA_EMBEDDED_NUMBER_F32 1)
|
|
456
|
-
endif()
|
|
457
|
-
# bubble-grid was MEASURED on f32 and is a REGRESSION — do not re-enable
|
|
458
|
-
# without re-measuring. f32 did what it says (fn_computeFisheye's soft-float
|
|
459
|
-
# helper calls dropped 48 -> 13, sqrt -> sqrtf), yet the draw loop went
|
|
460
|
-
# 6.57ms -> 8.3ms/frame. The per-circle SDF was never the dominant cost; the
|
|
461
|
-
# remaining float<->int64 conversion calls (__fixsfdi/__floatdisf) at the
|
|
462
|
-
# Int32Array/Uint16Array batching boundary cost more than the double math
|
|
463
|
-
# saved.
|
|
464
|
-
|
|
465
|
-
# FUSE_REPLAY_FLUSH: bouncing-balls-jsx (DOM, full-screen-dirty every frame) skips
|
|
466
|
-
# the separate replay-into-framebuffer pass AND the PSRAM->staging copy by fusing
|
|
467
|
-
# the replay into the flush — measured 30->47 fps. canvas-3d/gea3d-cube stay on the
|
|
468
|
-
# persistent-framebuffer path (0) that matches their 70-90fps historical numbers
|
|
469
|
-
# (see the FUSE=0 comparison-mode comment on the flag below).
|
|
470
|
-
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 0)
|
|
471
|
-
if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
|
|
472
|
-
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 1)
|
|
473
|
-
endif()
|
|
474
|
-
|
|
475
|
-
# SUBTREE_REVEAL_CHECK (default 1): b300e2d added a per-node, per-frame call to
|
|
476
|
-
# DisplayList::subtreeRevealsUnrecordedContent — an O(nodeCount) whole-tree scan — in the
|
|
477
|
-
# keep-display-list guard, to reveal content that was culled outside the record-time clip
|
|
478
|
-
# and later pans INTO view (sky-hop). Apps whose content never leaves the viewport can't
|
|
479
|
-
# reveal anything, so for 64 translating balls it is O(N^2) waste AND spuriously forces a
|
|
480
|
-
# full display-list record every frame (measured: dlist 1499->300us, 47->50fps). Opt those
|
|
481
|
-
# apps out. Keep it ON (1) for any app that pans/reveals off-clip content.
|
|
482
|
-
set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 1)
|
|
483
|
-
if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
|
|
484
|
-
set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 0)
|
|
485
|
-
endif()
|
|
486
|
-
|
|
487
|
-
# Skip Left/Top inline-style recording for apps whose position comes only from a reactive
|
|
488
|
-
# keyed list (bouncing-balls-jsx re-applies every frame; the record self-corrects). ~384µs/frame.
|
|
489
|
-
set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 0)
|
|
490
|
-
if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
|
|
491
|
-
set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 1)
|
|
492
|
-
endif()
|
|
493
|
-
|
|
494
|
-
# CS-held (non-draining) framebuffer stream: pipeline the fused-raster chunks via
|
|
495
|
-
# queueColorStreamData (raster chunk N+1 overlaps chunk N's DMA) exactly like the
|
|
496
|
-
# present path that gets non-jsx to 65fps — instead of the synchronous per-chunk
|
|
497
|
-
# txColor that drains the SPI queue every chunk. MEASURED 2026-07-08 net-neutral:
|
|
498
|
-
# CS-held at 36-row/14-chunk = 58.3fps vs draining 58.7 (noise). The fused flush is
|
|
499
|
-
# NOT drain-bound — pipelining doesn't help. The ~1.6ms gap vs non-jsx's present
|
|
500
|
-
# path (11.9ms/65fps) is the RASTER ROUTINE: jsx replays a full reactive display
|
|
501
|
-
# list (64 nodes: clip/style/layout) per chunk vs present's lean command list.
|
|
502
|
-
# Closing it needs a fused-raster→command-list rewrite, not drain-vs-CS-held.
|
|
503
|
-
# Left 0 (draining path proven); code kept in display.cpp gated off. Do not retry
|
|
504
|
-
# CS-held at other chunk sizes: 16-row = 47.5fps (per-chunk overhead x31 dominates).
|
|
505
|
-
# PROBE RESULT 2026-07-08: rasterSum~4350us / flushWall~11800us — fused raster is only
|
|
506
|
-
# 37% of the flush and FULLY HIDDEN under DMA slot-waits. Flush is WIRE-BOUND at ~34MB/s
|
|
507
|
-
# (=present's rate). The ~1.7ms/frame beginColorStream bus-acquire cancels CS-held's
|
|
508
|
-
# pipelining gain → net-neutral. Conclusion: a fused-raster→command-list rewrite buys
|
|
509
|
-
# NOTHING (raster already hidden), and both jsx & non-jsx share the same ~11.8ms full-
|
|
510
|
-
# screen wire floor. The jsx↔non-jsx fps gap is APP COMPUTE (reactive tree), not flush.
|
|
511
|
-
set(GEA_EMBEDDED_FB_CS_HELD_VALUE 1)
|
|
512
|
-
|
|
423
|
+
# All app choices are declared in package.json and resolved by the CLI.
|
|
513
424
|
set(GEA_FW_CXX_SOURCES_FOR_APP ${GEA_FW_CXX_SOURCES})
|
|
514
425
|
set(GEA_FW_C_SOURCES_FOR_APP ${GEA_FW_C_SOURCES})
|
|
515
426
|
set(GEA_EMBEDDED_DIRECT_CANVAS_COMPILE_DEFINITIONS "")
|
|
@@ -538,6 +449,7 @@ set(GEA_EMBEDDED_TARGET_SERVICE_SOURCES
|
|
|
538
449
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_state.cpp"
|
|
539
450
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/frame_scheduler.cpp"
|
|
540
451
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/heap.cpp"
|
|
452
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/memory.cpp"
|
|
541
453
|
)
|
|
542
454
|
set(GEA_EMBEDDED_TARGET_HOST_SOURCES "")
|
|
543
455
|
set(GEA_EMBEDDED_TARGET_REQUIRES
|
|
@@ -549,7 +461,7 @@ set(GEA_EMBEDDED_TARGET_REQUIRES
|
|
|
549
461
|
esp_mm
|
|
550
462
|
)
|
|
551
463
|
|
|
552
|
-
if(
|
|
464
|
+
if(GEA_APP_CANVAS_ONLY)
|
|
553
465
|
set(GEA_FW_CXX_SOURCES_FOR_APP
|
|
554
466
|
"${GEA_ENGINE}/ui/canvas_element.cpp"
|
|
555
467
|
"${GEA_ENGINE}/canvas.cpp"
|
|
@@ -562,26 +474,9 @@ if(GEA_EMBEDDED_DIRECT_CANVAS_PROFILE)
|
|
|
562
474
|
"${GEA_HOST}/host/display.cpp"
|
|
563
475
|
)
|
|
564
476
|
set(GEA_FW_C_SOURCES_FOR_APP "")
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
# Reserve the full 80-row x 2-deep flush pipeline statically (radios are
|
|
569
|
-
# off in this profile, so the internal RAM is genuinely free). Without
|
|
570
|
-
# the pool the lazy per-slot mallocs hit boot-time fragmentation and the
|
|
571
|
-
# pipeline descends to 16-row chunks — ~5x the QSPI per-transaction
|
|
572
|
-
# overhead on a bandwidth-bound link.
|
|
573
|
-
GEA_EMBEDDED_DISPLAY_FLUSH_POOL_BYTES=131200
|
|
574
|
-
# Present chunks stream as data-only continuations under one held CS
|
|
575
|
-
# (window+RAMWR once per region). The per-chunk drawBitmap path sends
|
|
576
|
-
# commands per chunk and esp_lcd drains ALL in-flight DMA before every
|
|
577
|
-
# command — measured ~18MB/s effective on the 40MB/s link with zero
|
|
578
|
-
# raster/DMA overlap. See display.cpp PRESENT_CS_HELD_STREAM comment.
|
|
579
|
-
# Enabled: the CS-held path is runtime-gated in display.cpp to the gea3d
|
|
580
|
-
# half-res present (presentScale_==2); every other app still takes the
|
|
581
|
-
# drawBitmap path, so this only changes the gea3d flythrough.
|
|
582
|
-
GEA_EMBEDDED_DISPLAY_CO5300_PRESENT_CS_HELD_STREAM=1
|
|
583
|
-
)
|
|
584
|
-
else()
|
|
477
|
+
endif()
|
|
478
|
+
|
|
479
|
+
if(NOT GEA_APP_CANVAS_ONLY)
|
|
585
480
|
# i2c.cpp, launcher_button.cpp and sdcard_mount.cpp are already NC-tolerant:
|
|
586
481
|
# each checks GPIO_NUM_NC and declines to bring its peripheral up, so a board
|
|
587
482
|
# that has none of them compiles and boots without special-casing. touch.cpp
|
|
@@ -639,7 +534,6 @@ else()
|
|
|
639
534
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_runner.cpp"
|
|
640
535
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/battery_service.cpp"
|
|
641
536
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/device_control.cpp"
|
|
642
|
-
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/memory.cpp"
|
|
643
537
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/storage_service.cpp"
|
|
644
538
|
)
|
|
645
539
|
# Staging an OTA image is transport-agnostic, so it follows OTA itself rather
|
|
@@ -788,12 +682,10 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
788
682
|
# pixels (199K->92K) but was SLOWER (47->35fps, inflush 13.3->20.5ms) because the
|
|
789
683
|
# tight windows fragment into 39 chunks and the CO5300 per-window/per-chunk setup
|
|
790
684
|
# penalty dominates. Fewer, bigger windows beat fewer pixels on this panel.
|
|
791
|
-
GEA_EMBEDDED_FLUSH_ADAPTIVE_COALESCE=1
|
|
792
685
|
# Opt this FPU-less ESP32-S3 board into single-precision `number` storage:
|
|
793
686
|
# geatsc's `gea_number` typedef (runtime/gea_number.h) becomes `float` instead
|
|
794
687
|
# of soft-float `double`, so per-frame reactive/animation math runs on the
|
|
795
688
|
# hardware FPU. Default (undefined) stays `double` for test262/host correctness.
|
|
796
|
-
GEA_NUMBER_FLOAT=1
|
|
797
689
|
# ONE master switch strips ALL per-frame perf instrumentation on this board —
|
|
798
690
|
# the app "gea.perf:" line, the scheduler "perf:"/"perf-lite:" harvest, per-op
|
|
799
691
|
# refresh & canvas timing, the requestAnimationFrame queue timing, and heap
|
|
@@ -804,9 +696,7 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
804
696
|
# Production build: ALL perf instrumentation stripped (this is how the user's
|
|
805
697
|
# 60fps reference was measured). The ungated PRODFPS probe in frame_scheduler.cpp
|
|
806
698
|
# reports the true frame rate independently.
|
|
807
|
-
GEA_EMBEDDED_PERF=0
|
|
808
699
|
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG=0
|
|
809
|
-
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=0
|
|
810
700
|
GEA_EMBEDDED_TEXT_SPRITE_DIAG=0
|
|
811
701
|
# css-3d-cube reads transform+gradient every frame on every node; embed the rare
|
|
812
702
|
# fields inline in ComputedStyle (direct load, spine's access pattern) instead of the
|
|
@@ -814,27 +704,22 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
814
704
|
GEA_EMBEDDED_RARE_STYLE_INLINE=1
|
|
815
705
|
# Per-app: skip b300e2d's O(N^2) subtreeRevealsUnrecordedContent reveal-check for apps
|
|
816
706
|
# whose content never pans off-clip (bouncing-balls-jsx). See the value block above.
|
|
817
|
-
GEA_EMBEDDED_SUBTREE_REVEAL_CHECK=${GEA_EMBEDDED_REVEAL_CHECK_VALUE}
|
|
818
|
-
GEA_EMBEDDED_SKIP_POSITION_INLINE_RECORD=${GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE}
|
|
819
707
|
# DIAG 2026-07-08: uniting dirty into one full-screen bbox saves ~1.2ms of
|
|
820
708
|
# dirty-tracking but forces the RENDER to re-rasterize every node in the bbox
|
|
821
709
|
# each frame — including the static 26vmin FPS badge, measured at t:2136us/frame
|
|
822
710
|
# (bigger than all 64 balls' fill). Keeping the sparse per-ball rects lets the
|
|
823
711
|
# replay re-raster the badge only where a ball actually overlaps it ("only
|
|
824
712
|
# re-render the changing parts"); the flush still coalesces via ADAPTIVE_COALESCE.
|
|
825
|
-
GEA_EMBEDDED_BROAD_DIRTY_BBOX=1
|
|
826
713
|
GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_STREAM_FLUSH=1
|
|
827
714
|
# Per-app: pipeline the fused framebuffer flush like the present path (see value
|
|
828
715
|
# block above). Takes priority over FRAMEBUFFER_STREAM_FLUSH's draining txColor
|
|
829
716
|
# in display.cpp (streamFlush only runs when csHeldStream is false).
|
|
830
|
-
GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_CS_HELD_STREAM=${GEA_EMBEDDED_FB_CS_HELD_VALUE}
|
|
831
717
|
# CS-held data-only present stream (window+RAMWR once per region, chunks stream as
|
|
832
718
|
# continuations under one held CS). The per-chunk drawBitmap path drains ALL in-flight
|
|
833
719
|
# DMA before every command, serializing raster against the wire (~18MB/s effective,
|
|
834
720
|
# measured [chunk.probe] overlap=0). CS-held keeps the queue command-free mid-stream so
|
|
835
721
|
# a chunk's raster overlaps the previous chunk's DMA → flush approaches the 40MB/s wire
|
|
836
722
|
# floor (~10.3ms). Runtime-gated in display.cpp to any full-region present.
|
|
837
|
-
GEA_EMBEDDED_DISPLAY_CO5300_PRESENT_CS_HELD_STREAM=1
|
|
838
723
|
# NOTE (2026-07-07): overlapping the flush with the app's next-frame compute by moving
|
|
839
724
|
# the flush to a separate present task was tested in 4 configs, all WORSE than the
|
|
840
725
|
# inline 50fps: core-1 task DEADLOCKS (CO5300 held-CS SPI wedge); same-core (low-prio,
|
|
@@ -861,7 +746,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
|
861
746
|
# Old-spine comparison mode: persistent framebuffer path, no replay-fused
|
|
862
747
|
# flush. This keeps canvas-3d on the path used by the 70-90fps historical
|
|
863
748
|
# measurements while we compare the newer runtime/binary size separately.
|
|
864
|
-
GEA_EMBEDDED_DISPLAY_FUSE_REPLAY_FLUSH=${GEA_EMBEDDED_FUSE_FLUSH_VALUE}
|
|
865
749
|
# Golden (e6614f6a, 62fps) used no partial-flush edge pad and showed no smudge.
|
|
866
750
|
# The 2px all-sides pad inflates every per-rect ball flush window (~24/frame:
|
|
867
751
|
# 15k -> 24k px). Drop it; if the CO5300 left-edge smudge reappears it's a
|
|
@@ -1012,10 +896,8 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
|
1012
896
|
)
|
|
1013
897
|
add_custom_command(
|
|
1014
898
|
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
1015
|
-
COMMAND ${
|
|
1016
|
-
"
|
|
1017
|
-
"GEA_EMBEDDED_NUMBER_F32=${GEA_EMBEDDED_NUMBER_F32}"
|
|
1018
|
-
node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
899
|
+
COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
900
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
1019
901
|
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
1020
902
|
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
1021
903
|
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
@@ -1029,6 +911,7 @@ add_custom_command(
|
|
|
1029
911
|
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
1030
912
|
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
1031
913
|
DEPENDS
|
|
914
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
1032
915
|
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
1033
916
|
${_ACTIVE_APP_SRCS}
|
|
1034
917
|
${_ACTIVE_APP_ASSETS}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
include("${CMAKE_CURRENT_LIST_DIR}/../cmake/gea_build_config.cmake")
|
|
1
2
|
cmake_minimum_required(VERSION 3.13)
|
|
2
3
|
|
|
3
4
|
set(PICO_BOARD_HEADER_DIRS "${CMAKE_CURRENT_LIST_DIR}/boards" CACHE STRING "Pico board header search dirs")
|
|
@@ -77,13 +78,8 @@ pico_enable_stdio_uart(gea_rp2350_tufty_2350_bringup 0)
|
|
|
77
78
|
pico_add_extra_outputs(gea_rp2350_tufty_2350_bringup)
|
|
78
79
|
|
|
79
80
|
set(GEA_EMBEDDED_APP "" CACHE STRING "Gea app id to compile into the RP2350 firmware")
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
set(GEA_RP2350_TUFTY_CSS_DEVICE_PIXEL_RATIO "1.0")
|
|
83
|
-
else()
|
|
84
|
-
set(GEA_RP2350_TUFTY_PANEL_SCALE 1)
|
|
85
|
-
set(GEA_RP2350_TUFTY_CSS_DEVICE_PIXEL_RATIO "${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}")
|
|
86
|
-
endif()
|
|
81
|
+
set(GEA_RP2350_TUFTY_PANEL_SCALE 1)
|
|
82
|
+
set(GEA_RP2350_TUFTY_CSS_DEVICE_PIXEL_RATIO "${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}")
|
|
87
83
|
math(EXPR GEA_RP2350_TUFTY_DISPLAY_WIDTH "${GEA_RP2350_TUFTY_NATIVE_WIDTH} / ${GEA_RP2350_TUFTY_PANEL_SCALE}")
|
|
88
84
|
math(EXPR GEA_RP2350_TUFTY_DISPLAY_HEIGHT "${GEA_RP2350_TUFTY_NATIVE_HEIGHT} / ${GEA_RP2350_TUFTY_PANEL_SCALE}")
|
|
89
85
|
set(GEA_RP2350_TUFTY_FRAMEBUFFER_IN_SRAM 1)
|
|
@@ -164,6 +160,7 @@ if(GEA_EMBEDDED_APP)
|
|
|
164
160
|
COMMAND "${CMAKE_COMMAND}" -E make_directory "${GEA_APP_BUILD_DIR}"
|
|
165
161
|
COMMAND "${NODE_EXECUTABLE}"
|
|
166
162
|
"${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
|
|
163
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
167
164
|
--app-dir "${GEA_APP_DIR}"
|
|
168
165
|
--entry "${GEA_APP_ENTRY}"
|
|
169
166
|
--out-dir "${GEA_APP_BUILD_DIR}"
|
|
@@ -175,6 +172,7 @@ if(GEA_EMBEDDED_APP)
|
|
|
175
172
|
--allow-any
|
|
176
173
|
COMMAND "${CMAKE_COMMAND}" -E touch "${GEA_APP_STAMP}"
|
|
177
174
|
DEPENDS
|
|
175
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
178
176
|
"${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
|
|
179
177
|
${GEA_APP_INPUTS}
|
|
180
178
|
VERBATIM
|
|
@@ -236,6 +234,7 @@ if(GEA_EMBEDDED_APP)
|
|
|
236
234
|
)
|
|
237
235
|
|
|
238
236
|
target_compile_definitions(gea_rp2350_tufty_2350_app PRIVATE
|
|
237
|
+
${GEA_EMBEDDED_APP_DEFINES}
|
|
239
238
|
GEA_CPP_VALUE_AVAILABLE=1
|
|
240
239
|
GEA_EMBEDDED_PIXEL_PANEL_ENDIAN=1
|
|
241
240
|
GEA_EMBEDDED_DISPLAY_WIDTH=${GEA_RP2350_TUFTY_DISPLAY_WIDTH}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
include("${CMAKE_CURRENT_LIST_DIR}/../cmake/gea_build_config.cmake")
|
|
1
2
|
cmake_minimum_required(VERSION 3.13)
|
|
2
3
|
|
|
3
4
|
set(PICO_BOARD_HEADER_DIRS "${CMAKE_CURRENT_LIST_DIR}/boards" CACHE STRING "Pico board header search dirs")
|
|
@@ -176,6 +177,7 @@ if(GEA_EMBEDDED_APP)
|
|
|
176
177
|
COMMAND "${CMAKE_COMMAND}" -E make_directory "${GEA_APP_BUILD_DIR}"
|
|
177
178
|
COMMAND "${NODE_EXECUTABLE}"
|
|
178
179
|
"${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
|
|
180
|
+
--build-config "${GEA_BUILD_CONFIG_JSON}"
|
|
179
181
|
--app-dir "${GEA_APP_DIR}"
|
|
180
182
|
--entry "${GEA_APP_ENTRY}"
|
|
181
183
|
--out-dir "${GEA_APP_BUILD_DIR}"
|
|
@@ -190,6 +192,7 @@ if(GEA_EMBEDDED_APP)
|
|
|
190
192
|
${GEA_EMBEDDED_FONT_ARGS}
|
|
191
193
|
COMMAND "${CMAKE_COMMAND}" -E touch "${GEA_APP_STAMP}"
|
|
192
194
|
DEPENDS
|
|
195
|
+
"${GEA_BUILD_CONFIG_JSON}"
|
|
193
196
|
"${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
|
|
194
197
|
"${GEA_CORE}/scripts/generate-gea-embedded-fonts.mjs"
|
|
195
198
|
${GEA_APP_INPUTS}
|
|
@@ -254,6 +257,7 @@ if(GEA_EMBEDDED_APP)
|
|
|
254
257
|
)
|
|
255
258
|
|
|
256
259
|
target_compile_definitions(gea_rp2350_touch_amoled_241_app PRIVATE
|
|
260
|
+
${GEA_EMBEDDED_APP_DEFINES}
|
|
257
261
|
GEA_CPP_VALUE_AVAILABLE=1
|
|
258
262
|
GEA_EMBEDDED_PIXEL_PANEL_ENDIAN=1
|
|
259
263
|
GEA_EMBEDDED_DISPLAY_WIDTH=450
|