-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathplatformio.ini
More file actions
78 lines (68 loc) · 1.95 KB
/
platformio.ini
File metadata and controls
78 lines (68 loc) · 1.95 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
[platformio]
default_envs = default
extra_configs = platformio.local.ini
packages_dir = .pio/packages
build_cache_dir = .pio/build_cache
[papyrix]
version = 1.20.3
[base]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
check_tool = cppcheck
check_flags = --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unmatchedSuppression --suppress=*:*/.pio/* --inline-suppr
check_skip_packages = yes
build_unflags = -fno-lto -fexceptions
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_upload.offset_address = 0x10000
build_flags =
-flto=auto
-fno-exceptions
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
-DDISABLE_FS_H_WARNING=1
# Enable UTF-8 filenames for Cyrillic and other non-ASCII characters
-DUSE_UTF8_LONG_NAMES=1
# SdFat: close file handle in FsFile destructor (defense-in-depth against FD leaks)
-DDESTRUCTOR_CLOSES_FILE=1
# https://libexpat.github.io/doc/api/latest/#XML_GE
-DXML_GE=1
# Enable DTD processing so XML_UseForeignDTD works for HTML entity resolution
-DXML_DTD
-DXML_CONTEXT_BYTES=512
-std=c++2a
-Isrc
-Ilib
-Ilib/Epub
-Ilib/Fb2
; Board configuration
board_build.flash_mode = dio
board_build.flash_size = 16MB
board_build.partitions = partitions.csv
board_build.filesystem = littlefs
extra_scripts =
pre:scripts/build_html.py
; Libraries (SDK libs now in lib/ folder)
lib_deps =
bblanchon/ArduinoJson @ 7.4.2
ricmoo/QRCode @ 0.0.1
kikuchan98/pngle @ 1.0.2
file://lib/Hyphenation
[env:default]
extends = base
build_flags =
${base.build_flags}
-DPAPYRIX_VERSION=\"${papyrix.version}-dev\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2
[env:gh_release]
extends = base
build_flags =
${base.build_flags}
-DPAPYRIX_VERSION=\"${papyrix.version}\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=0