-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsample-platformio-macos.ini
More file actions
113 lines (104 loc) · 3.36 KB
/
Copy pathsample-platformio-macos.ini
File metadata and controls
113 lines (104 loc) · 3.36 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
# macOS sample for adding the simulator to your firmware's platformio.ini.
# This sample is self-contained for builds. If you also want the PlatformIO
# IDE task entry "Run Simulator", make the consuming project own task
# registration:
# custom_run_simulator_target_owner = project
# post:.pio/libdeps/$PIOENV/simulator/run_simulator_project.py
# under extra_scripts in the consuming firmware repo.
[env:simulator]
platform = native
lib_ldf_mode = deep+
lib_compat_mode = off
; Optional native JPEG/PNG decoder mode:
; - add -DCROSSPOINT_SIM_USE_NATIVE_DECODERS under build_flags
; - change lib_ignore to: hal, WebSockets
; - uncomment the PNGdec/JPEGDEC entries under lib_deps
; Uncomment when you also add the optional project-side hook below.
; custom_run_simulator_target_owner = project
; Uncomment if host ports 8080/8081 are occupied. WebSocket uses the next port.
; custom_simulator_http_port = 18080
build_src_filter =
+<*>
; Firmware-update code remains non-destructive in the simulator.
-<network/FirmwareFlasher.cpp>
-<network/OtaBootSwitch.cpp>
-<network/OtaUpdater.cpp>
-<platform/skip_efuse_blk_check.c>
build_flags =
-std=gnu++2a
!sdl2-config --cflags --libs
-Wno-c++11-narrowing
-DSIMULATOR
-DCROSSPOINT_SIMULATOR_PROJECT_WEBSERVER
-DCROSSPOINT_VERSION=\"dev-simulator\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-DXML_GE=0
-DXML_CONTEXT_BYTES=1024
-DUSE_UTF8_LONG_NAMES=1
-DPNG_MAX_BUFFERED_PIXELS=16416
-DDISABLE_FS_H_WARNING=1
-DDESTRUCTOR_CLOSES_FILE=1
-Isrc
; -DCROSSPOINT_SIM_USE_NATIVE_DECODERS
; -Dmemcpy_P=memcpy ; For native JPEGDEC
lib_ignore = hal, PNGdec, JPEGDEC, WebSockets
extra_scripts =
pre:scripts/gen_i18n.py
pre:scripts/git_branch.py
pre:scripts/build_html.py
; Optional IDE task exposure:
; post:.pio/libdeps/$PIOENV/simulator/run_simulator_project.py
lib_deps =
simulator=https://github.com/crosspoint-reader/crosspoint-simulator
FreeInkUI=symlink://freeink-sdk/libs/ui/FreeInkUI
Icons=symlink://freeink-sdk/libs/assets/Icons
bblanchon/ArduinoJson @ 7.4.2
ricmoo/QRCode @ ^0.0.1
https://github.com/bitbank2/AnimatedGIF.git#d01888f0255fd0781fc2b8600b9111b14c999584
; Native decoder opt-in only:
; bitbank2/PNGdec @ 1.1.6
; https://github.com/bitbank2/JPEGDEC.git#86282979224c8a32fd51e091ed5a35b0c699a52b
links2004/WebSockets @ 2.7.3
[env:simulator_x3]
extends = env:simulator
build_flags =
${env:simulator.build_flags}
-DSIMULATOR_DEVICE_X3
[env:simulator_x3_uc8279]
extends = env:simulator_x3
build_flags =
${env:simulator_x3.build_flags}
-DSIMULATOR_DISPLAY_UC8279
[env:simulator_x4_uc8179]
extends = env:simulator
build_flags =
${env:simulator.build_flags}
-DSIMULATOR_DISPLAY_UC8179
[env:simulator_x4_uc8279]
extends = env:simulator
build_flags =
${env:simulator.build_flags}
-DSIMULATOR_DISPLAY_UC8279
[env:simulator_x4_pro]
extends = env:simulator
build_flags =
${env:simulator.build_flags}
-DSIMULATOR_DEVICE_X4_PRO
[env:simulator_x4_pro_uc8179]
extends = env:simulator_x4_pro
build_flags =
${env:simulator_x4_pro.build_flags}
-DSIMULATOR_DISPLAY_UC8179
[env:simulator_x4_pro_uc8279]
extends = env:simulator_x4_pro
build_flags =
${env:simulator_x4_pro.build_flags}
-DSIMULATOR_DISPLAY_UC8279
[env:simulator_sticky]
extends = env:simulator
build_flags =
${env:simulator.build_flags}
-DSIMULATOR_DEVICE_STICKY