# Component requirements generated by expand_requirements.cmake

set(BUILD_COMPONENTS soc;log;heap;freertos;vfs;newlib;esp_ringbuf;driver;tcpip_adapter;esp_event;partition_table;app_update;spi_flash;mbedtls;micro-ecc;bootloader_support;efuse;xtensa-debug-module;app_trace;ethernet;nvs_flash;pthread;smartconfig_ack;wpa_supplicant;espcoredump;esp32;cxx;amazon-freertos-common;secure_sockets;esp_http_server;freertos_plus_tcp;bootloader;nimble;bt;console;esp_adc_cal;esptool_py;expat;wear_levelling;sdmmc;fatfs;freemodbus;lwip;nghttp;openssl;spiffs;ulp)
set(BUILD_COMPONENT_PATHS /home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/soc;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/log;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/heap;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/freertos;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/vfs;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/newlib;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/esp_ringbuf;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/driver;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/freertos_tcpip/tcpip_adapter;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/esp_event;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/partition_table;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/app_update;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/spi_flash;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/mbedtls;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/micro-ecc;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/bootloader_support;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/efuse;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/xtensa-debug-module;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/app_trace;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/freertos_tcpip/ethernet;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/nvs_flash;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/pthread;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/freertos_tcpip/smartconfig_ack;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/wpa_supplicant;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/espcoredump;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/esp32;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/cxx;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/aws_demos/application_code/espressif_code/amazon-freertos-common;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/secure_sockets;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/freertos_tcpip/esp_http_server;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/boards/esp32/components/freertos_tcpip/freertos_plus_tcp;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/bootloader;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/nimble;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/bt;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/console;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/esp_adc_cal;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/esptool_py;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/expat;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/wear_levelling;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/sdmmc;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/fatfs;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/freemodbus;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/lwip;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/nghttp;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/openssl;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/spiffs;/home/wahdan/Desktop/amazon-freertos/vendors/espressif/esp-idf/components/ulp)
set(BUILD_TEST_COMPONENTS )
set(BUILD_TEST_COMPONENT_PATHS )

# get_component_requirements: Generated function to read the dependencies of a given component.
#
# Parameters:
# - component: Name of component
# - var_requires: output variable name. Set to recursively expanded COMPONENT_REQUIRES 
#   for this component.
# - var_private_requires: output variable name. Set to recursively expanded COMPONENT_PRIV_REQUIRES 
#   for this component.
#
# Throws a fatal error if 'componeont' is not found (indicates a build system problem).
#
function(get_component_requirements component var_requires var_private_requires)
  if("${component}" STREQUAL "soc")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "log")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "heap")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "freertos")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "vfs")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "newlib")
    set(${var_requires} "vfs" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "esp_ringbuf")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "driver")
    set(${var_requires} "esp_ringbuf" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "tcpip_adapter")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "esp_event")
    set(${var_requires} "log" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "partition_table")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "app_update")
    set(${var_requires} "spi_flash;partition_table;bootloader_support" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "spi_flash")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "bootloader_support;app_update" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "mbedtls")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "micro-ecc")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "bootloader_support")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "spi_flash;mbedtls;micro-ecc;efuse" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "efuse")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "bootloader_support" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "xtensa-debug-module")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "app_trace")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "xtensa-debug-module" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "ethernet")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "nvs_flash")
    set(${var_requires} "spi_flash;mbedtls" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "pthread")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "smartconfig_ack")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "wpa_supplicant")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "mbedtls" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "espcoredump")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "spi_flash" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "esp32")
    set(${var_requires} "driver;tcpip_adapter;esp_event;efuse" PARENT_SCOPE)
    set(${var_private_requires} "app_trace;app_update;bootloader_support;ethernet;log;mbedtls;nvs_flash;pthread;smartconfig_ack;spi_flash;vfs;wpa_supplicant;xtensa-debug-module;espcoredump" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "cxx")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "amazon-freertos-common")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "secure_sockets")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "esp_http_server")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "freertos_plus_tcp")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "bootloader")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "nimble")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "bt;nvs_flash" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "bt")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "nvs_flash;nimble" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "console")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "esp_adc_cal")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "esptool_py")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "expat")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "wear_levelling")
    set(${var_requires} "spi_flash" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "sdmmc")
    set(${var_requires} "driver" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "fatfs")
    set(${var_requires} "wear_levelling;sdmmc" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "freemodbus")
    set(${var_requires} "driver" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "lwip")
    set(${var_requires} "vfs" PARENT_SCOPE)
    set(${var_private_requires} "ethernet;tcpip_adapter;nvs_flash" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "nghttp")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "openssl")
    set(${var_requires} "mbedtls" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "spiffs")
    set(${var_requires} "spi_flash" PARENT_SCOPE)
    set(${var_private_requires} "bootloader_support" PARENT_SCOPE)
    return()
  endif()
  if("${component}" STREQUAL "ulp")
    set(${var_requires} "" PARENT_SCOPE)
    set(${var_private_requires} "" PARENT_SCOPE)
    return()
  endif()
  message(FATAL_ERROR "Component not found: ${component}")
endfunction()
