@ -1,3 +1,6 @@
@@ -1,3 +1,6 @@
# g e t I D F v e r s i o n f o r c o m p a r i s o n
set ( idf_version "${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" )
# s e t c o n v e r s i o n s o u r c e s
set ( COMPONENT_SRCS
c o n v e r s i o n s / y u v . c
@ -16,6 +19,8 @@ set(COMPONENT_ADD_INCLUDEDIRS
@@ -16,6 +19,8 @@ set(COMPONENT_ADD_INCLUDEDIRS
c o n v e r s i o n s / i n c l u d e
)
set ( COMPONENT_REQUIRES driver )
# s e t d r i v e r s o u r c e s o n l y f o r s u p p o r t e d p l a t f o r m s
if ( IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3" )
list ( APPEND COMPONENT_SRCS
@ -68,14 +73,11 @@ if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET ST
@@ -68,14 +73,11 @@ if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET ST
)
endif ( )
set ( COMPONENT_REQUIRES driver )
set ( COMPONENT_PRIV_REQUIRES freertos nvs_flash )
set ( min_supported_idf_version "4.2" )
set ( idf_version "${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" )
if ( idf_version VERSION_GREATER_EQUAL min_supported_idf_version )
set ( min_version_for_esp_timer "4.2" )
if ( idf_version VERSION_GREATER_EQUAL min_version_for_esp_timer )
list ( APPEND COMPONENT_PRIV_REQUIRES esp_timer )
message ( WARNING "ESP-IDF version detected: '${idf_version}'." )
endif ( )
endif ( )