2024-04-08 08:08:23 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2024-02-05 09:04:37 -05:00
|
|
|
set(srcs)
|
|
|
|
set(public_include "include")
|
|
|
|
if(CONFIG_SOC_PPA_SUPPORTED)
|
2024-04-15 07:05:31 -04:00
|
|
|
list(APPEND srcs "src/ppa_core.c"
|
|
|
|
"src/ppa_srm.c"
|
|
|
|
"src/ppa_blend.c"
|
|
|
|
"src/ppa_fill.c")
|
2024-02-05 09:04:37 -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-05 09:04:37 -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-05 09:04:37 -05:00
|
|
|
)
|