feature(script): update compiling script for new make and cmake

This commit is contained in:
dongheng
2019-08-02 10:28:03 +08:00
parent 6b077372ef
commit 114d2b5b86
57 changed files with 1879 additions and 791 deletions

View File

@ -1,17 +1,21 @@
set(include_dirs "include")
if(CONFIG_USING_SPIFFS)
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_PRIV_INCLUDEDIRS "." "spiffs/src")
set(COMPONENT_SRCS "esp_spiffs.c"
"spiffs_api.c"
"spiffs/src/spiffs_cache.c"
"spiffs/src/spiffs_check.c"
"spiffs/src/spiffs_gc.c"
"spiffs/src/spiffs_hydrogen.c"
"spiffs/src/spiffs_nucleus.c")
set(priv_include_dirs "." "spiffs/src")
set(srcs "esp_spiffs.c"
"spiffs_api.c"
"spiffs/src/spiffs_cache.c"
"spiffs/src/spiffs_check.c"
"spiffs/src/spiffs_gc.c"
"spiffs/src/spiffs_hydrogen.c"
"spiffs/src/spiffs_nucleus.c")
endif()
set(COMPONENT_REQUIRES "freertos" "spi_flash")
set(COMPONENT_PRIV_REQUIRES "esp8266" "bootloader_support")
register_component()
set(requires "spi_flash" "vfs")
set(priv_requires "bootloader_support")
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "${include_dirs}"
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
REQUIRES "${requires}"
PRIV_REQUIRES "${priv_requires}")