cmake: fix source list issues

This commit is contained in:
Renz Christian Bagaporo 2018-09-13 08:56:59 +08:00 committed by Renz Bagaporo
parent 533c5e98e8
commit bc8540fec1
7 changed files with 19 additions and 23 deletions

View file

@ -1,7 +1,7 @@
set(COMPONENT_SRCS "app_trace.c"
"app_trace_util.c"
"gcov/gcov_rtio.c"
"host_file_io.c")
"host_file_io.c"
"gcov/gcov_rtio.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
if(CONFIG_SYSVIEW_ENABLE)
@ -10,10 +10,10 @@ if(CONFIG_SYSVIEW_ENABLE)
sys_view/SEGGER
sys_view/Sample/OS)
set(COMPONENT_SRCS "SEGGER/SEGGER_SYSVIEW.c"
"esp32/SEGGER_RTT_esp32.c"
"Sample/Config/SEGGER_SYSVIEW_Config_FreeRTOS.c"
"Sample/OS/SEGGER_SYSVIEW_FreeRTOS.c")
list(APPEND COMPONENT_SRCS "sys_view/SEGGER/SEGGER_SYSVIEW.c"
"sys_view/Sample/Config/SEGGER_SYSVIEW_Config_FreeRTOS.c"
"sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.c"
"sys_view/esp32/SEGGER_RTT_esp32.c")
endif()
set(COMPONENT_REQUIRES)

View file

@ -1,8 +1,8 @@
set(COMPONENT_ADD_INCLUDEDIRS .)
set(COMPONENT_SRCS "argtable3/argtable3.c"
"commands.c"
"linenoise/linenoise.c"
"split_argv.c")
set(COMPONENT_SRCS "commands.c"
"split_argv.c"
"argtable3/argtable3.c"
"linenoise/linenoise.c")
set(COMPONENT_REQUIRES)

View file

@ -37,8 +37,6 @@ else()
"freertos_hooks.c"
"gdbstub.c"
"hw_random.c"
"hwcrypto/aes.c"
"hwcrypto/sha.c"
"int_wdt.c"
"intr_alloc.c"
"ipc.c"
@ -56,7 +54,9 @@ else()
"system_api.c"
"task_wdt.c"
"wifi_init.c"
"wifi_os_adapter.c")
"wifi_os_adapter.c"
"hwcrypto/aes.c"
"hwcrypto/sha.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_REQUIRES driver tcpip_adapter)

View file

@ -4,7 +4,7 @@ set(COMPONENT_SRCS "heap_caps.c"
"multi_heap.c")
if(NOT CONFIG_HEAP_POISONING_DISABLED)
set(COMPONENT_SRCS ${COMPONENT_SRCS} multi_heap_poisoning.c)
list(APPEND COMPONENT_SRCS "multi_heap_poisoning.c")
endif()
set(COMPONENT_ADD_INCLUDEDIRS "include")

View file

@ -79,11 +79,11 @@ set(COMPONENT_SRCS "${SRC}/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly
"port/randombytes_esp32.c")
if(CONFIG_LIBSODIUM_USE_MBEDTLS_SHA)
set(COMPONENT_SRCS "port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.c"
list(APPEND COMPONENT_SRCS "port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.c"
"port/crypto_hash_mbedtls/crypto_hash_sha512_mbedtls.c")
else()
set(COMPONENT_SRCS "port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.c"
"port/crypto_hash_mbedtls/crypto_hash_sha512_mbedtls.c")
list(APPEND COMPONENT_SRCS "${SRC}/crypto_hash/sha256/cp/hash_sha256_cp.c"
"${SRC}/crypto_hash/sha512/cp/hash_sha512_cp.c")
endif()
set(COMPONENT_ADD_INCLUDEDIRS ${SRC}/include port_include)

View file

@ -1,12 +1,12 @@
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"
"spiffs_api.c")
"spiffs/src/spiffs_nucleus.c")
set(COMPONENT_REQUIRES spi_flash)
set(COMPONENT_PRIV_REQUIRES bootloader_support)

View file

@ -1,4 +0,0 @@
set(COMPONENT_SRCS "simple_wifi.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()