mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Keep Linux components include-only when their runtime dependencies are unavailable. Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
819 B
CMake
30 lines
819 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
set(srcs)
|
|
set(public_include "include")
|
|
if(CONFIG_SOC_PPA_SUPPORTED)
|
|
list(APPEND srcs "src/ppa_core.c"
|
|
"src/ppa_srm.c"
|
|
"src/ppa_blend.c"
|
|
"src/ppa_fill.c")
|
|
if(CONFIG_SOC_PAU_SUPPORTED)
|
|
list(APPEND srcs "${target}/ppa_retention.c")
|
|
endif()
|
|
endif()
|
|
|
|
if(${target} STREQUAL "linux")
|
|
set(requires "")
|
|
set(priv_requires "")
|
|
else()
|
|
set(requires esp_hal_ppa)
|
|
set(priv_requires esp_mm esp_pm esp_driver_dma efuse)
|
|
endif()
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS ${public_include}
|
|
PRIV_INCLUDE_DIRS "src"
|
|
REQUIRES "${requires}"
|
|
PRIV_REQUIRES "${priv_requires}"
|
|
)
|