move Mongoose options to mongoose_config

This commit is contained in:
Sergio R. Caprile 2024-04-19 10:47:16 -03:00
parent ec5531dbf4
commit 93477c8db4
4 changed files with 7 additions and 7 deletions

View File

@ -3,10 +3,5 @@ idf_component_register(SRCS "main.c"
"net.c"
"packed_fs.c"
"mongoose.c")
component_compile_options(-DMG_ENABLE_LINES)
component_compile_options(-DMG_ENABLE_PACKED_FS)
component_compile_options(-DHTTP_URL="http://0.0.0.0:80")
component_compile_options(-DHTTPS_URL="https://0.0.0.0:443")
component_compile_options(-DMG_TLS=MG_TLS_NONE) # change to 'MG_TLS_MBED' to enable TLS
component_compile_options(-DMG_OTA=MG_OTA_CUSTOM)
component_compile_options(-DMG_DEVICE=MG_DEVICE_CUSTOM)

View File

@ -1 +1,6 @@
#define MG_ARCH MG_ARCH_ESP32
#define MG_ENABLE_PACKED_FS 1
#define MG_TLS MG_TLS_NONE // change to 'MG_TLS_MBED' to enable TLS
#define MG_OTA MG_OTA_CUSTOM
#define MG_DEVICE MG_DEVICE_CUSTOM

View File

@ -5,6 +5,4 @@ idf_component_register(SRCS "main.c"
"net.c"
"packed_fs.c"
"mongoose.c")
component_compile_options(-DMG_ENABLE_LINES=1)
component_compile_options(-DMG_ENABLE_PACKED_FS=1)
component_compile_options(-DUART_API_IMPLEMENTED=1)

View File

@ -1 +1,3 @@
#define MG_ARCH MG_ARCH_ESP32
#define MG_ENABLE_PACKED_FS 1