Skip to content

Commit d1810e7

Browse files
committed
define dependencies to eliminate the need for a deep+ scan
1 parent ac96fb9 commit d1810e7

File tree

3 files changed

+173
-6
lines changed

3 files changed

+173
-6
lines changed

platformio-ini-files/platformio.common.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extra_scripts =
3434
pre:build_version.py
3535
pre:build_webui.py
3636
; post:build_firmwarezip.py ; Optional, build firmware ZIP file for flash tool
37-
lib_ldf_mode = deep+
37+
lib_ldf_mode = off ; off chain deep chain+ deep+
3838
board_build.filesystem = littlefs
3939

4040
; COM1, /dev/ttyUSB0, /dev/tty.SLAB_USBtoUART etc.

platformio-sample.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ extra_scripts =
112112
pre:build_version.py
113113
pre:build_webui.py
114114
; post:build_firmwarezip.py ; Optional, build firmware ZIP file for flash tool
115-
lib_ldf_mode = deep+
115+
lib_ldf_mode = off ; off chain deep chain+ deep+
116116
upload_speed = 460800 ;921600
117117
;upload_port = COM1 ; Windows
118118
upload_port = /dev/ttyUSB0 ; Linux/WSL

src/CMakeLists.txt

Lines changed: 171 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,173 @@
1-
# This file was automatically generated for projects
2-
# without default 'CMakeLists.txt' file.
1+
cmake_minimum_required(VERSION 3.16.0)
32

4-
FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*)
3+
set(INCLUDES
4+
${CMAKE_SOURCE_DIR}/include
5+
${CMAKE_SOURCE_DIR}/include/pinmap
56

6-
idf_component_register(SRCS ${app_sources})
7+
${CMAKE_SOURCE_DIR}/lib/bus
8+
${CMAKE_SOURCE_DIR}/lib/bus/adamnet
9+
${CMAKE_SOURCE_DIR}/lib/bus/comlynx
10+
${CMAKE_SOURCE_DIR}/lib/bus/cx16_i2c
11+
${CMAKE_SOURCE_DIR}/lib/bus/drivewire
12+
${CMAKE_SOURCE_DIR}/lib/bus/h89
13+
${CMAKE_SOURCE_DIR}/lib/bus/iec
14+
${CMAKE_SOURCE_DIR}/lib/bus/iwm
15+
${CMAKE_SOURCE_DIR}/lib/bus/mac
16+
${CMAKE_SOURCE_DIR}/lib/bus/rc2014bus
17+
${CMAKE_SOURCE_DIR}/lib/bus/rc2014sio
18+
${CMAKE_SOURCE_DIR}/lib/bus/rs232
19+
${CMAKE_SOURCE_DIR}/lib/bus/s100spi
20+
${CMAKE_SOURCE_DIR}/lib/bus/sio
21+
22+
${CMAKE_SOURCE_DIR}/lib/clock
23+
${CMAKE_SOURCE_DIR}/lib/compat
24+
${CMAKE_SOURCE_DIR}/lib/config
25+
26+
${CMAKE_SOURCE_DIR}/lib/console
27+
${CMAKE_SOURCE_DIR}/lib/console/Commands
28+
${CMAKE_SOURCE_DIR}/lib/console/cxxopts
29+
${CMAKE_SOURCE_DIR}/lib/console/Helpers
30+
${CMAKE_SOURCE_DIR}/lib/console/improv
31+
${CMAKE_SOURCE_DIR}/lib/console/ute
32+
33+
${CMAKE_SOURCE_DIR}/lib/device
34+
${CMAKE_SOURCE_DIR}/lib/device/adamnet
35+
${CMAKE_SOURCE_DIR}/lib/device/comlynx
36+
${CMAKE_SOURCE_DIR}/lib/device/cx16_i2c
37+
${CMAKE_SOURCE_DIR}/lib/device/drivewire
38+
${CMAKE_SOURCE_DIR}/lib/device/h89
39+
${CMAKE_SOURCE_DIR}/lib/device/iec
40+
${CMAKE_SOURCE_DIR}/lib/device/iwm
41+
${CMAKE_SOURCE_DIR}/lib/device/mac
42+
${CMAKE_SOURCE_DIR}/lib/device/rc2014
43+
${CMAKE_SOURCE_DIR}/lib/device/rs232
44+
${CMAKE_SOURCE_DIR}/lib/device/s100spi
45+
${CMAKE_SOURCE_DIR}/lib/device/sio
46+
47+
${CMAKE_SOURCE_DIR}/lib/devrelay
48+
${CMAKE_SOURCE_DIR}/lib/devrelay/commands
49+
${CMAKE_SOURCE_DIR}/lib/devrelay/service
50+
${CMAKE_SOURCE_DIR}/lib/devrelay/slip
51+
${CMAKE_SOURCE_DIR}/lib/devrelay/types
52+
53+
${CMAKE_SOURCE_DIR}/lib/display
54+
${CMAKE_SOURCE_DIR}/lib/encoding
55+
${CMAKE_SOURCE_DIR}/lib/encrypt
56+
${CMAKE_SOURCE_DIR}/lib/FileSystem
57+
${CMAKE_SOURCE_DIR}/lib/fn_esp_http_client
58+
${CMAKE_SOURCE_DIR}/lib/fnjson
59+
${CMAKE_SOURCE_DIR}/lib/ftp
60+
${CMAKE_SOURCE_DIR}/lib/fuji
61+
${CMAKE_SOURCE_DIR}/lib/hardware
62+
${CMAKE_SOURCE_DIR}/lib/http
63+
${CMAKE_SOURCE_DIR}/lib/meatloaf
64+
${CMAKE_SOURCE_DIR}/lib/media
65+
${CMAKE_SOURCE_DIR}/lib/modem-sniffer
66+
${CMAKE_SOURCE_DIR}/lib/network-protocol
67+
${CMAKE_SOURCE_DIR}/lib/printer-emulator
68+
${CMAKE_SOURCE_DIR}/lib/qrcode
69+
${CMAKE_SOURCE_DIR}/lib/runcpm
70+
${CMAKE_SOURCE_DIR}/lib/sam
71+
${CMAKE_SOURCE_DIR}/lib/task
72+
${CMAKE_SOURCE_DIR}/lib/tcpip
73+
${CMAKE_SOURCE_DIR}/lib/telnet
74+
${CMAKE_SOURCE_DIR}/lib/tinyxml2
75+
${CMAKE_SOURCE_DIR}/lib/TNFSlib
76+
${CMAKE_SOURCE_DIR}/lib/utils
77+
${CMAKE_SOURCE_DIR}/lib/webdav
78+
)
79+
80+
FILE(GLOB_RECURSE SOURCES
81+
${CMAKE_SOURCE_DIR}/src/*.cpp
82+
83+
${CMAKE_SOURCE_DIR}/lib/bus/*.cpp
84+
${CMAKE_SOURCE_DIR}/lib/bus/adamnet/*.cpp
85+
${CMAKE_SOURCE_DIR}/lib/bus/comlynx/*.cpp
86+
${CMAKE_SOURCE_DIR}/lib/bus/cx16_i2c/*.cpp
87+
${CMAKE_SOURCE_DIR}/lib/bus/drivewire/*.cpp
88+
${CMAKE_SOURCE_DIR}/lib/bus/h89/*.cpp
89+
${CMAKE_SOURCE_DIR}/lib/bus/iec/*.cpp
90+
${CMAKE_SOURCE_DIR}/lib/bus/iwm/*.cpp
91+
${CMAKE_SOURCE_DIR}/lib/bus/mac/*.cpp
92+
${CMAKE_SOURCE_DIR}/lib/bus/rc2014bus/*.cpp
93+
${CMAKE_SOURCE_DIR}/lib/bus/rc2014sio/*.cpp
94+
${CMAKE_SOURCE_DIR}/lib/bus/rs232/*.cpp
95+
${CMAKE_SOURCE_DIR}/lib/bus/s100spi/*.cpp
96+
${CMAKE_SOURCE_DIR}/lib/bus/sio/*.cpp
97+
98+
${CMAKE_SOURCE_DIR}/lib/clock/*.cpp
99+
${CMAKE_SOURCE_DIR}/lib/compat/*.c
100+
${CMAKE_SOURCE_DIR}/lib/config/*.cpp
101+
102+
${CMAKE_SOURCE_DIR}/lib/console/*.cpp
103+
${CMAKE_SOURCE_DIR}/lib/console/Commands/*.cpp
104+
${CMAKE_SOURCE_DIR}/lib/console/ute/*.cpp
105+
${CMAKE_SOURCE_DIR}/lib/console/improv/*.cpp
106+
${CMAKE_SOURCE_DIR}/lib/console/Helpers/*.cpp
107+
108+
${CMAKE_SOURCE_DIR}/lib/device/*.cpp
109+
${CMAKE_SOURCE_DIR}/lib/device/adamnet/*.cpp
110+
${CMAKE_SOURCE_DIR}/lib/device/comlynx/*.cpp
111+
${CMAKE_SOURCE_DIR}/lib/device/cx16_i2c/*.cpp
112+
${CMAKE_SOURCE_DIR}/lib/device/drivewire/*.cpp
113+
${CMAKE_SOURCE_DIR}/lib/device/h89/*.cpp
114+
${CMAKE_SOURCE_DIR}/lib/device/iec/*.cpp
115+
${CMAKE_SOURCE_DIR}/lib/device/iwm/*.cpp
116+
${CMAKE_SOURCE_DIR}/lib/device/mac/*.cpp
117+
${CMAKE_SOURCE_DIR}/lib/device/rc2014/*.cpp
118+
${CMAKE_SOURCE_DIR}/lib/device/rs232/*.cpp
119+
${CMAKE_SOURCE_DIR}/lib/device/s100spi/*.cpp
120+
${CMAKE_SOURCE_DIR}/lib/device/sio/*.cpp
121+
122+
${CMAKE_SOURCE_DIR}/lib/devrelay/*.cpp
123+
${CMAKE_SOURCE_DIR}/lib/devrelay/commands/*.cpp
124+
${CMAKE_SOURCE_DIR}/lib/devrelay/service/*.cpp
125+
${CMAKE_SOURCE_DIR}/lib/devrelay/slip/*.cpp
126+
${CMAKE_SOURCE_DIR}/lib/devrelay/types/*.cpp
127+
128+
${CMAKE_SOURCE_DIR}/lib/display/*.cpp
129+
${CMAKE_SOURCE_DIR}/lib/encoding/*.cpp
130+
${CMAKE_SOURCE_DIR}/lib/encrypt/*.cpp
131+
${CMAKE_SOURCE_DIR}/lib/FileSystem/*.cpp
132+
${CMAKE_SOURCE_DIR}/lib/fn_esp_http_client/*.cpp
133+
${CMAKE_SOURCE_DIR}/lib/fnjson/*.cpp
134+
${CMAKE_SOURCE_DIR}/lib/ftp/*.cpp
135+
${CMAKE_SOURCE_DIR}/lib/fuji/*.cpp
136+
${CMAKE_SOURCE_DIR}/lib/gpiox/*.cpp
137+
${CMAKE_SOURCE_DIR}/lib/hardware/*.cpp
138+
${CMAKE_SOURCE_DIR}/lib/http/*.cpp
139+
${CMAKE_SOURCE_DIR}/lib/meatloaf/*.cpp
140+
${CMAKE_SOURCE_DIR}/lib/media/*.cpp
141+
${CMAKE_SOURCE_DIR}/lib/media/**/*.cpp
142+
${CMAKE_SOURCE_DIR}/lib/modem-sniffer/*.cpp
143+
${CMAKE_SOURCE_DIR}/lib/network-protocol/*.cpp
144+
${CMAKE_SOURCE_DIR}/lib/printer-emulator/*.cpp
145+
${CMAKE_SOURCE_DIR}/lib/qrcode/*.c
146+
${CMAKE_SOURCE_DIR}/lib/qrcode/*.cpp
147+
${CMAKE_SOURCE_DIR}/lib/sam/*.c
148+
${CMAKE_SOURCE_DIR}/lib/sam/*.cpp
149+
${CMAKE_SOURCE_DIR}/lib/task/*.cpp
150+
${CMAKE_SOURCE_DIR}/lib/tcpip/*.cpp
151+
${CMAKE_SOURCE_DIR}/lib/telnet/*.c
152+
${CMAKE_SOURCE_DIR}/lib/tinyxml2/*.cpp
153+
${CMAKE_SOURCE_DIR}/lib/TNFSlib/*.cpp
154+
${CMAKE_SOURCE_DIR}/lib/utils/*.cpp
155+
${CMAKE_SOURCE_DIR}/lib/webdav/*.cpp
156+
)
157+
158+
idf_component_register(
159+
INCLUDE_DIRS ${INCLUDES}
160+
SRCS ${SOURCES}
161+
PRIV_REQUIRES esp_driver_uart esp_netif esp_driver_gpio fatfs vfs json esp_wifi mbedtls console app_update spi_flash mlff esp_driver_ledc expat http_parser esp-tls tcp_transport esp_driver_gptimer esp_driver_tsens esp_http_client libssh
162+
)
163+
164+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-value)
165+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-variable)
166+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-but-set-variable)
167+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-function)
168+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-parameter)
169+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable)
170+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-return-type)
171+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-format-extra-args)
172+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-implicit-fallthrough)
173+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-missing-field-initializers)

0 commit comments

Comments
 (0)