|
|
@ -1,3 +1,6 @@ |
|
|
|
|
|
|
|
# get IDF version for comparison |
|
|
|
|
|
|
|
set(idf_version "${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}") |
|
|
|
|
|
|
|
|
|
|
|
# set conversion sources |
|
|
|
# set conversion sources |
|
|
|
set(COMPONENT_SRCS |
|
|
|
set(COMPONENT_SRCS |
|
|
|
conversions/yuv.c |
|
|
|
conversions/yuv.c |
|
|
@ -16,6 +19,8 @@ set(COMPONENT_ADD_INCLUDEDIRS |
|
|
|
conversions/include |
|
|
|
conversions/include |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(COMPONENT_REQUIRES driver) |
|
|
|
|
|
|
|
|
|
|
|
# set driver sources only for supported platforms |
|
|
|
# set driver sources only for supported platforms |
|
|
|
if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3") |
|
|
|
if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3") |
|
|
|
list(APPEND COMPONENT_SRCS |
|
|
|
list(APPEND COMPONENT_SRCS |
|
|
@ -68,14 +73,11 @@ if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET ST |
|
|
|
) |
|
|
|
) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
set(COMPONENT_REQUIRES driver) |
|
|
|
|
|
|
|
set(COMPONENT_PRIV_REQUIRES freertos nvs_flash) |
|
|
|
set(COMPONENT_PRIV_REQUIRES freertos nvs_flash) |
|
|
|
|
|
|
|
|
|
|
|
set(min_supported_idf_version "4.2") |
|
|
|
set(min_version_for_esp_timer "4.2") |
|
|
|
set(idf_version "${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}") |
|
|
|
if (idf_version VERSION_GREATER_EQUAL min_version_for_esp_timer) |
|
|
|
if (idf_version VERSION_GREATER_EQUAL min_supported_idf_version) |
|
|
|
|
|
|
|
list(APPEND COMPONENT_PRIV_REQUIRES esp_timer) |
|
|
|
list(APPEND COMPONENT_PRIV_REQUIRES esp_timer) |
|
|
|
message(WARNING "ESP-IDF version detected: '${idf_version}'.") |
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|