build script refactored
This commit is contained in:
parent
f710939e89
commit
2a89f5f190
|
|
@ -3,28 +3,15 @@ include(${CMAKE_CURRENT_LIST_DIR}/extlibs/libespfs/cmake/include.cmake)
|
||||||
|
|
||||||
if(CONFIG_WEBGUIAPP_LORAWAN_ENABLE)
|
if(CONFIG_WEBGUIAPP_LORAWAN_ENABLE)
|
||||||
set(lora_SRCS "src/LoRaWAN.c")
|
set(lora_SRCS "src/LoRaWAN.c")
|
||||||
|
set(lora_REQ "ttn-esp")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_WEBGUIAPP_GPRS_ENABLE)
|
if(CONFIG_WEBGUIAPP_GPRS_ENABLE)
|
||||||
set(gprs_SRCS "src/GSMTransport.c")
|
set(gprs_SRCS "src/GSMTransport.c")
|
||||||
|
set(gprs_REQ "esp_modem")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
idf_component_register(
|
idf_component_register(
|
||||||
|
|
||||||
SRCS ${jreadwrite_SRCS}
|
|
||||||
INCLUDE_DIRS ${jreadwrite_INCLUDE_DIRS}
|
|
||||||
|
|
||||||
SRCS ${lora_SRCS}
|
|
||||||
REQUIRES ttn-esp32
|
|
||||||
|
|
||||||
SRCS ${gprs_SRCS}
|
|
||||||
REQUIRES esp_modem
|
|
||||||
|
|
||||||
SRCS ${libespfs_SRCS}
|
|
||||||
INCLUDE_DIRS ${libespfs_INCLUDE_DIRS}
|
|
||||||
PRIV_INCLUDE_DIRS ${libespfs_PRIV_INCLUDE_DIRS}
|
|
||||||
PRIV_REQUIRES ${libespfs_PRIV_REQUIRES}
|
|
||||||
|
|
||||||
SRCS "src/SysConfiguration.c"
|
SRCS "src/SysConfiguration.c"
|
||||||
"src/romfs.c"
|
"src/romfs.c"
|
||||||
"src/spifs.c"
|
"src/spifs.c"
|
||||||
|
|
@ -43,12 +30,18 @@ idf_component_register(
|
||||||
src/RestApiHandler.c
|
src/RestApiHandler.c
|
||||||
src/SysComm.c
|
src/SysComm.c
|
||||||
src/SysErr.c
|
src/SysErr.c
|
||||||
# "src/mDNS.c"
|
${lora_SRCS}
|
||||||
|
${gprs_SRCS}
|
||||||
|
${jreadwrite_SRCS}
|
||||||
|
${libespfs_SRCS}
|
||||||
|
|
||||||
INCLUDE_DIRS "."
|
INCLUDE_DIRS "."
|
||||||
"include"
|
"include"
|
||||||
"src"
|
"src"
|
||||||
"extlibs/jReadWrite"
|
${jreadwrite_INCLUDE_DIRS}
|
||||||
|
${libespfs_INCLUDE_DIRS}
|
||||||
|
|
||||||
|
PRIV_INCLUDE_DIRS ${libespfs_PRIV_INCLUDE_DIRS}
|
||||||
|
|
||||||
REQUIRES nvs_flash
|
REQUIRES nvs_flash
|
||||||
spiffs
|
spiffs
|
||||||
|
|
@ -58,10 +51,13 @@ idf_component_register(
|
||||||
mqtt
|
mqtt
|
||||||
esp_https_ota
|
esp_https_ota
|
||||||
app_update
|
app_update
|
||||||
# mdns
|
|
||||||
esp_wifi
|
esp_wifi
|
||||||
esp_http_server
|
esp_http_server
|
||||||
esp_eth
|
esp_eth
|
||||||
|
${lora_REQ}
|
||||||
|
${gprs_REQ}
|
||||||
|
|
||||||
|
PRIV_REQUIRES ${libespfs_PRIV_REQUIRES}
|
||||||
|
|
||||||
EMBED_FILES "upload_script.html"
|
EMBED_FILES "upload_script.html"
|
||||||
EMBED_TXTFILES ca_cert.pem
|
EMBED_TXTFILES ca_cert.pem
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user