forked from espterm/espterm-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
206 lines (191 loc) · 6.52 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.7)
###################################################################
# This is a fake CMake config to make the project work in CLion #
# Do not attempt to build it with cmake, use make instead. #
###################################################################
project(ESPTerm)
set(CMAKE_CXX_STANDARD GNU99)
set(SOURCE_FILES
libesphttpd/core/auth.c
libesphttpd/core/base64.c
libesphttpd/core/httpd.c
libesphttpd/core/httpdespfs.c
libesphttpd/core/httpd-freertos.c
libesphttpd/core/httpd-nonos.c
libesphttpd/core/sha1.c
libesphttpd/core/uptime.c
libesphttpd/core/httpd-platform.h
libesphttpd/espfs/heatshrink_decoder.c
libesphttpd/espfs/heatshrink_config_custom.h
libesphttpd/espfs/espfsformat.h
libesphttpd/espfs/espfs.c
libesphttpd/include/webpages-espfs.h
libesphttpd/include/user_config.h
libesphttpd/include/uptime.h
libesphttpd/include/sha1.h
libesphttpd/include/platform.h
libesphttpd/include/logging.h
libesphttpd/include/httpd.h
libesphttpd/include/httpdespfs.h
libesphttpd/include/espmissingincludes.h
libesphttpd/include/espfs.h
libesphttpd/include/esp8266.h
libesphttpd/include/cgiwebsocket.h
libesphttpd/include/cgiflash.h
libesphttpd/include/captdns.h
libesphttpd/include/base64.h
libesphttpd/include/auth.h
libesphttpd/lib/heatshrink/heatshrink_encoder.h
libesphttpd/lib/heatshrink/heatshrink_decoder.h
libesphttpd/lib/heatshrink/heatshrink_config.h
libesphttpd/lib/heatshrink/heatshrink_common.h
libesphttpd/lib/heatshrink/greatest.h
libesphttpd/lib/heatshrink/test_heatshrink_static.c
libesphttpd/lib/heatshrink/test_heatshrink_dynamic_theft.c
libesphttpd/lib/heatshrink/test_heatshrink_dynamic.c
libesphttpd/lib/heatshrink/heatshrink_encoder.c
libesphttpd/lib/heatshrink/heatshrink_decoder.c
libesphttpd/lib/heatshrink/heatshrink.c
libesphttpd/mkupgimg/mkupgimg.c
libesphttpd/util/cgiwebsocket.c
libesphttpd/util/cgiflash.c
libesphttpd/util/captdns.c
libesphttpd/esphttpclient/httpclient.c
libesphttpd/include/httpclient.h
esp_iot_sdk_v1.5.2/include/user_interface.h
esp_iot_sdk_v1.5.2/include/upgrade.h
esp_iot_sdk_v1.5.2/include/uart_register.h
esp_iot_sdk_v1.5.2/include/spi_register.h
esp_iot_sdk_v1.5.2/include/spi_flash.h
esp_iot_sdk_v1.5.2/include/sntp.h
esp_iot_sdk_v1.5.2/include/smartconfig.h
esp_iot_sdk_v1.5.2/include/slc_register.h
esp_iot_sdk_v1.5.2/include/queue.h
esp_iot_sdk_v1.5.2/include/pwm.h
esp_iot_sdk_v1.5.2/include/ping.h
esp_iot_sdk_v1.5.2/include/os_type.h
esp_iot_sdk_v1.5.2/include/osapi.h
esp_iot_sdk_v1.5.2/include/mesh.h
esp_iot_sdk_v1.5.2/include/mem.h
esp_iot_sdk_v1.5.2/include/ip_addr.h
esp_iot_sdk_v1.5.2/include/gpio.h
esp_iot_sdk_v1.5.2/include/ets_sys.h
esp_iot_sdk_v1.5.2/include/esp_sdk_ver.h
esp_iot_sdk_v1.5.2/include/espnow.h
esp_iot_sdk_v1.5.2/include/espconn.h
esp_iot_sdk_v1.5.2/include/eagle_soc.h
esp_iot_sdk_v1.5.2/include/c_types.h
esp_iot_sdk_v1.5.2/include/at_custom.h
esp_iot_sdk_v1.5.2/include/airkiss.h
esp_iot_sdk_v1.5.2/include/json/jsontree.h
esp_iot_sdk_v1.5.2/include/json/jsonparse.h
esp_iot_sdk_v1.5.2/include/json/json.h
include/user_config.h
include/ets_sys_extra.h
include/helpers.h
user/io.c
user/io.h
user/cgi_wifi.c
user/cgi_wifi.h
user/cgi_persist.c
user/cgi_persist.h
user/cgi_network.c
user/cgi_network.h
user/cgi_term_cfg.c
user/cgi_term_cfg.h
user/cgi_system.c
user/uart_driver.c
user/uart_handler.c
user/ansi_parser.c
user/ansi_parser.h
user/ansi_parser.rl
user/screen.c
user/user_main.c
user/serial.c
user/serial.h
user/routes.c
user/routes.h
user/cgi_main.c
user/cgi_main.h
user/cgi_sockets.c
user/cgi_sockets.c
user/cgi_sockets.h
user/ansi_parser_callbacks.c
user/ansi_parser_callbacks.h
user/wifimgr.c
user/wifimgr.h
user/persist.c
user/persist.h
user/syscfg.c
user/syscfg.h
user/ascii.h
user/sgr.h
user/apars_utf8.c
user/apars_utf8.h
user/apars_logging.h
user/version.h
user/apars_csi.c
user/apars_csi.h
user/apars_short.c
user/apars_short.h
user/apars_string.c
user/apars_string.h
user/apars_osc.c
user/apars_osc.h
user/apars_dcs.c
user/apars_dcs.h
user/uart_buffer.c
user/uart_buffer.h
user/jstring.c
user/jstring.h
user/character_sets.h
user/ini_parser.h
user/ini_parser.c
user/ini_parser.rl
user/utf8.h
user/utf8.c
user/cgi_logging.h user/config_xmacros.h user/config_xmacros.c)
include_directories(include)
include_directories(libesphttpd/esphttpclient)
include_directories(user)
include_directories(libesphttpd/include)
include_directories(libesphttpd/espfs)
include_directories(libesphttpd/core)
include_directories(libesphttpd/lib/heatshrink)
include_directories(esp_iot_sdk_v1.5.2/include)
add_definitions(
-D__ets__
-DICACHE_FLASH
-DDEBUG_LOGBUF_SIZE=2048
-DUSE_OPTIMIZE_PRINTF=1
-DHTTPD_MAX_CONNECTIONS=5
-DHTTPD_STACKSIZE=1000
-DICACHE_FLASH_ATTR=
-DICACHE_RODATA_ATTR=
-DFLAG_GZIP=2
-DESP_LANG="en"
-DGIT_HASH_BACKEND="asdf"
-DGIT_HASH_FRONTEND="asdf"
-DGIT_HASH="blabla"
-D__TIMEZONE__="UTC"
-DESPFS_HEATSHRINK
-DDEBUG_ANSI=1
-DDEBUG_ANSI_NOIMPL=1
-DDEBUG_CAPTDNS=1
-DDEBUG_CGI=0
-DDEBUG_ESPFS=1
-DDEBUG_HEAP=1
-DDEBUG_HTTP=1
-DDEBUG_HTTPC=1
-DDEBUG_INPUT=1
-DDEBUG_MALLOC=1
-DDEBUG_PERSIST=1
-DDEBUG_ROUTER=1
-DDEBUG_UTFCACHE=1
-DDEBUG_WIFI=1
-DDEBUG_WS=1
-DDEBUG_ROUTER=1
)
# all the debug keys should be listed here ^ so clion thinks they are used
# and doesn't mess up the formatting and inspections
add_executable(ESPTerm ${SOURCE_FILES})