2024-04-08 08:08:23 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2024-02-28 02:11:32 -05:00
|
|
|
set(srcs)
|
|
|
|
set(public_include "include")
|
|
|
|
|
|
|
|
# JPEG related source files
|
|
|
|
if(CONFIG_SOC_JPEG_CODEC_SUPPORTED)
|
|
|
|
list(APPEND srcs
|
|
|
|
"jpeg_common.c"
|
|
|
|
"jpeg_param.c"
|
|
|
|
)
|
|
|
|
if(CONFIG_SOC_JPEG_DECODE_SUPPORTED)
|
|
|
|
list(APPEND srcs
|
|
|
|
"jpeg_parse_marker.c"
|
|
|
|
"jpeg_decode.c"
|
|
|
|
)
|
|
|
|
endif()
|
2024-04-01 07:58:07 -04:00
|
|
|
if(CONFIG_SOC_JPEG_ENCODE_SUPPORTED)
|
|
|
|
list(APPEND srcs
|
|
|
|
"jpeg_emit_marker.c"
|
|
|
|
"jpeg_encode.c"
|
|
|
|
)
|
|
|
|
endif()
|
2024-02-28 02:11:32 -05:00
|
|
|
endif()
|
|
|
|
|
2024-04-08 08:08:23 -04:00
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
set(priv_requires "")
|
|
|
|
else()
|
|
|
|
set(priv_requires esp_mm esp_pm)
|
|
|
|
endif()
|
|
|
|
|
2024-02-28 02:11:32 -05:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${public_include}
|
2024-04-08 08:08:23 -04:00
|
|
|
PRIV_REQUIRES "${priv_requires}"
|
2024-02-28 02:11:32 -05:00
|
|
|
)
|